Remove Blank Lines
Remove blank or whitespace-only lines from any text. Content lines stay in their original order; only empty lines are dropped.
first
second
third → first
second
third
Remove blank or whitespace-only lines from any text. Content lines stay in their original order; only empty lines are dropped.
first
second
third → first
second
third
Removes blank lines from a block of text. A line is treated as blank if it contains nothing or only whitespace (spaces, tabs). All non-empty lines stay in their original order.
Useful for cleaning up text pasted from PDFs, fixing double-spaced paragraphs, or normalising multi-line output before further processing.
Copy-pasting from a PDF often inserts empty lines between paragraphs. Strip them in one pass before formatting.
Some apps insert an empty line after every paragraph. Removing the blanks gives you tightly-packed prose.
If you're feeding text to a parser line-by-line, removing blanks reduces edge cases.
Slack and Discord exports include empty lines between messages — strip them to get a compact transcript.
Lists with empty separator lines look loose. Strip the blanks for tighter visual rhythm.
Yes — a line containing only spaces or tabs counts as blank and is removed.
Yes — the tool doesn't know about syntax. If you need to preserve specific blank lines, manually paste them back after running the tool.
It removes them entirely. If you want "at most one blank line between paragraphs", run the tool then re-add a single blank line where you need it.
It normalises Windows-style \r\n into Unix-style \n in the output. Most apps render both identically; if you need Windows endings specifically, convert after.