Updated
Using Remove empty lines
Paste a list or document to remove empty rows. By default, lines containing only whitespace are removed too; Options lets you retain those rows if they carry meaning.
The remaining lines keep their original spaces and punctuation. Windows and old Mac line endings become ordinary line breaks in the copied or downloaded text.
A worked example
“First line”, a blank line and “Second line” become two adjacent lines. Spaces inside either nonempty line are preserved.
Before you use the result
This removes whole blank lines, not extra spaces inside text. The final output has no empty trailing row unless you choose to retain a whitespace-only row.
Cite this page
ToolOctopus. “Remove empty lines.” Updated 2026-09-19. https://tooloctopus.com/remove-empty-lines.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
