Text Tools

Remove line breaks and extra spaces.

Fix text that came out with a hard line break on every line, as happens when you copy from a PDF or an email. Join the lines, keep real paragraphs, collapse double spaces and rejoin words split by a hyphen.

Advertisement

Input

Cleaned text

Paste text to clean it.

About this line break remover

Text copied out of a PDF, an email client or a narrow column usually carries a hard line break at the end of every visual line. Pasted into a document, form or chat box it will not reflow. This tool removes those breaks and tidies the spacing in one pass.

Choosing the right line break option

Other cleanups

Worked example

Text copied from a narrow PDF column, 138 characters with a hard break after every line:

The quarterly report shows that
revenue grew by twelve per cent in
the third quarter, driven by inter-
national sales.

Costs stayed flat.

With Join lines, keep paragraph breaks, Rejoin hyphenated words and Collapse repeated spaces on, the result is 136 characters in two paragraphs:

The quarterly report shows that revenue grew by twelve per cent in the third quarter, driven by international sales.

Costs stayed flat.

With Replace every break with a space and hyphen rejoining off, everything lands on one 137-character line and the split word stays split (inter- national). The 2 characters saved in the first case are the hyphen and the break that were removed from inter- and national.

Limits

Windows (CRLF), old Mac (CR) and Unix (LF) breaks are all recognised. Input is limited to 5 MB and is processed in your browser.

Sources

Retrieved October 26, 2026: RFC 3676, The Text/Plain Format and DelSp Parameters (defines the “soft line break” email clients use to wrap paragraphs); RFC 5322, Internet Message Format (lines end with carriage return and line feed). Hard breaks from PDFs are a layout artefact, not a standard, so the paragraph rule here is a heuristic: a blank line starts a new paragraph.

Frequently asked questions

How do I remove line breaks from text copied from a PDF?

Paste it above and keep the default "Join lines, keep paragraph breaks". Each paragraph becomes one flowing line and blank lines between paragraphs are kept.

How do I remove all line breaks and make one line?

Choose "Replace every break with a space", or "Delete every break" if no space should be added.

Is my text sent anywhere?

No. The cleaning runs in your browser.

Advertisement
Advertisement