All 127 tools

Remove Empty Lines

Delete blank and whitespace-only lines from text, or collapse multiple blank lines into one.

Runs in your browser. Nothing you paste is sent anywhere.

6 line(s) removed.

Output

About this tool

Text copied from PDFs and web pages often comes with extra blank lines. Remove them all, or keep single blank lines between paragraphs.

Tidying text copied from PDFs and websites

Copying text from a PDF, an email or a web page often brings along a mess of blank lines. Paragraphs end up separated by three or four empty lines, lists stretch down the page, and pasted content looks untidy in documents, forms and chat messages. Removing those gaps by hand is slow, and it is easy to delete a line you meant to keep.

This tool removes empty lines in one step. You can strip every blank line for a compact block of text, which suits lists, code and data, or keep single blank lines between paragraphs so prose stays readable. Lines that contain only spaces or tabs are treated as empty, since they look blank even though they are not technically empty. That is usually what people want when cleaning up pasted text.

It pairs well with the other text tools. If the pasted text also has extra spaces at the start or end of lines, run it through the trim tool. If the same lines repeat, use the duplicate remover afterwards. For text extracted from scanned PDFs, you may still need to join lines that were split in the middle of sentences, which is easier once the blank lines are gone. Writers preparing content for a website often use this step before pasting into a content management system, since extra empty lines can turn into unwanted spacing on the page. Because everything happens in your browser, it is safe to clean confidential documents, contracts and internal reports here.

How to use it

  1. Paste your text into the input box, or open a file from your device.
  2. Adjust the options. The result updates instantly.
  3. Copy the result, or download it as a file where offered.

Questions

Are lines with only spaces removed?

Yes. Lines that contain only spaces or tabs count as empty.

Can I keep paragraph breaks?

Choose 'Collapse to one' to keep a single blank line between paragraphs.

Last reviewed 16 October 2026.