Remove Empty Lines

Delete the blank lines from text to close up the gaps.

Closing the gaps

Text often arrives with too much vertical space — blank lines between every entry, gaps left by a messy paste, double-spacing you did not want. This strips the empty lines out so the content closes up into a tidy block, without you deleting each blank line by hand.

Paste the text and the empty lines are removed.

Blank lines versus whitespace

This deals specifically with empty lines — the vertical gaps between content. If the problem is horizontal instead, runs of spaces or stray tabs within lines, a whitespace cleaner is the tool for that. And if you want to remove genuinely empty lines but keep lines that only look empty because they contain spaces, a thorough removal handles those blank-but-not-empty lines too.

Questions & answers

Does it remove lines that only contain spaces?

A thorough removal catches lines that look empty because they hold only spaces, as well as truly blank ones.

What if I want to remove extra spaces instead?

For runs of spaces or tabs within lines, use a whitespace cleaner rather than this.

Is my text uploaded?

No. It is processed in your browser.

More Text tools