Clean messy HTML from Word, Google Docs and web pages. Remove styles, classes, scripts, comments and empty tags, unwrap spans and keep clean semantic markup.
Free, no sign-up
Runs in your browser
Your data stays private
How to use the HTML Cleaner
Paste HTML, or copy text from Word or a web page and paste it.
Choose how many attributes to keep.
Copy the clean HTML or check the preview.
Why use this HTML Cleaner
Word and Docs readyRemoves Office tags, Mso classes and empty paragraphs.
Attribute controlKeep only safe ones, strip all, or remove just style and class.
Safe outputScripts, iframes, event handlers and javascript: links are removed.
Semantic tagsOptionally turns b and i into strong and em.
Frequently asked questions
How do I clean HTML pasted from Word?
Paste it with the default options. Styles, Mso classes, empty paragraphs and span tags are removed.
Will it remove my links?
No. Links and images are kept. Only unsafe javascript: links are removed.
Does it change the text?
No. The visible text stays the same; only markup is cleaned.