How to use the comma separator
- Paste your values.
- Choose the direction: lines to commas, or commas to lines.
- Optionally type a custom separator such as
;or|. - 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.