Dad’s Words tools

Remove Empty Lines

Strip all empty and blank lines from your text in one click.

Input
Cleaned Output

Output with empty lines removed will appear here.

Paste, upload, or drop a file in the input panel to get started.

What counts as empty

A line is removed if it is completely empty or contains only whitespace (spaces, tabs). The filter uses line.trim() === '' — so a line with just two spaces is removed, but a line with a single hyphen is kept. The non-empty lines are then joined with newlines in their original order; no other whitespace normalisation is applied.

Tip: If you want to remove empty lines AND collapse multiple spaces within lines, use the Trim & Clean tool instead — it combines both operations.

Common use case: pasting from PDFs

PDFs frequently include blank lines between every text line when copied. Remove Empty Lines collapses those in one step. If the PDF also breaks sentences mid-line, follow up with the Line Breaks tool in "Remove All" mode to rejoin them.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Words tools

Search the Words tools