Remove Empty Lines

Remove Empty Lines deletes blank and whitespace-only lines from your text to close up the gaps in a list or block, with an option to collapse runs of blanks down to a single line. It runs in your browser and keeps the remaining lines in order.

Copied!

How to use

  1. Paste text that has unwanted blank lines.
  2. Choose whether whitespace-only lines count as empty.
  3. Copy the compacted result.

About this tool

Delete blank lines — and lines that only contain spaces or tabs — to close up the gaps in a list or block of text. Free online text tools. Everything runs in your browser — your text never leaves your device.

FAQ

What about lines with just spaces?

Enable “Treat whitespace-only lines as empty” and they will be removed too.

Can I keep single blank lines between paragraphs?

Yes — turn on “collapse runs of blank lines to a single one” to keep paragraph spacing while removing the extra gaps.

Does the order of my lines change?

No, the remaining lines stay in their original order.