Whitespace Cleaner
Fix messy spacing from copied text: double spaces, stray tabs, and spaces at the start or end of lines.
What each option does
- Trim spaces at start and end removes leading and trailing spaces from every line.
- Collapse multiple spaces turns runs of spaces or tabs into a single space.
- Convert tabs to 4 spaces replaces each tab character with four spaces.
- Remove extra blank lines at the end deletes empty lines after the last line of text.
Privacy
Cleaning happens in your browser. Your text is not uploaded.
Frequently asked questions
What does 'Collapse multiple spaces' do?
It replaces any run of two or more spaces or tabs inside a line with a single space.
Does it remove the spaces between words?
No. It only reduces repeated spaces to one. A single space between words is kept.
Why convert tabs to spaces?
Tabs can display with different widths in different programs. Converting each tab to four spaces keeps the layout the same everywhere.
Is my text uploaded?
No. The cleaning happens in your browser and your text is never sent to a server.