Whitespace Cleaner
Trim line edges and collapse repeated horizontal whitespace while keeping line boundaries under your control.
Loading Whitespace Cleaner...
How to use
Paste text, choose whether to trim each line or collapse runs of spaces and tabs, then clean it. Keep “Preserve lines” for normal cleanup; single-line mode intentionally replaces every whitespace run, including line breaks.
Example
Input
First line
Second line
Output
First line
Second line
Limitations
Whitespace cleanup cannot infer whether alignment made with spaces is meaningful. Single-line mode is intentionally destructive, and displayed line endings are normalized to LF.
Frequently Asked Questions
Will this merge my lines?
Not in the default Preserve lines mode. Only Single line intentionally changes line boundaries into spaces.
Are tabs treated as repeated spaces?
Yes when Collapse spaces and tabs is enabled. Turn it off if tabs or column alignment must remain exact.