Free Tool
Free Whitespace Cleaner
Trim, collapse, and tidy up messy whitespace in any block of text.
Free, private, no upload to a server. Everything happens in your browser.
All cleanup happens 100% in your browser — your text is never uploaded anywhere.

Use this operation in Text Studio →
Cleanup Options
Everything You Need to Clean Up Text
Trim & Tidy Lines
Strip leading/trailing whitespace and trailing spaces from every line.
Tabs ↔ Spaces
Convert tabs to a configurable number of spaces, or leading spaces back to tabs.
Collapse Extra Spaces
Turn runs of multiple spaces into a single space.
Blank Line Control
Allow at most one blank line in a row, or strip blank lines entirely.
Invisible Characters
Remove zero-width spaces, BOMs and soft hyphens that copy-paste leaves behind, and straighten smart quotes.
100% Private
Everything runs locally in your browser — your text is never uploaded.


