Whitespace Cleaner
Whitespace Cleaner: Trim line edges and collapse repeated blank lines.
Whitespace Cleaner
Whitespace Cleaner: Paste untidy text and run the cleaner to trim the ends of each line and reduce runs of blank lines to a single empty line.
Loading the tool...
✓ Your inputs stay in this browser
How to use Whitespace Cleaner
Paste untidy text and run the cleaner to trim the ends of each line and reduce runs of blank lines to a single empty line.
Example
Text with three empty lines between paragraphs is reduced to one empty line between paragraphs.
What to know
Internal spacing within a line is preserved. This prevents unintentional changes inside code, but review indentation before using the output as source code.