Remove Line Breaks
Remove line breaks from text and join it into one block. Replace breaks with a space or nothing, handling all line ending types.
Independently verified for accuracy
Calculator by Toolsloft ↗- Output
- This text is broken across several lines.
Strip the line breaks out of pasted text and turn it into one continuous block. Choose whether the breaks become a single space or disappear entirely. It is the quick fix for text copied from a PDF or email that arrives broken across dozens of short lines.
How this is calculated
Every run of carriage return and line feed characters is replaced with your chosen string. Because a run is replaced as a unit, Windows line endings and repeated blank lines each collapse to a single space or nothing, rather than leaving extra gaps.
How to use
- Paste the text with unwanted line breaks.
- Choose to replace breaks with a space or with nothing.
- Copy the joined text.
Examples
- Join with spaces:
a then b on two lines becomes a b - Join with nothing:
line1 then line2 becomes line1line2
FAQ
- Does it handle Windows line endings?
- Yes. Carriage return and line feed characters are both removed, so text from Windows, Mac, and Unix all clean up the same way.
- What happens to blank lines?
- A run of several line breaks is treated as one, so blank lines between paragraphs collapse to a single replacement rather than several.