Word to Clean HTML Converter
Get web-ready HTML from Word without the class names, inline styles and empty spans that Save as Web Page produces.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open or paste
Drop a DOCX on the box, or press Paste from Word and paste into the area.
- 2Choose options
Set image handling, heading shift, table header, underline and full page.
- 3Check the preview
Look at the rendered result in the Preview tab.
- 4Edit the source
Adjust the HTML or Markdown tab if needed; undo is available.
- 5Download
Save HTML, Markdown or the ZIP with an images folder.
- 6Copy
Copy the active tab straight into your CMS or editor.
About this tool
Word was designed for paper, and when it exports to the web it tries to reproduce every font size, margin and list indent with inline styles, conditional comments and proprietary tags. A one-page memo can become fifty kilobytes of markup that breaks a website's own styling and confuses content management systems. Clean HTML describes meaning instead of appearance: this is a level 2 heading, this is a numbered list, this cell is a table header, this phrase is emphasised. The converter reads the document structure directly from the DOCX file. Heading styles, including renamed or inherited ones, become h1 to h6. Word's numbering definitions decide whether a list is bulleted or numbered, and list levels become properly nested lists. Tables keep merged columns, hyperlinks keep their targets, bold and italic become strong and em, superscript and subscript are kept, and images are embedded, saved as separate files or left out. Alternatively, paste straight from Word into the paste box; the clipboard markup is cleaned of mso styles, Office namespace tags and fake bullet characters, and goes through the same pipeline. You get HTML and Markdown side by side, a live preview and an editable source view with undo.
Options that matter
- Images: embed them as base64 for a single portable file, put them in an images folder inside a ZIP for a website, or leave them out for a text-only result. - Heading shift: many sites reserve h1 for the page title, so shifting by one turns Word's Heading 1 into h2. - Table header: treat the first row as th cells, which helps screen readers and styling. - Underline: off by default, because underlined text on the web looks like a link. - Full page: wraps the result in a complete HTML document with doctype, charset and title, ready to open in a browser.
HTML or Markdown
Use HTML for content management systems, email templates and anything that accepts a rich text source view. Use Markdown for static site generators, documentation tools, GitHub, wikis and note apps. Markdown has no merged table cells, so merged cells become empty neighbouring cells.
Pasting from Word
Pasting works with the desktop Word clipboard, which carries HTML. Lists that Word draws with symbol fonts are recognised and turned into real lists. Images in pasted content usually point to temporary files on your computer and are dropped; open the DOCX instead if you need them.
Limits
Text boxes, shapes, SmartArt, charts, footnotes, comments, tracked changes, headers and footers are not converted, and page layout such as columns and section breaks has no web equivalent. Colours and fonts are dropped on purpose, because a site's own stylesheet should decide them. Equations come out as plain text. This is not a visual page copier; if you need a pixel-perfect copy of the printed page, a PDF is the better format.
Worked example
A 14-page policy DOCX exported with Save as Web Page weighed 312 KB with 1,900 style attributes. Converted here with images as separate files and heading shift 1, the HTML was 38 KB containing 9 headings, 46 list items and 3 tables, and it pasted into the company CMS without breaking the site's fonts.
Quick facts
- Category: Documents & Letters
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: WHATWG HTML Living Standard
Frequently asked questions
Is my document uploaded?
No. The DOCX is unzipped and converted in your browser.
Why are my fonts and colours gone?
That is the point of clean HTML: your website's stylesheet decides fonts and colours.
Are numbered lists kept?
Yes. Word's numbering definitions decide between ordered and bulleted lists, including nested levels.
Can I edit the output?
Yes. The HTML and Markdown tabs are editable, with undo and redo.
What happens to images?
Choose embed, separate files in a ZIP, or leave out. Alt text from Word is kept.
Does pasting from Google Docs work?
Usually yes, since Google Docs also puts HTML on the clipboard, but it is tuned for Word.
