Word to HTML Converter
CV-128Open a .docx file and get clean HTML: Word headings become h1 and h2, lists become ul and ol, and bold, italic, links and tables carry over without Word's styling markup. Check the rendered result with Preview.
Runs in your browser. Nothing is uploaded.
Word file (.docx)
HTML
How to use it
- Press Open file or drop a .docx file on the left pane. Press Sample to try a short document.
- Choose whether to keep images inline or leave them out, and whether you want indented or one-line HTML.
- Pick Body HTML only to paste into a CMS, or Full HTML page for a standalone file.
- Read any warnings under the file details, press Preview to check the result, then Copy or Download.
Semantic HTML, not a visual copy
The converter uses the mammoth library, which reads the structure of the document rather than its look. Paragraphs in the Heading 1 to Heading 6 styles become h1 to h6, bulleted and numbered lists become ul and ol, and bold, italic, links, tables, footnotes and endnotes are kept. Underlines are dropped because they are easy to confuse with links. Fonts, colors, sizes, spacing, page layout, headers and footers, text boxes and comments are dropped too, which is why the HTML is short and easy to restyle.
What the warnings mean
When the document uses a paragraph or character style that has no HTML mapping, such as a custom Quote Box style, the text is still converted, as a plain paragraph or plain text, and a warning names the style. Warnings are listed under the file details. They tell you which parts may need a class or a manual tweak after you paste the HTML. A document with no warnings converted every style it found.
Images: inline or left out
With Keep (inline data URIs), each image is embedded in its img tag as base64 text, so the HTML works on its own but is larger than the images themselves by about a third. The alt text comes from the image description in Word, when there is one. Choose Leave out to get text-only HTML, which is usually what you want before uploading images to your CMS separately. The summary says how many images were found.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
This is not a .docx file (it is not a ZIP package). Old .doc files and password-protected documents cannot be read; save as .docx without a password first. | The file is an old binary .doc, an encrypted document, an RTF or PDF, or something else that is not a .docx package. | Open it in Word or another editor, remove any password, and save it as a Word Document (.docx). |
This file is not a Word document (no word/document.xml inside). Excel and PowerPoint files are not .docx files. | The file is a ZIP package, such as an .xlsx or .pptx, but it has no Word document inside. | Pick the .docx file. For a spreadsheet, use the Excel to HTML converter instead. |
Questions people ask
How do I convert a Word document to HTML?
Open the .docx file here. The HTML appears at once in the right pane, with headings, lists, links and tables converted to their HTML elements. Press Preview to check it, then copy it into your CMS or download it as an .html file.
Why does my heading come out as a plain paragraph?
Only text in Word's built-in Heading styles becomes h1 to h6. Text that was made big and bold by hand, or uses a custom style, has no heading information, so it becomes a paragraph. Apply the Heading 1 or Heading 2 style in Word and convert again.
Does it work with .doc files?
No. Only .docx files, the format Word has saved by default since Word 2007, can be read. Open an old .doc file in Word or LibreOffice and save it as .docx first.
Will the HTML keep my fonts and colors?
No, on purpose. The converter keeps structure and drops visual formatting, so the HTML picks up your website's own styles instead of fighting them. If you need an exact visual copy, a PDF or an export from Word itself fits better.
Is my document uploaded to convert it?
No. The .docx file is unpacked and converted by your browser on this device, and the preview is drawn in a sandboxed frame that cannot reach the web. Nothing is sent to a server.
Why is the HTML so large when images are on?
Inline images are written as base64 text inside the img tags, which is about a third larger than the image files themselves. Choose Leave out under Images to get the text and structure only, then add your images separately.
About this tool
Uses the mammoth library in your browser. It maps Word structure to plain HTML: Heading 1 to h1, lists to ul and ol, tables, links, bold, italic, footnotes. Fonts, colors, sizes, page layout, headers and footers, text boxes and comments are not kept, so the HTML is clean rather than a visual copy. Paragraph styles mammoth does not recognise become plain paragraphs and are listed as warnings. Images are kept inline as base64 data URIs (which makes the HTML large) or left out, your choice. Only .docx works: old .doc files and password-protected documents do not.