EN
My tools

Comma Separator (List to Comma Separated Values)

Turn a column or list into comma-separated values, an SQL IN list or a JSON array, with quotes, custom separators, dedupe and sorting, or split a list back into lines.

Up to 1,000,000 characters.
Convert
Converted list
apple, banana, cherry, O'Brien, banana
5 items
The same items in common formats
FormatResult
Comma and spaceapple, banana, cherry, O'Brien, banana
Comma (CSV row)apple,banana,cherry,O'Brien,banana
SQL IN list('apple', 'banana', 'cherry', 'O''Brien', 'banana')
JSON array["apple", "banana", "cherry", "O'Brien", "banana"]
Semicolonapple; banana; cherry; O'Brien; banana
Pipeapple | banana | cherry | O'Brien | banana
Spaceapple banana cherry O'Brien banana
My tools →
Advertisement

Paste a column from a spreadsheet or a list with one item per line and get it back as a single comma-separated line, ready for an email, a search box, a CSV row, an SQL IN (…) clause or a JSON array. You can choose any separator, quote each item safely, remove duplicates and sort. It also works the other way: split a comma-, semicolon- or tab-separated line back into one item per line.

How to use this tool

  1. Paste your list, one item per line.
  2. Choose the separator, and quotes if the items are text values for SQL, CSV or JSON.
  3. Pick a wrapper such as ( … ) for an SQL IN list or [ … ] for an array.
  4. Copy the result, or a ready-made format from the table. To go back, choose “Delimited line → one item per line”.

Formula

Output = wrapper start + quote(item₁) + separator + quote(item₂) + … + wrapper end

Quoting escapes properly for each format: SQL single quotes double an inner apostrophe (O’Brien → 'O''Brien'), CSV double quotes double an inner quote mark as RFC 4180 requires, and JSON quoting uses backslash escapes so the result parses as JSON. When splitting, separators inside quotes are not treated as separators, surrounding ( ), [ ] or { } are removed, and “Detect” picks tab, semicolon, comma or pipe, in that order, from what it finds.

Example

The sample list (apple, banana, cherry, O’Brien, banana) becomes apple, banana, cherry, O'Brien, banana. With single quotes, ( … ) and “Remove duplicates” it becomes the SQL list ('apple', 'banana', 'cherry', 'O''Brien'), and the JSON array in the table is ["apple", "banana", "cherry", "O'Brien", "banana"].

Frequently asked questions

How do I turn an Excel column into a comma-separated list?

Copy the column, paste it here (each cell lands on its own line), keep “comma and space” and copy the result.

How do I make an SQL IN clause from a list?

Choose single quotes and the ( … ) wrapper. Apostrophes in values are doubled automatically, so O’Brien stays a valid string.

How do I split a comma-separated line into separate lines?

Choose “Delimited line → one item per line” and the separator (or Detect). Quoted values that contain commas stay in one piece.

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). Comma Separator (List to Comma Separated Values). https://kakao.mobile/tools/list-to-comma-separated-tool/

MLA

“Comma Separator (List to Comma Separated Values).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/list-to-comma-separated-tool/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement