Keep one blank line
Input
Paragraph 1\n\n\nParagraph 2\n\n\n\nParagraph 3
Output
Paragraph 1\n\nParagraph 2\n\nParagraph 3
Clean up pasted text by collapsing repeated blank lines without removing meaningful single line breaks.
You can also treat whitespace-only lines as blank lines and switch the output to LF or CRLF.
This tool is for text that became too airy after copy and paste. It keeps normal line breaks in place, compresses only runs of blank lines, and lets you choose whether to keep one blank line, keep more, or remove blank lines entirely.
Input
Paragraph 1\n\n\nParagraph 2\n\n\n\nParagraph 3
Output
Paragraph 1\n\nParagraph 2\n\nParagraph 3
Input
A\n\n\nB\n\nC
Output
A\nB\nC
Input
Heading\n(space-only line)\n(tab-only line)\nBody
Output
Heading\n\nBody
A line with no actual content. This tool can optionally treat whitespace-only lines as blank lines too.
In practice, this means a run of blank lines. A single line break inside normal text is not the main target.
Two common line-ending formats. LF is typical on the web and Unix-like systems, while CRLF is common in Windows editors.
No. By default it keeps single line breaks and collapses only repeated blank lines. If you choose Remove blank lines, it removes empty lines while keeping normal line separation between content lines.
Yes. It is enabled by default. Lines that contain only spaces, tabs, NBSP, or full-width spaces can be compressed as blank lines.
Yes. In advanced options, switch Leading/trailing blank lines between Trim and Keep.
Yes. Change Output line ending from LF to CRLF in advanced options.
No. The transformation happens entirely in your browser, and the tool does not send your text to a server.