DOCX to HTML

Convert Word documents to clean HTML for free — get semantic headings, paragraphs, lists, tables, links and embedded images without the inline-style bloat Word adds when it saves as a web page. Copy the HTML into your CMS or download a complete web page. Runs privately in your browser.

100% private — everything runs in your browser. Conversion happens on your device; nothing is uploaded.

100% private — runs in your browser

Produces clean, semantic HTML (headings, paragraphs, lists, tables, links and images) without Word’s bloated inline styles — ideal for pasting into a CMS. Converted with the open-source mammoth library in your browser; nothing is uploaded.

How to convert Word to HTML

  1. Drop your .docx file in the box.
  2. Choose embedded images or separate files.
  3. Tick “Full web page” if you want a standalone .html file.
  4. Copy the HTML or download it.

What you can use it for

  • Paste Word content into WordPress, Shopify or any CMS
  • Turn documents into email newsletters
  • Publish reports and policies as web pages
  • Clean up content before handing it to developers

More free tools

Building for the web?

Format, minify, convert and generate code with our free, private developer tools.

See all free tools →

Frequently asked questions

Why not use Word's “Save as web page”?

Word adds a lot of proprietary markup and inline styles. This tool outputs clean, semantic HTML that's easy to style and edit.

Are images included?

Yes — embedded as data URIs by default, or as separate files in a ZIP.

Is formatting like colours kept?

Structure is kept (headings, emphasis, lists, tables). Colours and fonts are intentionally left out so your site's styles apply.

Is my document uploaded?

No. Everything happens in your browser.

Is it free, and can I use the HTML commercially?

Yes. The converter is free, with no sign-up, and it adds nothing to your output: no watermark, credit line or tracking code. The HTML is your own document in a new format, so you can use it in commercial work without crediting us. You still need the rights to what's in the document, such as photos, illustrations or text written by someone else.

Should I embed images or save them as separate files?

Embedded keeps everything in one file, which is handy for pasting, but each image is written into the code as text, so the HTML gets large. Separate files downloads a ZIP with the HTML and an images folder (image1, image2 and so on); keep that folder next to the HTML file. Choose the option before you drop the document in, and expect the preview to show no images in this mode.

What does the “Full web page” option add?

Unticked, you get only the document content, ready to paste into a page or editor that already has its own layout. Ticked, the tool wraps it in a complete HTML file with a doctype, character set, mobile viewport, a title taken from the file name, and simple styles: a readable system font, a centred 760-pixel column, images that shrink to fit and bordered table cells.

Why are my headings coming out as normal paragraphs?

Headings are recognised by their style in the document, not by their size. Text set in the built-in Heading 1 to Heading 6 styles becomes h1 to h6 in the HTML. Text that was only made bigger or bold becomes an ordinary paragraph, with the bold kept as strong. Apply the heading styles in your document, save it, and drop it in again to get proper headings.

Which text formatting is kept?

Bold becomes strong and italic becomes em, and strikethrough, subscript and superscript are kept too. Links stay as working links, and bulleted and numbered lists become proper HTML lists, including nested ones. Underline, small caps and all caps are left out, along with colours, fonts and sizes, so the text picks up your website's own styles when you paste it in.

Can I edit the HTML before I copy or download it?

Yes. The Clean HTML box is editable, and Copy HTML and Download both use whatever is in the box, including your changes. The preview beside it shows the original conversion and doesn't update as you type. Set the Full web page option before you start editing, because ticking or unticking it rebuilds the code from the document and replaces your edits.

Why is the HTML all on one line?

The converter writes the document content as compact HTML, with no line breaks or indentation between tags. That keeps the code small and makes no difference to how the page displays. If you want to read or edit the code comfortably, copy it into our free HTML Beautifier, listed under Related tools, which indents it into a tidy, readable layout. Choose the Full web page option first if you need it.

What does “formatting details couldn't be carried over” mean?

It means the converter met parts of your document it couldn't map to HTML. Most often these are custom paragraph or character styles: that text still comes through as ordinary paragraphs or plain text, with only the style dropped. Less often it's an unusual element, symbol or image type. Check the preview, and if a custom style was meant to be a heading, switch that text to a built-in Heading style and convert again.