About Remove Line Breaks
This joins broken-up lines back into flowing text. The classic case is text copied from a PDF, email or code comment where every line ends with a hard return — paste it into a document and it stays awkwardly chopped up. This removes those breaks so the words run together naturally again. It's also handy for turning a multi-line block into a single line for a spreadsheet cell, a CSV field, or a search box.
How it works
First it normalises line endings by stripping carriage returns (\r), so Windows and Unix text behave the same. Then it joins lines using the separator you pick — a space (so words don't run together) or nothing (for a solid string). There are two modes:
- Join everything — every line break is replaced by your chosen separator, collapsing the whole text to one line.
- Keep paragraphs — the text is split on blank lines first; line breaks within each paragraph are joined, but the blank line between paragraphs is kept, so structure survives.
Assumptions and behaviour
- A paragraph boundary is a blank line (two or more consecutive newlines). In 'keep paragraphs' mode, single line breaks inside a paragraph are joined and the blank-line gaps remain.
- Carriage returns are removed, so mixed or Windows-style (
\r\n) line endings are handled consistently. - With the space separator, joining won't produce doubled spaces at the join points.
Limitations
- It joins on line breaks; it won't also collapse extra spaces that were already in the text — run Remove Extra Spaces for that.
- 'Keep paragraphs' relies on blank lines to detect paragraphs. If your source uses single line breaks with no blank line between paragraphs, the tool can't tell where one paragraph ends and the next begins.
- It doesn't re-hyphenate or fix words that were split across a line break with a hyphen (common in PDFs) — those hyphens remain.
Privacy
Joining happens entirely in your browser. Your text is never uploaded or stored.

