This tool turns a column of lines into a comma separated list and back again. Paste values copied from a spreadsheet, choose whether to add quotes, pick a custom separator if commas are not right, and copy the single-line result. It is a quick way to convert column to comma list format for SQL, tags and forms.
How do I make a comma separated list?
- Choose the direction: lines to list, or list to lines.
- Paste your values, one per line.
- Choose whether to add quotes and which separator to use.
- Copy the result.

Common uses
| Task | Input | Output |
|---|---|---|
| SQL IN list | 101, 102, 103 on separate lines | '101', '102', '103' |
| Tags for a blog post | One tag per line | seo, pdf tools, images |
| Email recipients | One address per line | a@x.com, b@y.com |
| Spreadsheet import | A list from a document | Values ready for one cell |

Building an SQL IN list
When you need to filter a database by many IDs, copy the ID column from Excel, paste it here and add quotes. You get a ready SQL IN list such as ('A12', 'B34', 'C56'). Numbers usually do not need quotes, but text values do. Check the result for blank lines or stray spaces before you run the query, and format the full query with the SQL formatter.
When to add quotes
Add single quotes for SQL text values and double quotes for JSON arrays or CSV fields that may contain commas. Leave quotes off for plain number lists and simple tags. If a value already contains a quote, check that it is escaped correctly for the system you are pasting into.
Using a custom separator
Not every system wants commas. Use a custom separator such as a semicolon for European spreadsheets, a pipe for some data formats, or a new line with a dash for bullet lists. Type the separator you need and the list updates instantly.
Turning a list back into lines
Switch the direction to split a comma separated list into one item per line. That is handy when someone sends you a long line of email addresses or keywords and you want to sort or clean them. After splitting, use sort lines to put them in order and remove duplicate lines to drop repeats.
Tidy data first
Spaces at the start or end of a line can cause mismatches in databases. Run your values through remove extra spaces if they came from a messy source. To wrap each line with your own text instead, such as an HTML tag, use add prefix and suffix to lines. For full table conversions, CSV to JSON handles columns and headers.
A worked example
Say a colleague sends you 300 order numbers in a spreadsheet and asks which ones shipped. Copy the column, paste it here, add single quotes and copy the result. Paste it into WHERE order_no IN (...) and run the query. What used to take ten minutes of manual typing now takes under a minute, with no missed or mistyped values.
Who uses it?
Developers build SQL and code arrays. Marketers prepare tag and keyword lists. Office staff combine email addresses for a meeting invite. Teachers turn class lists into one line for a form. The tool works in your browser, so the data you paste stays on your device.
