Skip to content
QuicklyTools

Remove Empty Lines

Strip blank and whitespace-only lines from text, code or lists. See how many lines were removed.

Runs in your browser
Loading tool…

About the Remove Empty Lines

Text pasted from PDFs, emails and web pages often comes with stray blank lines. Remove them all in one click, optionally treating lines that contain only spaces or tabs as empty too. It also reports exactly how many lines were removed.

How to use it

  1. Paste your text.
  2. Decide whether whitespace-only lines count as empty.
  3. Copy the compacted result.

Good to know

  • This removes all blank lines, including paragraph breaks. To keep single blank lines between paragraphs, use Remove Extra Spaces instead.

Frequently asked questions

Can I remove only double blank lines?

Use Remove Extra Spaces with “Collapse blank lines”, which keeps one blank line between paragraphs.

Does it trim spaces inside lines?

No, line content is left unchanged.

More text tools →