Comma Separator

Paste a column from a spreadsheet and get one comma-separated line.

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the comma separator

  1. Paste your values.
  2. Choose the direction: lines to commas, or commas to lines.
  3. Optionally type a custom separator such as ; or | .
  4. Copy the result.

What it is for

Spreadsheets give you values in a column, but many places want them on one line separated by commas: the *To* field of an email, a SQL IN (...) clause, a list of tags or keywords, an array in code. Going the other way, a long comma-separated string is much easier to read, sort and dedupe once each value is on its own line.

The four modes

  • One per line → comma separated: red, green, blue
  • One per line → quoted, comma separated: "red", "green", "blue", ready to paste into code or SQL.
  • Comma separated → one per line: splits at each comma and trims the spaces.
  • Spaces → one per line: splits at any whitespace.

Empty items are dropped automatically. For proper CSV files with headers, see CSV to JSON.

Frequently asked questions

How do I convert a column to a comma-separated list in Excel?

Excel can do it with the TEXTJOIN function, for example =TEXTJOIN(", ", TRUE, A1:A50). Pasting the column here needs no formula.

Is my text stored or sent anywhere?

No. Everything happens inside your browser. Your text is not uploaded, logged or read by anyone. The page remembers your last text on this device only, so you can pick up where you left off; press Clear to remove it.

Related tools