CountKit

Text cleanup / Remove line breaks

Remove line breaks

Text copied from PDFs, emails and old documents often has a hard line break at the end of every line. This tool joins those lines back into flowing text with single spaces. Tick "keep paragraphs" to keep blank-line paragraph breaks while fixing the lines inside them.

clean.txt

How it works

  • Paste the text with broken lines into the editor.
  • Each line break and the spaces around it become one space.
  • With "keep paragraphs" on, blank lines still separate paragraphs in the result.

At a glance

Remove line breaks
Remove line breaks from text copied out of PDFs and emails. Join lines with spaces, or keep paragraph breaks. Free and private.
Price
Free, no sign-up
Works on
Phones, tablets and computers, in a web browser
Your data
Text is processed in your browser and is not uploaded. Your draft is saved only on your device.

Frequently asked questions

Why does text from a PDF have line breaks everywhere?

PDFs store text as positioned lines, not paragraphs, so copying adds a break at the end of each line on the page.

Will it merge my paragraphs too?

Only if "keep paragraph breaks" is off. With it on, blank lines are kept as paragraph separators.

Does it remove hyphens at line ends?

No. Words hyphenated across lines keep their hyphen, since some are real compound words. Use find and replace for those.