New Lines to Commas
Join a list of lines into one comma-separated string, with a choice of separator and optional quoting.
- Runs in your browser
- Free to use
About this tool
This converter takes a vertical list and turns it into a single delimited string, the format most APIs, spreadsheets and query languages expect. Choose the separator, skip blank lines and optionally wrap every item in quotes for SQL or JSON-style lists.
The reverse operation is Commas to New Lines.
How to use it — quick steps
- 01
Enter the lines
Type or paste the lines in the field above, for example apple, one item per line. Nothing is uploaded.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Join lines"
Press "Join lines" or Ctrl + Enter. The result appears instantly below the form. Results can be copied.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
How do I build a SQL IN list?
Enable quoting and use the comma-and-space separator to get "a", "b", "c" ready for an IN (…) clause.
Are spaces around lines removed?
Yes, each line is trimmed before joining.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.