Whitespace Cleaner

Remove extra spaces, tabs, and blank lines from text.

Blank lines
Output

Usage examples

Cleaning up formatting leftovers from pasted text

Tidy up stray extra spaces and blank lines mixed into text copied from a word processor or webpage.

Normalizing tabs to spaces in code or config files

Unify text that mixes tabs and spaces into a consistent space width so there's no more display inconsistency.

Trimming excessive blank lines between paragraphs

Clean up a document with too many blank lines from repeated line breaks down to a single blank line between sections.

Frequently asked questions

Is my text sent to a server?

No. All processing happens entirely in your browser, and what you enter is never sent to a server.

What's the difference between the three blank line options?

'Keep all' leaves blank lines untouched. 'Collapse to single' reduces consecutive blank lines to just one. 'Remove all' deletes every blank line.

How do I set the width when converting tabs to spaces?

Turning on convert tabs to spaces reveals a tab width field you can set directly; it defaults to 4.

Can I apply multiple options at once?

Yes. Every option works independently, so you can turn on any combination you need at the same time.