In short: Removing line breaks joins text that was broken into short lines — typical when copying from PDFs or emails — and can also collapse repeated spaces and tabs into one.
About Remove Line Breaks & Extra Spaces
Text copied out of a PDF, an old email or a terminal usually keeps the original hard line breaks, so each line ends mid-sentence when you paste it into a document or a form. Removing them by hand is tedious; this tool joins the lines back into flowing paragraphs.
The default mode keeps blank-line paragraph breaks and only joins lines within a paragraph. It can also re-join words that were hyphenated at the end of a line (“docu-
ment” → “document”) and collapse runs of spaces and tabs into a single space.
How to use Remove Line Breaks & Extra Spaces
- Paste the text.
- Choose how to treat line breaks and which clean-ups to apply.
- Copy the cleaned text.
Examples
“The quick brown
fox jumps over
the lazy dog.” → “The quick brown fox jumps over the lazy dog.”
Choose Remove all to turn a multi-line address into a single line for a CSV cell.
Frequently asked questions
Will it join lines that should stay separate, like lists?
In “keep paragraphs” mode, lines are only kept separate if a blank line is between them. For bullet lists, add blank lines or use “Keep line breaks” with space clean-up only.
What counts as a hyphenated word?
A line ending with a letter and a hyphen, followed by a line starting with a lowercase letter. Real hyphenated compounds may occasionally be joined; check the result.
Does it remove non-breaking spaces?
Yes. Collapse extra spaces also converts non-breaking and other Unicode spaces to normal spaces.
Is my text uploaded?
No. All processing is local. You can check this yourself: open your browser’s developer tools, switch to the Network tab and use the tool — no request carries your input.
Updated November 2026 · Free, no signup · How we build and test tools