Lines to String Converter

Turn newline-separated lines into a quoted, comma-joined string.

Support
Works Offline
Privacy First
No Login
No API

Lines

One value per line

String output

Items
4
Chars
35

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
banana

Output

"apple", "banana"

SQL IN list

1
2
3

Output

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

Frequently asked questions

Version 1.0.0 · Updated 2026-08-24 · Runs entirely in your browser