Whitespace Cleaner
Trim line ends, choose which other whitespace to change, and review the affected lines.
Opening Text
Open a Text File
UTF-8 text up to 512 KiB.
What the default cleans
Trims spaces and tabs at the end of lines that contain text. It preserves indentation, interior spacing, whitespace-only lines, nonbreaking spaces, the BOM and existing line endings.
Paste text or open a file. Typing and editing in the field uses LF line endings.
Cleanup Options
How the options work together
Blank-line handling runs first. Text on kept lines is trimmed, interior runs collapse to one space, and remaining tabs are replaced with the selected number of spaces. Line-ending normalization changes only existing endings.
By default a blank line is empty or contains only spaces and tabs. Include Unicode spaces extends trimming, collapse and the blank-line test to characters such as nonbreaking spaces. It does not change Unicode text on its own.
Cleaned Text
Download preserves exact UTF-8 bytes. The system clipboard may normalize line endings.
Line endings are marked in Line Changes below.
Line Changes
Source line numbers. · space, ⇥ tab, ⍽ nonbreaking space. Long lines show their beginning and end.