100% Private — runs in your browser

How to Remove Empty Lines from Text (Free, in Seconds)

Text copied from a PDF, an email or a spreadsheet often arrives padded with blank lines that serve nobody. Here are the fast ways to strip them out — online, in Word, and in a text editor.

Empty lines sneak in everywhere. PDFs store paragraphs with spare line breaks, email forwards add a blank line per reply, and exported data pads records with gaps. A document with a blank line after every line is twice as long as it should be and painful to read, sort or paste anywhere else.

The 10-second online method

  1. Open the free Remove Extra Spaces tool.
  2. Paste your text.
  3. The cleaned text appears instantly — extra blank lines gone, spacing tidied.
  4. Copy it back wherever it needs to go.

It runs entirely in your browser, so a client list or an unpublished draft is never uploaded to a server. If your problem is the opposite — lines broken in the middle of sentences, the classic PDF copy-paste injury — the Remove Line Breaks tool joins them back into paragraphs instead.

In Microsoft Word: find and replace

Word can do it with its paragraph-mark code. Press Ctrl+H, tick "Use wildcards" off, and search for ^p^p (two paragraph marks in a row), replacing with a single ^p. Click Replace All, and repeat until Word reports zero replacements — long documents can hide runs of three or four blank lines that need several passes.

In Notepad++: one menu item

Select the text (or open the file), then go to Edit → Line Operations → Remove Empty Lines. There is a second option, "Remove Empty Lines (Containing Blank Characters)", which also catches lines that hold only spaces or tabs — the ones that look empty but technically are not.

Why the gaps appear in the first place

Most blank-line infestations come from format conversion. A PDF encodes visual spacing as literal empty lines; an email thread quotes the message above and pads the join; a spreadsheet export ends each record with a spare break. You cannot stop other people's files doing this — but cleaning them is a ten-second job once you know where the button is.

Quick answers

Will removing empty lines join my paragraphs together?

No. Removing blank lines only takes out the empty rows — your sentences and paragraph breaks stay where they are. Joining lines that were broken mid-sentence is a different job, done by the Remove Line Breaks tool.

Why does text copied from a PDF have so many blank lines?

A PDF stores how a page looks, not how it reads. The spacing between paragraphs and sections is saved as literal empty lines, and copying the text brings every one of them along.

Does the online tool work on a phone?

Yes. It runs in any modern browser, phone or computer, and the text never leaves your device — so it is safe for private documents too.

The bottom line

For a one-off clean-up, the online tool is fastest and nothing leaves your device. For documents that live in Word, ^p^p → ^p does the same job. Either way, the padded, double-spaced mess is optional.