Whitespace Cleaner
Clean up messy text by trimming each line, collapsing repeated spaces, and removing or collapsing blank lines.
Input
Cleaned
Ad space
Frequently asked questions
Does this remove line breaks entirely?+
No, line breaks are preserved; only leading/trailing spaces on each line, repeated inline spaces, and excess blank lines are cleaned up.
What's the difference between the two blank line options?+
"Collapse consecutive blank lines" reduces runs of multiple blank lines to a single blank line; "Remove all blank lines" deletes every blank line entirely.
Will this affect tabs used for code indentation?+
If "Collapse multiple spaces" is on, runs of tabs and spaces are collapsed to a single space, which will flatten code indentation. Turn it off if you need to preserve that.