WordCountDesk
0Line breaks removed
0Extra spaces removed
0Characters left

Your text

Cleaned text

Remove line breaks and extra spaces from text

Text copied from PDFs, emails, scanned documents or web pages often arrives with a hard line break at the end of every line and with stray double spaces. This tool removes them in one step, so you get clean, flowing text.

Choose what happens to line breaks: replace them with a space, remove them completely, replace them with a comma, or keep only the breaks between paragraphs. You can also collapse repeated spaces, trim each line and turn tabs into spaces.

How to use it

  1. Paste your text into the left box.
  2. Pick what to do with line breaks in the options row.
  3. Tick the cleanup options you want: collapse spaces, trim lines, tabs and hyphenated words.
  4. Check the summary, then click Copy to take the cleaned text.

Which line break option should I choose?

Common uses

Frequently asked questions

Why does text copied from a PDF have so many line breaks?

PDFs store each printed line separately, so copying them keeps a line break at the end of every line. This tool joins those lines back into flowing paragraphs.

What does "Keep paragraph breaks" do?

It joins the lines inside each paragraph into one line, but keeps blank lines between paragraphs, so your text stays organized into paragraphs instead of becoming one long block.

Does it work with Windows, Mac and Linux line endings?

Yes. Windows (CRLF), Linux (LF) and older Mac (CR) line endings are all treated as line breaks.

What about words split with a hyphen at the end of a line?

Turn on "Rejoin words split by a hyphen". A word broken as "exam-" and "ple" on the next line is joined back into "example". Leave it off if your text contains genuine hyphenated words at line ends.

Privacy

Everything runs locally in your browser. Your text is never uploaded, stored or shared.