Remove Line Breaks
Strip or replace line breaks and carriage returns from text.
Input
Cleaned Text
Removes all line breaks and collapses spaces.
About the Remove Line Breaks
Remove Line Breaks flattens multi-line text into a single paragraph. Every line break and carriage return is replaced by a space, and runs of spaces are collapsed to one, so text copied out of a PDF or an email stops breaking mid-sentence.
This is the usual fix for text that has been hard-wrapped at a fixed width. Copying from a PDF, a terminal or an email often inserts a break at every line of the original layout, which leaves a paragraph that looks fine in the source and ragged everywhere else. Collapsing the breaks and the doubled spaces puts it back together.
The result is a single block with no paragraph structure. If you need to keep paragraphs, use the version that turns each line into a comma-separated item instead, or clean the text in a word processor where you can keep the double breaks that mark a real paragraph.
Common questions about Remove Line Breaks
What exactly does it remove?
Line breaks and carriage returns, replaced with a single space, with repeated spaces collapsed afterwards.
Will it keep my paragraphs?
No, everything becomes one block. Use the line-breaks-to-commas tool if you want to preserve line boundaries.
How is it different from Line Breaks to Commas?
This joins lines with spaces; that tool joins them with commas. One is for prose, the other for lists.
Does it fix double spaces?
Yes, runs of spaces are collapsed to one after the breaks are replaced.
Does it handle Windows line endings?
Yes, both \r\n and \n are removed.
Can I undo it?
Not automatically. Work on a copy if the original line structure matters.