Remove empty lines

Delete every blank line from your text, including lines with only spaces.

Words
0
Characters
0
Characters (no spaces)
0
Sentences
0
Paragraphs
0
Lines
0
Reading time
0 min

Your text never leaves your device. Everything runs in your browser.

How to use

  1. Paste your text in the box.
  2. Click Remove empty lines.
  3. Copy the compact result.

Examples

List with gaps
Apples


Pears
   
Grapes
Apples
Pears
Grapes

Text copied from PDFs, websites and e-mails often arrives with extra blank lines between items. This tool removes them so that each line contains real content.

Lines that look empty but contain spaces or tabs are removed too, which is usually what you want when preparing a list for a spreadsheet or a database import.

If you prefer to keep paragraphs separated by a single blank line, use Remove extra spaces instead: it limits gaps to one blank line rather than removing them all.

Frequently asked questions

Will my paragraphs be joined?

Paragraphs will no longer have a blank line between them, but each line stays separate. Use Remove extra spaces to keep one blank line between paragraphs.

Does it remove spaces inside lines?

No. Only lines that are completely blank are deleted.

Can I undo it?

Yes, click Undo to restore the previous text.

More tools