Skip to content
No uploads · runs in browser

Whitespace Cleaner

Clean up pasted text: repeated spaces, tabs, trailing spaces, and extra blank lines in one click.

Favorite it to find it fast on home

When to use it

Clean up uneven spacing from a PDF copy-paste
Strip blank lines added by web copy-paste
Remove trailing spaces before committing code

How to use it

1Step 1Paste your text into Original to start
2Step 2Press Clean up and the result appears below
3Step 3Use the copy button to take the result anywhere

If the result looks off

The result looks cut off

Use the copy button to get the full result.

My input disappeared

It is saved on this device. Clearing browser storage removes it too.

Frequently asked questions

Can I undo?

Yes, an undo button restores the original text.

How many spaces does a tab become?

One tab becomes two spaces. If your editor uses four, re-indent after pasting.

Related tools

View all →