How to use the remove empty lines
- Paste the text or list.
- Leave the option ticked to also remove lines containing only spaces or tabs.
- Copy the result.
When blank lines get in the way
Text copied from web pages, PDFs and emails often arrives with an empty line between every row. That doubles the length of a list, breaks imports into spreadsheets, and makes code hard to read. This tool removes every line that has nothing on it and leaves the rest of your text exactly as it was, including indentation.
A line that looks empty may still contain spaces or a tab. With the option ticked those lines are removed as well, which is nearly always what you want. Untick it if whitespace-only lines are meaningful in your file.
To reduce multiple blank lines to a single one instead of removing them all, use find and replace with the regular expression \n{3,} replaced by two line breaks in the find and replace tool.