Collapse blank lines
Collapse blank lines with local processing and strict input validation.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Text
Result
The result was generated locally.
Enter text to process
What this tool does
- Collapse runs of blank lines down to at most one blank line, while keeping single blank lines.
- CRLF, CR and LF input all come out as LF.
- Text lines are never removed or merged; only blank lines are affected, including the ones at the start.
Example
Input
a b
Output
a b
The example has two blank lines between a and b, and the output keeps just one; line endings are normalised to LF.
Frequently asked questions
Is empty input supported?
Yes, it returns an empty result.
How is invalid input handled?
An explicit invalid-input or invalid-options error is returned.
Is data uploaded?
No, processing runs locally in the browser.
Keywords:Collapse blank linestext cleaninglocal tool