Remove empty and whitespace-only lines from your text, with the option to keep exactly one blank line between paragraphs — entirely in your browser.
Given the input:
Line One Line Two Line Three
With default settings (all blank lines removed), the output is:
Line One Line Two Line Three
With "Preserve one blank line between paragraphs" enabled instead, each run of blank lines collapses to exactly one rather than being removed entirely.
A completely empty line always counts. With "Treat whitespace-only lines as blank" enabled (the default), a line containing only spaces or tabs counts too — which is usually what people actually mean by a blank line, since it looks empty even though it technically has characters in it.
Instead of deleting every blank line, it collapses any run of one or more consecutive blank lines down to exactly one — so paragraph breaks are kept, but excessive gaps of several blank lines in a row are tidied up to a single line.
Yes. Windows-style (CRLF), old Mac-style (CR), and Unix-style (LF) line endings are all recognized correctly, and the result always uses plain line breaks.
No. Only lines that are empty (or, with the whitespace option on, contain only spaces/tabs) are ever removed. Any line with visible text is always kept exactly as it was.
No. Every operation happens locally in your browser using JavaScript. Nothing you type here is sent to Brekzy or stored anywhere.
Yes, completely free, with no account, sign-up, or usage limit.
Explore Brekzy's growing collection of free calculators, converters, AI tools, and practical resources.