Word to HTML Converter

Upload a .docx file or paste straight from Word. Get clean, publish-ready HTML.

Drop a .docx file here, or browse

Files are converted in your browser and never uploaded to our server.

Visual Editor Paste from Word here
HTML Source 0 characters
Cleaning Options

Turn Word documents into clean HTML

Word is a great place to write and a poor place to generate web markup. Saving a document as HTML from Word produces markup weighed down with mso- declarations, nested <span> wrappers, conditional comments, and inline styles for things as small as a single bold word. Pasting that into a CMS usually means the text either ignores your site's stylesheet or fights with it.

This tool takes the document, extracts the structure that actually matters — headings, paragraphs, lists, tables, links, emphasis — and discards the rest. What you get back is markup you can drop into a template without it dragging Word's formatting along with it.

How to convert a Word document

  1. Add your content. Drop a .docx file onto the upload area, or open the document in Word and paste it directly into the visual editor. Both routes work; pasting is often quicker for a single section.
  2. Switch to HTML Source. The generated markup appears immediately. You can edit it here if you want to adjust anything by hand.
  3. Pick your cleaning options and press Clean. The defaults suit most CMS work. Turn on stricter options if you want markup stripped back further.
  4. Copy or download. Paste into your CMS editor in HTML mode, or save a .html file to work with locally.

What each cleaning option does

OptionWhat it removesExample
Inline styles Every style attribute, so your site's CSS controls appearance <p style="font-size:11pt"><p>
Classes and IDs Word's generated hooks like MsoNormal, which mean nothing on your site <p class="MsoNormal"><p>
Empty tags Elements left with no content after other cleanup <span></span> → removed
HTML comments Conditional comments Word uses to target older Office versions <!--[if gte mso 9]> → removed
Repeated &nbsp; Runs of non-breaking spaces used for manual indenting &nbsp;&nbsp;&nbsp; → single space
Word-specific tags Office namespace elements that browsers don't recognise <o:p></o:p> → removed
All attributes Everything except href and src, for maximum stripping <img src="a.png" width="52"><img src="a.png">
Plain text All markup, leaving only the readable text <p><b>Hi</b></p>Hi

Frequently asked questions

Is my document uploaded to your server?

No. Conversion happens entirely in your browser using JavaScript. The file never leaves your machine, which also means the tool works on documents you would not want to send to a third party.

What happens to images in my document?

Images embedded in a .docx are converted to Base64 data URIs and placed inline in the HTML. That keeps everything in one file, but it does make the output considerably larger. For anything more than a couple of small images, you will usually get better results uploading them to your media library separately and replacing the src values.

Why does Word's own "Save as HTML" produce such messy code?

Word's HTML export is designed to round-trip back into Word with formatting intact, not to produce markup for the web. It preserves every detail of the document's appearance as inline styles and proprietary attributes so nothing is lost when reopened. That goal is the opposite of what you want when publishing, where the page should inherit its styling from the site.

Can I convert HTML back into a Word document?

Not with this tool — it converts in one direction. To go the other way, paste the rendered output from the visual editor into Word, which will preserve basic structure and formatting.

Does it work with Google Docs, Pages, or LibreOffice?

Yes, via copy and paste into the visual editor — those editors put HTML on the clipboard, which gets cleaned the same way. For file upload, .docx is the supported format. Google Docs can export to it through File → Download → Microsoft Word, and LibreOffice can save as .docx directly.

Can I open older .doc files?

The upload area handles .docx only, since the older .doc format is a binary format that browsers can't read. Open the file in Word or LibreOffice and save it as .docx first, or simply copy the content and paste it into the editor.

Which cleaning options should I use?

The four enabled by default cover most CMS publishing: they remove styling and Word's own hooks while leaving your document structure intact. Add Strip all attributes if you want the most minimal output possible, but note it also removes alt text from images, which matters for accessibility — you would need to add those back.

The output still looks wrong. What now?

Heavily formatted documents — multi-column layouts, text boxes, SmartArt — don't have clean HTML equivalents and will not survive conversion well. These are layout features rather than document structure. Rebuilding those sections directly in HTML usually takes less time than fixing the converted output.