About Remove Blank Lines
Remove Blank Lines drops empty and whitespace-only lines from your input — anything that contains no visible characters once whitespace is ignored. The remaining lines keep their original order. Unlike Trim Each Line, which only modifies content, this operation reduces the line count.
Reach for it whenever you want to compact a list: collapse the gaps left by deleted entries in a hand-edited file, clean up output from copy-pasting a paragraph block, normalise a TODO list before sorting, or strip the ragged blank rows out of a CSV column dump. The two whitespace tools complement each other — run Trim Each Line first to convert whitespace-only lines into truly empty ones, then Remove Blank Lines to drop them. Or use Remove Blank Lines on its own — it already treats whitespace-only and fully-empty lines the same way.
Examples
apple
banana
cherryapple
banana
cherryEmpty lines and whitespace-only lines are both dropped; everything else keeps its order.
Frequently asked questions
How is this different from Trim Each Line?
Trim modifies each line in place and keeps the line count the same. Remove Blank Lines removes lines entirely, reducing the count. They are complementary, not alternatives.
Will it remove a line that contains a single dot or other character?
No. Only lines with zero non-whitespace characters are dropped. A line with `.` or `#` or any non-whitespace character is kept, even if it is otherwise mostly whitespace.
Does the order of the surviving lines change?
No. Surviving lines keep their original order; only the blank ones are removed. The operation is order-preserving.
What about lines containing non-breaking space?
Non-breaking spaces (U+00A0) are still whitespace, so a line containing only non-breaking spaces is removed. The same applies to tabs, vertical tabs, form feeds, and other Unicode whitespace categories.
