Lines to String Converter
Turn newline-separated lines into a quoted, comma-joined string.
About the Lines to String Converter
Paste a list with one value per line and get a single string back: choose the quote style, separator and wrapper (array, braces, parentheses, SQL IN list or a JS const array), and optionally trim, dedupe and drop empty lines first.
Examples
Quoted CSV
apple
bananaOutput
"apple", "banana"SQL IN list
SQL1
2
3Output
SQLIN ('1', '2', '3')Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
New Line Remover
Text & String
Remove line breaks and tabs, or swap them for any separator.
Email & URL Extractor
Text & String
Pull emails, links, domains and phone numbers out of any text.
Line Numbering Tool
Text & String
Add or remove line numbers from text with custom formatting.
List Comparator
Text & String
Compare two lists and see common, A-only and B-only items.
List Randomizer
Text & String
Shuffle a list of lines and optionally pick a random subset.
Online Notepad++
Text & String
A tabbed code and text editor with syntax colours, find and replace, and auto-save.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-24 · Runs entirely in your browser