← Text & List Tools
Text & List Tools · runs locally

Normalize Blank Lines

Limit consecutive blank rows to an exact maximum while preserving indentation and every non-empty line.

Ready. Your working data stays in this browser.

Why this tool is useful

Use this normalizer to clean pasted Markdown, logs and editorial drafts that contain inconsistent vertical spacing.

How it works

Line endings are normalized in memory, runs of whitespace-only rows are counted, and only rows beyond the selected maximum are discarded.

Practical example

With a maximum of one, four line breaks between First and Second become the single empty row represented by two line breaks.

Validation

The calculation is deterministic and explains validation errors instead of silently changing invalid input.

Privacy boundary

Input and output remain in this tab. Copy and download happen through browser APIs without a server upload.

Result passport

Every run reports its tool mode, timestamp and input/output size so transformed data can be audited.