Remove line breaks
Strip unwanted line breaks from PDF pastes, emails and copied text. Results appear instantly.
Ctrl + L clear | Ctrl + Shift + C copy output
About line breaks
The line break is a leftover from mechanical typewriters. Ending a line required two physical actions — returning the carriage to the left margin and rolling the paper up one line — which early computers encoded as two separate characters: carriage return (CR) and line feed (LF). The split survives today: Windows ends lines with the CRLF pair, while Unix, macOS and the web use a lone LF. Because different programs and formats handle these invisible characters differently, text that looked fine in one place routinely arrives elsewhere with hard breaks scattered through every paragraph — the exact problem this tool exists to fix, handling both conventions automatically.
When to remove all line breaks
Choose "All line breaks" when you need a single continuous block of text with no paragraph separation. This is useful when preparing text for a database field that doesn't support line breaks, when writing content for a system that will handle its own formatting, or when you need to paste text into a tool or API that expects a single line string.
Frequently asked questions
Why does my pasted text have line breaks everywhere?
Because the source document stored a hard line break at the end of every visual line. PDFs are the worst offender — they record text position by page layout, so copying preserves each line ending — but emails, older Word documents and text written in narrow editors or terminals do the same. Those breaks made sense in the original layout; pasted anywhere else, they chop paragraphs into fragments. Paste the text here and the breaks are stripped instantly so it can reflow naturally.
Will this tool remove paragraph breaks too?
Only if you ask it to. The default mode removes single line breaks inside paragraphs while preserving the blank-line gaps that separate paragraphs — which is what you want when cleaning up a PDF paste. Switch to "All line breaks" to join everything into one continuous block, or use the blank-lines mode to collapse runs of empty lines while leaving the rest of the formatting untouched.
What is the difference between a line break and a paragraph break?
A line break is a single newline character: text moves to the next line with no visible gap. A paragraph break is two newlines in a row, producing the empty line readers perceive as a paragraph boundary. The distinction is what makes smart cleanup possible — when fixing PDF text you want the single breaks inside paragraphs gone but the double breaks between sections kept, and the default mode makes exactly that distinction.
Can I remove line breaks and add a space instead?
That happens automatically. Each removed break is replaced with a single space, so a sentence split across two lines rejoins as "line one line two" rather than "line oneline two". If a line already ends in a space, the tool avoids doubling it — the result is clean prose you can paste straight into a document without hunting for glued-together or double-spaced words.
Does this work for text copied from a PDF?
Yes — PDF cleanup is this tool's most common job. The PDF format fixes every character's position on the page, so the copied text inherits a hard break at the end of each printed line, and often stray hyphens where words were split. Paste the copied text here, use the default mode to keep paragraph structure, and the layout breaks disappear. For hyphenated word splits, a pass through the find and replace tool afterwards finishes the job.