Strip blank lines or collapse consecutive empties. Free, private, runs in your browser.
100% private — your files never leave your browser. All processing happens locally on your device.
Empty lines accumulate in all kinds of text: scraped HTML, logs with excess formatting, documents copied from PDF with hard returns, AI-generated output padded with whitespace. Stripping them tightens the content for downstream use — smaller diffs, cleaner email bodies, less scroll when the content is the thing that matters.
'Remove all' deletes every empty line, leaving zero gaps between content. 'Collapse consecutive' is smarter: runs of 2 or more empty lines become a single empty line, preserving paragraph spacing. Use collapse for prose where you want to keep visual breaks but strip excess; use remove-all for lists, logs, or code.
Lines that look empty but contain spaces or tabs are a hidden source of bugs in diffs, tests, and parsers. The tool defaults to treating them as empty. Turn off 'Include whitespace-only lines' when you need to preserve every byte — useful when whitespace is semantically meaningful (YAML indentation, Python blocks, etc.).
Yes. The entire operation runs in your browser. No upload, no storage, no transmission. Your text is private from the moment you paste it to the moment you close the tab.
By default, lines that are completely blank or contain only spaces and tabs. Turn off 'Include whitespace-only lines' to only remove truly empty lines.
Replaces runs of 2 or more empty lines with a single empty line, preserving paragraph spacing in prose while stripping excessive vertical gaps.
No — non-empty lines pass through unchanged, including their original whitespace and content.