Join lines

Combine the lines of your text into a single line, separated by a comma, space, semicolon or any text you choose.

Separator

How it works

  1. Paste your text

    Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.

  2. Instant result

    The result appears as you type. Change the options and see straight away what changes.

  3. Copy or download

    Copy the result with one click, save it as a file or use it as input for a next step.

Example

The list apple, pear, `,banana,kiwibecomesapple, pear, banana, kiwi` when you choose Comma.

  • Separator: space, comma, semicolon, nothing, or your own text such as | (use \n for a line break and \t for a tab).
  • Skip empty lines and trim spaces around each line (both on by default).

Handy for turning a column copied from a spreadsheet into a list for an SQL IN (...) query, a tag field or a URL parameter. To do the reverse and split text into lines, use split text. To repair line breaks that cut through sentences, use remove line breaks.

Frequently asked questions

Is the join lines free?

Yes. The join lines is completely free, with no account, sign-up or usage limit.

Is my text stored?

No. Your text is processed in your browser and is not sent to a server or stored.

Is there a maximum length?

No, there is no fixed limit. Very long texts can just be a little slower.