Remove or reduce blank lines
- Remove (default) deletes every empty line, so a list has one item per line with no gaps.
- At most one in a row keeps single blank lines between paragraphs but removes extra ones.
Lines with only spaces or tabs count as empty. Combine with Spaces: Trim line starts and ends to tidy the remaining lines too.
To remove other kinds of lines, such as lines that contain a word, use Filter lines.
Removing empty lines in a text editor
Editors with regular expression search can do the same: in VS Code, Sublime Text or Notepad++, turn on regular
expressions, search for ^\s*$\n and replace with nothing. This page is quicker when the text is not in a
file yet, and it also handles lines that contain only no-break spaces, which \s matches in some editors
and not in others.
Related tools
Questions
How do I delete blank lines from a list?
Paste the list. Empty lines are removed straight away; copy the result.
Are lines with only spaces removed?
Yes. A line with only spaces or tabs counts as empty.
Can I keep one blank line between paragraphs?
Yes. Choose Empty lines: At most one in a row.