List to Comma Separated Converter – Turn Lines Into a Delimited String
Copying a column out of a spreadsheet gives you a vertical list, one value per line. Almost nothing else wants it that way. A SQL IN clause wants ('a', 'b'), a JSON array wants ["a", "b"], a CSV field wants a,b, and a config value might want a|b. This list to comma separated converter does that join, and reverses it just as easily when you need to split a delimited string back into one item per line for bulk editing.
How the conversion works
In the default direction your text is split on every line terminator — CRLF, LF, or a bare CR — so each line becomes one item. Those items then run through a fixed pipeline: trim whitespace, drop blank items, remove duplicates, sort, change case, add the prefix and suffix, and finally wrap each item in the quote character. Whatever survives is joined with your chosen delimiter and optionally wrapped in brackets. The order matters: because deduplication runs before the case change, turning off case-sensitive matching keeps the casing of the first occurrence rather than the last.
Reverse the direction and the same cleaning pipeline runs, only the input is split on a delimiter first. Auto-detect counts commas, semicolons, pipes, and tabs that sit outside quoted regions and picks whichever is most frequent, breaking ties in that order. Line breaks always end an item too, so a multi-row delimited file still comes out one value per line.
Building SQL IN lists and JSON arrays
The preset cards set the quote, delimiter, and bracket controls together. SQL IN list produces ('101', '102', '103') and JSON array produces ["101", "102", "103"]. Both are shortcuts, so you can adjust any single control afterwards — switch the quote to None, for instance, when your JSON array should hold real numbers rather than strings.
Quoting and escaping rules
A delimiter that also appears inside your data is the classic way to corrupt a list. Joining apple,pie and cherry with a comma gives apple,pie, cherry, which every parser reads back as three items. The fix is a quote character, and the tool warns you whenever this situation arises.
Quotes already inside an item need escaping, and the correct escape depends on who is reading the output. Doubling is the CSV convention — a " becomes "" — and is what spreadsheets expect. Backslash escaping writes \" instead, which is what JSON and most programming languages expect. Choosing the wrong one produces output that looks right and fails at parse time.
Cleaning a messy paste
Real exports arrive with padded cells, blank rows, and repeats. Turning on trim, blank removal, and duplicate removal, then sorting A→Z, collapses " Beta / alpha / Beta / (blank) / ALPHA" into alpha, beta in a single pass. The statistics panel reports exactly how many blanks and duplicates were dropped, and the badge expands to show which values went. If every remaining item parses as a number, a numeric summary appears with the count, sum, minimum, maximum, and mean — a quick sanity check that the column you pasted is the one you meant.
Delimiters, prefixes, and line wrapping
Beyond the comma you can join with a semicolon, pipe, tab, space, newline, or any custom string you type, with \t and \n expanded to real characters. A per-item prefix and suffix is applied inside the quotes, which is how you turn home and about into #home, #about for a tag list or CSS selector. For very long results, set a line wrap width so the output breaks after roughly N characters instead of forming one enormous line — the break always lands after a separator, never inside an item.
Privacy and limits
Everything runs client-side in your browser; no list is uploaded. Files you drag in are read locally and capped at 2 MB, and input is capped at 5,000,000 characters with a warning well before that. The share link carries your option settings, and the list itself only when it is short enough to fit in a URL — longer lists are deliberately left out.