Text Line Joiner

Join lines into one delimited string

Join options
Read-only

Processed 0 of 0 lines (0 empty lines skipped)

What is Text Line Joiner?

Turn several lines into one line using the delimiter you enter.

For example, three lines with apple, orange, and grape become apple,orange,grape when you use a comma. The processed line count and the number of skipped blank lines are shown with the result.

How to Use

Paste your text and enter a delimiter to see the joined line right away. Adjust whitespace trimming and blank-line handling as needed.

Main Settings

Delimiter

The text inserted between lines. Use a comma, a comma and a space, a pipe, a tab, or whatever the destination expects. Leave it empty to join the lines with nothing between them.

Trim line whitespace

Remove leading and trailing spaces from each line before joining. Use it to clean indentation and trailing spaces from a pasted list.

Ignore empty lines

Leave blank lines out of the join. With this off, the delimiter is also inserted at each blank line, leaving repeated delimiters.

Use Cases

  • Turning a line-based list into a comma-separated CSV row
  • Joining values for an array or a function argument list
  • Building the value list for a SQL IN clause
  • Combining multi-line text copied from a form or chat into one string

Frequently Asked Questions

Can the delimiter be longer than one character?

Yes. The text you enter is inserted as-is between lines, so a comma followed by a space works too.

Can I split the joined text back into lines?

You can, but only when the delimiter does not appear in the text. Text Splitter can split the result if you enter the same delimiter.

Things to Keep in Mind

  • A trailing line break is treated as the end of the last line, not as a blank line. No delimiter is added after the final line.
  • If the delimiter also appears inside the text, the boundaries are lost after joining. Choose a string unlikely to appear in the text if you plan to split it later.