Join Lines

Merge a list of lines into a single line with any separator — comma, space, tab or your own. Optionally trim each line, drop blanks, and wrap lines with a prefix/suffix. Everything runs in your browser.

Joined line

About this tool

Join Lines merges a list of lines into a single line — paste your lines and choose what goes between them.

Everything runs locally in your browser via WebAssembly — your text is never uploaded.

Handy for

FAQ

How do I use a tab (or a literal backslash) as the separator?

Type the escape into the separator box: \t becomes a tab, \n a newline, \r a carriage return, and \\ a literal backslash. Any other backslash sequence is kept as-is, so a separator like \d really joins with the two characters \d.

How do I turn a list of IDs into a SQL IN (...) clause?

Set Prefix and Suffix both to ' and keep the default , separator:

alice
bob

joins to 'alice', 'bob' — paste it straight into IN (…). The prefix and suffix wrap every line before joining, so quotes never end up around the separator.

What counts as a blank line for "Remove blank lines"?

Empty lines and whitespace-only lines (spaces or tabs) are dropped, even when "Trim each line" is off. Dropped lines get no prefix, suffix or separator, so you never see '', '' artifacts from stray empty rows at the end of a paste.

What happens if I leave the separator blank?

The lines are concatenated with nothing between them — useful for stitching a wrapped Base64 string or hex dump back into one unbroken token. (The default, when the field is untouched, is ", ".)

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool join-lines "Paste lines to join…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/join-lines/?text=Paste%20lines%20to%20join%E2%80%A6&separator=%2C%20&trim=true&remove_blank=true&prefix=%27&suffix=%27

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.