Remove empty lines

Remove every empty line from a text, including lines that only contain spaces.

Original text
Result

Empty lines is a free tool that runs entirely in your browser, with no data ever sent to a server. Remove every empty line from a text.

What it's for

Compacting a text pasted from a word processor or a PDF, which often leaves empty lines between paragraphs or at the end of the document.

What this tool does not do

This tool only applies the transformation described above, with no spelling correction and no understanding of the text's meaning. A text of tens of thousands of lines is processed instantly ; beyond that, the only limit is your device's memory.

Frequently asked questions

Is a line with just a space considered empty?

Yes : a line containing only spaces or tabs is treated as empty and removed.

Is my data sent to a server?

No : the text you type or paste is processed entirely in your browser, on your device. It is never transmitted to a server.

Do I need to create an account or install anything?

No : the tool works directly on this page, with no sign-up and no install.