Lines to String Converter
Turn newline-separated lines into a quoted, comma-joined string.
Lines
One value per line
String output
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
1
2
3Output
IN ('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
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 distraction-free notepad with multiple notes that auto-save in your browser.
Prefix & Suffix Adder
Text & String
Add text to the start or end of every line at once.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-24 · Runs entirely in your browser