How to use the Word to HTML converter
- Choose or drop a
.docxfile. - Full HTML page: off for a fragment, on for a standalone document.
- Copy the HTML or Download
document.html. For indentation to taste, send it to the HTML Formatter.
Example
<h1>Q3 Product Review</h1>
<p>Sales grew <strong>18%</strong> quarter over quarter, led by the <em>mechanical keyboard</em> line.</p>
<ul><li>Hà Nội passed its target in August
</li><li>Returns fell to 1.2%
<ul><li>Mostly from the new packaging
</li></ul>
</li></ul>
<table>
<thead><tr><th>Region</th><th>Revenue</th><th>vs target</th></tr></thead>
<tbody>
<tr><td>Hà Nội</td><td>$13,240</td><td>+10%</td></tr>
</tbody>
</table>
What maps to what
| Word | HTML |
|---|---|
| Title, Heading 1–6 (and styles based on them) | <h1>–<h6> |
| Normal paragraph | <p> |
| Bold, italic, strikethrough, underline | <strong>, <em>, <s>, <u> |
| Monospace font or code style | <code>, or <pre><code> for code paragraphs |
| Bulleted / numbered list, with levels | nested <ul> / <ol> |
| Table (first row as header) | <table> with <thead> and <tbody> |
| Quote style | <blockquote> |
| Hyperlink | <a href> (http, https, mailto, #anchor only) |
Lists nest correctly: a sub-list goes inside the <li> of its parent item, as the HTML standard requires. Header cells drop the bold Word often adds by hand, because <th> is already bold. Links drop the underline that Word’s hyperlink style applies. Word splits text into many runs internally, and runs with the same formatting are merged so you don’t get <strong>He</strong><strong>llo</strong>.
Related tools
For Markdown instead, use Word to Markdown. To turn Markdown into HTML, there is Markdown to HTML, and Word to Text gives just the words.
Limits and privacy
Only the main body is converted; text inside text boxes is read inline. Headers and footers, footnotes, comments, colours, fonts and page layout are not included. Merged table cells are written as empty cells instead of rowspan and colspan, which keeps the table simple to restyle. Equations and embedded objects such as charts become nothing or a placeholder.
The conversion runs in a background worker in your browser, so even long documents don’t freeze the page, and the file is never uploaded. That makes it suitable for internal policies, contracts and drafts that must not be shared with an online converter.
Pasting into a CMS
Most content management systems, including WordPress, Ghost and headless CMSs that accept HTML, keep these semantic tags and apply their own theme. Copy the fragment (with Full HTML page off) and paste it into the HTML or code view of the editor rather than the visual view, which may try to restyle it. If your CMS prefers Markdown, use the Markdown converter instead and paste that.
Frequently asked questions
Why is this HTML cleaner than Word's own Save as Web Page?
Word's export carries inline styles, mso- properties, conditional comments and font declarations for every run. This converter writes only semantic elements: headings, paragraphs, strong and em, lists, tables, links, blockquote and pre. You can style the result with your own CSS or paste it into a CMS.
Is the output safe to put on a website?
Every piece of document text is HTML-escaped, so text that looks like markup, such as <script>, appears as text. Only http, https, mailto and #anchor links are kept, and javascript: and other schemes are dropped. As with any content, review it before publishing.
What happens to images?
They become <img> tags with the image's file name and alt text, without embedding the picture data. A warning tells you how many there are, so you can upload the image files and point the tags at them.
Can I get a complete HTML page?
Yes. Turn on Full HTML page to wrap the content in a doctype, a UTF-8 charset and a title taken from the first paragraph. Leave it off to get a fragment for pasting into an existing page.
Is my document uploaded?
No. The .docx is read in your browser, and nothing leaves your device.
Last updated