Remove Line Breaks from Text

Text copied out of a PDF, an email, or a terminal arrives broken at every visual line rather than at every real paragraph. This tool rejoins those fragments while keeping genuine paragraph breaks, and can also collapse duplicated blank lines and spaces.

How to use it

  1. Paste the text with broken line breaks.
  2. Choose whether to keep paragraph breaks — usually yes for prose.
  3. Enable collapsing of extra spaces and blank lines if the source is messy.
  4. Copy the cleaned text into your document.

Frequently asked questions

Why does PDF text break at every line?

Because a PDF stores the position of each line of glyphs, not flowing paragraphs. Copying reproduces the visual layout, so every line ending becomes a hard break.

How does it tell a line break from a paragraph break?

A blank line between blocks marks a paragraph, and single breaks inside a block are treated as wrapping. This handles the vast majority of copied prose correctly.

Will it join hyphenated words split across lines?

Yes, when the option is enabled. A trailing hyphen followed by a line break is rejoined, so "invest-" and "ment" become "investment".

What is the difference between CRLF and LF?

Windows ends lines with carriage return plus line feed, while Unix and macOS use line feed alone. Mixed endings cause the stray characters you sometimes see; this tool normalises both.

All free tools · Blog · About · Contact

Also available in: Español · Português · Français · Deutsch