Join lines
Combine the lines of your text into a single line, separated by a comma, space, semicolon or any text you choose.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
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\nfor a line break and\tfor 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.