Remove Line Breaks
Strip line breaks and join text with spaces, commas or nothing at all.
How Remove Line Breaks works
Remove every line break and rejoin text with a space, comma or nothing, optionally keeping paragraph breaks. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Four ways to join the lines
Join with a space keeps the words separate, which is what you want for text copied out of a PDF where every line ends early. Join with a comma turns a list into a single comma-separated line. Join with nothing is for cases where the breaks were inserted inside words — hyphenated text copied from an email, for example.
Keep paragraph breaks only collapses single line breaks but leaves a blank line between paragraphs, which restores the structure of text pasted from a narrow column.
The trailing-space problem
Pasted text usually has a space at the end of each line. Joining without trimming produces double spaces everywhere, so the trim option is on by default and removes leading and trailing whitespace from each line before joining.
Windows line endings (\r\n) and Unix ones (\n) are both handled; the difference only shows up if you are counting bytes.
| Joiner | Input | Output |
|---|---|---|
| Space | one\ntwo | one two |
| Comma | one\ntwo | one, two |
| Nothing | inter-\nnational | international |
| Paragraphs only | a\nb\n\nc | a b\n\nc |
When not to remove breaks
Code, poetry, addresses and anything where the line break carries meaning. Joining a postal address produces a line that no one can mail. If the output will be pasted back into a document, check that paragraphs still end where they should.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Can I keep paragraph breaks?
Yes — choose “Keep paragraph breaks only” to collapse single newlines but preserve blank lines.
Will it collapse double spaces?
Only if you leave the collapse option ticked.
Does it collapse multiple spaces too?
Only at the edges of each line. Interior runs of spaces are preserved unless you join with nothing.
Can it split one long line into many?
That is the wrap text tool, which does the opposite job.
Keep going
More text tools
Fancy Text Generator
Convert plain text into bold, italic, script and monospace Unicode characters that survive where formatting is stripped.
Open toolBold Text Generator
Produce bold Unicode letters and digits that render bold in bios, captions and comments without formatting support.
Open toolCursive Text Generator
Generate cursive-style Unicode letters for names, bios and short phrases.
Open toolSmall Text Generator
Convert text into small-caps Unicode letters for compact bios and labels.
Open toolSort Lines
Sort any list of lines alphabetically, reverse, or by length, with optional duplicate removal.
Open toolShuffle Lines
Randomise the order of lines in a list, with an option to keep or drop blank lines.
Open tool