Remove Empty Lines
Strip blank lines from text copied out of PDFs, email or spreadsheets.
How it works
Strip out blank lines to tighten up text copied from PDFs, emails or spreadsheets, where every other line often comes through empty.
Try an example
—🔒 Processed entirely in your browser — your text is never uploaded or stored.
About the Remove Empty Lines
This free tool strips blank lines out of text. It's the usual fix for content pasted from a PDF, an email or a spreadsheet, where every other line arrives empty and manually deleting them takes forever.
It runs in your browser and tells you how many lines it removed.
How to use it
- Paste the text with the unwanted blank lines.
- Choose whether lines containing only spaces or tabs should also go — they usually should.
- Copy the cleaned-up result.
Frequently asked questions
Does it remove lines that only contain spaces?
Yes, when the whitespace option is enabled (it is by default). Those lines look empty but contain spaces or tabs, so a plain check would miss them.
Why does text from a PDF have so many blank lines?
PDFs store text as positioned fragments rather than flowing paragraphs, so copying often introduces a line break after each visual line, plus empty lines between them.
Will it change the rest of my text?
No. Only empty lines are removed; every other line is left exactly as it was.