Trims lines, collapses spaces and removes empty lines.
The whitespace cleaner tidies messy text by trimming trailing and leading spaces from each line, collapsing repeated spaces and tabs into a single space, and removing blank lines. It is handy whenever you paste code, logs, or data and want consistent, clean formatting without manually hunting for stray whitespace. Each option is an independent toggle, so you can apply only the cleanup you need.
No. The whitespace cleaner runs entirely in your browser as a pure text transformation. Nothing you paste is sent to a server, so it is safe for private code, logs, and data.
It replaces any run of two or more spaces or tabs with a single space. A single space between words is left untouched, and other characters are never changed.
Spaces are collapsed first, then each line is trimmed, and finally empty lines are removed. This ordering means a line that becomes blank after collapsing and trimming will also be dropped when Remove empty lines is on.
No. Trimming only strips leading and trailing whitespace from each line; a line that becomes empty stays as an empty line unless you also enable Remove empty lines.
No. Only spaces and tabs are treated as whitespace. Emoji, accented letters, and other non-whitespace characters are preserved exactly.