New Line to Comma Converter
runs in your browserno sign-upfree
Turn a list or spreadsheet column into a comma-separated line. Add quotes and brackets for SQL IN ('a', 'b') or JSON arrays, remove duplicates and blanks.
About this tool
Paste a list with one item per line — for example a column copied from Excel or Google Sheets — and get a single comma-separated line. Add quotes and brackets to build a SQL IN (...) clause or a JSON array, remove blank lines and duplicates, and choose a comma with or without a space.
How to use
- Paste your list or spreadsheet column into the Input box.
- The comma-separated result appears instantly.
- Optionally add quotes, brackets, or remove duplicates.
- Copy the result.
FAQ
How do I make a list for SQL IN (...) or a JSON array?
Choose Quotes 'Single' and Wrap ( … ) to get ('a', 'b', 'c') for SQL — apostrophes inside items are doubled, as SQL needs. Choose Quotes "Double" and Wrap [ … ] to get a JSON or JavaScript array.
Can I use a different separator than a comma?
Yes — choose semicolon, pipe, tab, space or a custom separator under To.
Can I convert between other separators?
Yes. Pick any separator under From and To: new line, comma, space, tab, semicolon, pipe or your own (like :: or " -> "). The ⇄ button swaps the direction and uses the result as the new input.
Is my data uploaded?
No. Everything happens in your browser, and your last input is saved only in this browser.