List to comma separated converter

Turn a column of items into a comma-separated list, or split a comma-separated line back into a list, one item per line.

Examples

InputSettingsOutput
red↵green↵bluecomma + spacered, green, blue
red↵green↵bluecomma, single quotes'red','green','blue'
a; b; cto list, autoa↵b↵c

Quoted output is handy for SQL IN ('a','b') clauses and code arrays. Blank lines and surrounding spaces are dropped automatically.

Frequently asked questions

How do I make a SQL IN list?
Paste your IDs one per line, choose "comma" and single quotes, then wrap the result in IN ( ).
Can I convert Excel columns?
Yes. Copy a column from Excel or Google Sheets (one cell per line) and paste it in.