Remove Empty Lines

Paste text and remove every empty line.

Free · Runs in your browser · Your text is never uploaded

Messy text with extra spaces and blank lines becomes neat, clean text

Deleting blank lines

This removes every line that is empty or contains only spaces, leaving a compact block. It is handy for tidying lists exported from spreadsheets, log files, pasted code and email text.

If you only want to shorten big gaps, untick “Remove all empty lines” and tick “Limit blank lines to one” to keep a single blank line between paragraphs instead.

Need more options? Open the full Text Cleaner.

Frequently asked questions

How do I remove blank lines from text?

Paste your text above. All empty lines are removed immediately.

Can I keep one blank line between paragraphs?

Yes. Untick “Remove all empty lines” and keep “Limit blank lines to one” ticked.

Does a line with only spaces count as empty?

Yes, lines containing only whitespace are removed too.