How to convert a list to comma-separated values
- Paste your list into the input box — one item per line.
- Choose a delimiter from the toolbar: comma, semicolon, pipe, tab, space, or custom.
- Set quote style if needed — single quotes, double quotes, or none.
- Copy the output and paste it wherever you need it.
Common use cases
SQL IN clauses
Select double quotes and comma + space delimiter to produce a list ready for a SQL WHERE IN clause:
Spreadsheet formulas
Comma-separated lists paste directly into Excel or Google Sheets cells separated across columns when using the paste-special split option. Semicolons work for European locale spreadsheets.
Code arrays
Generate array contents for any language. Add double quotes and a comma + space delimiter, then wrap in brackets: ["apple", "banana", "cherry"].
Email and form fields
Many email platforms and form tools accept comma-separated lists for multiple recipients or tag values. Use the comma + space delimiter for clean, readable output.
Which delimiter should you use?
| Delimiter | Best for |
|---|---|
| , (comma + space) | SQL, readable CSV, most general-purpose use |
| , (comma only) | Compact CSV, data imports without extra spaces |
| ; (semicolon) | European locale CSV, Excel in non-English regions |
| | (pipe) | Log files, systems where commas appear in values |
| Tab | TSV files, Excel paste, clipboard-separated data |
| Space | Command-line arguments, bash arrays |
| Custom | Any system with a unique separator requirement |
Need to go the other direction? Split a delimited string back into a list with the Split List tool.