Comma Separator

Turn a column of items into a comma-separated list (with optional quotes), or split one back into lines.

🔒 Runs entirely in your browser — nothing you type is uploaded or stored on a server.

The Comma Separator converts between the two most common list formats: a column with one item per line, and a single comma-separated line. Paste your list, pick a direction, and the converted version appears instantly — with options to change the delimiter, wrap every item in single or double quotes, trim stray spaces and drop duplicates along the way.

This conversion comes up constantly. Spreadsheets give you columns, but SQL IN (...) clauses, code arrays, tag fields, email To-lines and CSV files want comma-separated values — usually quoted. Going the other way, a comma-crammed list from a document is far easier to read, sort and de-duplicate once each item sits on its own line. Doing it by hand for fifty items means fifty chances for a missed comma.

The quote option is the killer feature for developers and analysts: wrap items in single quotes and a pasted spreadsheet column becomes a ready-to-run 'a', 'b', 'c' list for SQL, or use double quotes for a JSON-style array. Everything runs in your browser, so pasting internal IDs or customer references is safe — nothing is uploaded.

How to use

  1. Paste your items — one per line, or as an existing comma-separated list.
  2. Choose the direction: “List → Commas” to join lines, or “Commas → List” to split them.
  3. Pick a delimiter (comma, semicolon or pipe) and optionally wrap items in quotes.
  4. Tick “Trim items” and “Remove duplicates” to clean the list as it converts.
  5. Copy the result — the tag shows how many items it contains.

Examples

SQL IN clause
A spreadsheet column of 40 customer IDs becomes '1001', '1002', '1003'… — paste it straight into WHERE id IN (…).
Code array
A list of tags converts to "news", "sports", "tech" with double quotes, ready for a JSON or JavaScript array.
Unpacking a list
A paragraph like “apples, pears, plums, cherries” splits into four lines you can sort alphabetically or count.
Email recipients
Turn a column of addresses into a single comma-separated line for your mail client's To field.

Frequently asked questions

What formats can it split apart?
The “Commas → List” direction splits on commas, semicolons, pipes and tabs, and strips surrounding quotes from each item — so it handles CSV-ish input from most sources.
Can I get quotes around each item?
Yes. Choose single quotes for SQL-style lists or double quotes for JSON-style arrays; the delimiter is added between the quoted items.
Does it remove duplicate entries?
Optionally. Tick “Remove duplicates” and each exact item is kept only once, in its original order. Combine it with the Sort Lines tool if you also want alphabetical order.
What if my items contain commas?
Wrap them in quotes when joining, and the receiving program will treat each quoted item as one value. When splitting, note that unquoted embedded commas are treated as separators — true CSV files with quoted commas are best opened in a spreadsheet.
Is there a limit on list size?
No practical one. Thousands of lines convert instantly, because the work happens locally in your browser.
Is my list uploaded anywhere?
No. The conversion is 100% client-side JavaScript — safe for internal IDs, customer data and anything else sensitive.