Remove Empty Lines

Remove blank lines from a text, with options to trim extra spaces and collapse multiple blank lines.

Live·100% in your browser — no upload

What is Remove Empty Lines

Remove Empty Lines deletes all blank lines from a text in one go. You can also trim leading and trailing spaces, or collapse multiple blank lines into a single one instead of removing them all.

The text is processed in the browser and is not sent anywhere.

How it works

  1. Paste the text into the box.
  2. Choose the options: trim spaces, or collapse multiple blank lines.
  3. Press Clean.
  4. Copy the result; below you can see how many lines were removed.

Frequently Asked Questions

What is the difference between removing and collapsing blank lines?
Removing deletes all blank lines. Collapsing keeps a single blank line where there were several, useful to preserve paragraph spacing.
Does it also remove spaces?
If you enable the option, it trims leading and trailing spaces on each line, useful to clean up badly copied text.
Is the text uploaded online?
No. Everything happens in the browser.

Related tools