Dirty Input
Cleaned HTML
Original Size: 0 B
Cleaned Size: 0 B
Reduction: 0%

This tool is free to use

Built with care for SEOs. If it saved you some time, consider buying me a coffee to support future updates.

Buy me a coffee

What does Sanitize Pro do?

Sanitize Pro strips the bloated inline styles, spans, classes, and IDs that Google Docs and Microsoft Word inject when you copy formatted text out of them — turning messy, oversized markup into clean, semantic HTML that's ready to paste into a CMS. Word processor exports are notorious for wrapping every few words in a <span style="...">, which bloats page weight and can conflict with your site's own CSS.

Choose exactly what to strip — spans, inline styles, classes, IDs, and optionally empty tags — and watch the byte-savings update live as you paste. Spans are unwrapped rather than deleted outright, so their text content is preserved; only the wrapping tag itself is removed.

Frequently asked questions

Is Sanitize Pro free to use?

Yes, completely free with no account or usage limit.

What exactly does it strip?

Inline style attributes, class and id attributes, and Word-specific junk attributes like lang, valign, and align are removed by default. Spans are unwrapped (keeping their content) and empty tags can optionally be removed too.

Is my content uploaded anywhere?

No. All cleaning happens locally in your browser using the DOM — nothing is sent to a server.

Why is this useful specifically for Google Docs or Word content?

Both tools generate a huge amount of inline formatting cruft when you copy text out — often multiple nested spans per sentence, each carrying its own inline style. Pasting that directly into a CMS bloats the page and can override your site's intended styling. This strips it down to clean, semantic tags before you publish.

Does it remove empty tags by default?

No — "Remove Empty Tags" is unchecked by default, since it's the one option most likely to remove something intentional (like an empty spacer element). Turn it on if you specifically want a stricter clean-up.

Related tools