Remove Line Breaks
Remove line breaks and carriage returns from text online. Turn a hard-wrapped block into one continuous paragraph instantly.
This tool removes every line break from your text and joins the lines into one continuous paragraph, collapsing the surrounding whitespace into a single space. It fixes text copied from PDFs, emails, and terminals where lines were hard-wrapped.
Examples
| Input | Output |
|---|---|
| This sentence was broken across three lines. | This sentence was broken across three lines. |
When to use the remove line breaks
The problem this solves is hard-wrapped text — line breaks baked into the content rather than applied by the display. It shows up constantly:
- Copying from a PDF. Each visual line becomes a real newline, so pasting into a document produces a ragged column instead of a paragraph.
- Plain-text emails wrapped at 72 or 78 characters, a convention inherited from early terminals.
- Terminal and log output wrapped at the console width.
- Pasting into a single-line field — a spreadsheet cell, a CSV column, a form input — where an embedded newline breaks the format.
This converter collapses each break plus any surrounding spaces into exactly one space, which avoids the double-space artefacts you get from a naive find-and-replace. It removes all breaks, including the blank lines between paragraphs — if you want to keep paragraph separation, process one paragraph at a time.
Frequently asked questions
Does it handle Windows and Unix line endings?
Yes. Both CRLF (Windows) and LF (Unix, macOS) breaks are removed, so text from any operating system works.
Will it leave double spaces where the breaks were?
No. Each line break and the whitespace around it collapse into exactly one space, so the result reads as a properly spaced paragraph.
Can I keep the blank lines between paragraphs?
Not with this tool — it removes every break. To keep paragraph separation, convert one paragraph at a time, or use the remove extra spaces tool, which preserves single blank lines.