Word to Clean HTML Converter
Paste from Word, Google Docs or a web page — or drop a .docx file — and get lean, semantic HTML with the junk stripped out.
Loading converter…
How to use the Word to Clean HTML Converter
- Paste your content into the box (Ctrl+V) — or click Choose file and pick a .docx, .txt or .html file.
- Toggle the options: semantic tags, keep links, keep images, paragraphs only.
- Review the clean HTML and the live preview.
- Copy the HTML or download it as an .html file.
Examples
| Input | Output | Notes |
|---|---|---|
<p class="MsoNormal"><span style='font-size:11pt'>Hello <b>world</b></span></p> | <p>Hello <strong>world</strong></p> | Word classes, inline styles and empty spans removed; <b> becomes <strong>. |
Two lines of
plain text
and a second paragraph | <p>Two lines of<br>
plain text</p>
<p>and a second paragraph</p> | Plain text: blank lines become new paragraphs. |
A .docx file with headings and a bullet list | <h2>…</h2><ul><li>…</li></ul> — structure kept, styling dropped |
What 'clean HTML' means here
Clean HTML is markup that carries only structural, semantic tags — <p>, <h2>, <ul>, <strong>, <a> — with no inline styles, no editor-specific classes and no vendor tags. It inherits your site's styling instead of fighting it.
What gets removed
| Removed | Kept |
|---|---|
| mso- styles, style="" attributes | Text content and structure |
| class, lang, dir attributes | Headings, lists, tables |
| <o:p>, <w:*>, conditional comments | Links (optional), images (optional) |
| Empty <span> / <font> wrappers | <strong> / <em> emphasis |
When to use it
- Moving a document into WordPress, Ghost, Notion or a static-site CMS
- Building an HTML email from a Word draft
- Cleaning copy pasted by clients or writers before publishing
- Extracting readable HTML from a .docx without opening Word
Related tools
Format the result further with the HTML Beautifier, edit it visually in the HTML Editor, or generate placeholder copy with the Lorem Ipsum Generator.
Frequently asked questions
Why does HTML pasted from Word look so messy?
Word and Office web apps wrap content in proprietary markup: MsoNormal classes, mso- inline styles, <o:p> tags, conditional comments and nested empty spans. Browsers ignore most of it, but it bloats the source and overrides your site's CSS. This tool removes all of it.
What formats can I convert?
Paste rich text from Word, Google Docs, Pages or any web page, or upload a .docx, .txt or .html file. Legacy .doc files are not supported — save them as .docx first.
Is my document uploaded to a server?
No. Both the paste cleaner and the .docx reader (Mammoth.js) run entirely in your browser. Your content never leaves your device.
What does 'paragraphs only' do?
It flattens headings, lists, blockquotes and tables into plain <p> elements — useful when you want the text but not the original structure.
Are images included?
By default images are stripped. Turn on 'Keep images' to retain them; images inside a .docx are embedded as base64 data URLs so they work without separate files.
Is the output valid HTML?
Yes. The result is sanitised, limited to a safe set of semantic tags, and re-indented, so it is ready to paste into a CMS, email template or static page.