Remove Line Breaks

Join text that is broken across many lines into a single paragraph. Great for text copied from PDFs and emails.

How the remove line breaks works

Every line break is replaced by a space, then repeated spaces are collapsed into one and the ends are trimmed. The result is one continuous line with single spaces between words.

Everything runs in your browser. Your text is not uploaded or stored.

Example

Input
This text was copied
from a PDF and it has
line breaks in odd
places.
Result
This text was copied from a PDF and it has line breaks in odd places.

Frequently asked questions

Why does text copied from a PDF have line breaks?

PDF files store each visual line separately, so copying keeps a break at the end of every line.

Does it keep paragraph breaks?

No. All line breaks are removed. Convert one paragraph at a time if you want to keep paragraphs apart.

More text tools

All of these are also available together on the Text Tools page.