Add your input
Messy plain text.
Normalize pasted text while keeping its words intact.
This sentence has extra spaces. This line starts with a tab.
Removed 12 unnecessary characters.
Your work stays private in your browser while you use this tool.
The whitespace cleaner can trim every line, collapse repeated inline spaces, reduce multiple blank lines to one, replace each tab with two spaces, and trim the whole document. Each operation has its own switch.
Messy plain text.
Normalize pasted text while keeping its words intact.
A consistently spaced version.
Do not use aggressive whitespace cleanup on source code where indentation is significant.
Normalize prose pasted from a PDF or rich-text editor before publishing it.
Remove accidental trailing spaces and blank-line runs from a plain-text list.
Turn tab-indented notes into consistently spaced text for a form or ticket.
Windows and classic Mac line endings are normalized to line feeds. The enabled transformations then run in order: tabs, per-line space collapsing and trimming, blank-line collapsing, and whole-document trimming. The result and removed-character count update immediately.
Yes. Whitespace cleaner is free to use.
Yes. Your work stays private while you use the tool — nothing you enter is uploaded.
Yes. Keep “Trim line edges” on and switch “Collapse repeated spaces” off; the controls operate independently.
A run of multiple empty separator lines becomes one empty line between the surrounding text blocks.