Word documents are made for printing, so their code is full of things a website does not want. Our free Word to HTML converter reads a .docx file in your browser and gives you plain, tidy HTML: headings as <h1> to <h4>, paragraphs as <p>, lists with their levels, and tables with a header. You copy the result, or download a finished page.
This guide explains each setting, what is converted and what is not, and how to fix the problems you will meet. For a step-by-step guide to the most common job, see how to paste a Word document into WordPress without the mess.
What Word to HTML does
It opens the document, understands its structure, and writes semantic HTML from that structure. It will:
- Turn Title and Heading 1 to Heading 4 styles into
<h1>to<h4>. - Wrap every ordinary paragraph in
<p>. - Keep bold, italic, underline and strikethrough as
<strong>,<em>,<u>and<s>. - Rebuild bulleted and numbered lists, including nested levels.
- Convert tables, using the first row as a header if you choose.
- Embed JPG and PNG pictures, or leave a placeholder.
- Escape all text, so special characters cannot break the page.
It does not carry over fonts, page margins, headers and footers, text boxes, comments, footnotes or the exact layout, and it cannot convert an old .doc file. The result is the content of your document, not a copy of its look.
How to use Word to HTML, step by step
- Open Word to HTML.
- Press "Choose a Word file" or drop your
.docxon the box. - In the Output panel, choose Output: "Full page" or "Body content only".
- Pick Styles: Minimal, Inline or None.
- Tick or untick the three checkboxes, then check the counts for Paragraphs, Headings, Tables and Images.
- In the Result panel, switch between "HTML code" and "Preview".
- Press Copy, or "Download .html".
The same page can also write Markdown or plain text: the Convert to switch at the top of the Output panel has HTML, Markdown and Plain text. This guide is about HTML.
Every option explained
Output: Full page or Body content only
"Full page (<html>, <head>, <body>)" gives a complete document: <!DOCTYPE html>, lang="en", a charset and viewport tag, a <title> taken from the file name, and your content in the body.
"Body content only" gives just the content. Choose this when you are pasting into a CMS, an email template or an existing page.
Styles
Minimal (classes and a small style sheet) is the default. The code uses clean tags. Alignment becomes classes such as align-center, and a full page gets a short <style> block for readable layout, with a centred column, sensible spacing, table borders and images that fit the screen. In body-only mode there is no style block, so the classes need your own CSS.
Inline (colours, sizes, alignment) writes style="…" attributes: color for non-black text, font-size in points when a run differs from the document's usual size, and text-align. Tables get inline borders. This version survives CMSs and email programs that strip style sheets.
None (plain tags only) writes no styling and no alignment classes. Use it when your site's own CSS should control everything.
Keep pictures (embedded inside the HTML)
Ticked by default. JPG and PNG pictures are embedded as data: links, so the HTML is self-contained, and each <img> gets its width and height. The alt text is empty, so add descriptions yourself. Untick it for a small file: each picture becomes [image], and a note says how many were left out.
Use the first table row as the header
Ticked by default. The first row goes into <thead> as <th> cells. Untick it for tables whose first row is ordinary data.
Mark where Word pages break
Unticked by default. When ticked, each manual page break becomes <hr class="page-break">. Only breaks you inserted yourself count, such as Ctrl+Enter or "Page break before". Automatic page ends, where text simply runs onto the next page, are not marked.
What it accepts and its limits
- Files:
.docx,.docmand.dotx. Up to 100 MB. - Old
.doc: refused with "This is an old Word 97–2003 (.doc) file. Open it in Word, Google Docs or LibreOffice and save it as .docx, then try again." - Not a Word file: "This file isn't a Word document (.docx). Excel and PowerPoint files can't be read here."
- Protected or damaged: "This document couldn't be opened. It may be damaged or password-protected."
- Pictures: JPG and PNG only. Old Windows drawings (EMF and WMF) and shapes cannot be read. A warning gives the count.
- Display: the code box shows the first 200,000 characters of a very long result. Copy and Download give the whole text.
- Empty files: "This document has no text to convert."
Privacy
Word to HTML runs in your browser. The .docx is opened and converted on your device and is never uploaded. The Preview is a sandboxed frame with scripts switched off, and the converted HTML is never injected into the tool page itself.
Only http, https and mailto links are kept, and all text is escaped, so nothing in a document can add a script to your page.
How Word's structure becomes HTML
Word is more consistent than people expect, and the tool depends on that.
| In Word | In the HTML |
|---|---|
| Heading 1 | <h1> |
| Heading 2, 3 | <h2>, <h3> |
| Heading 4 and deeper | <h4> |
| Title | <h1>, but only if the document has no Heading 1. Otherwise <p class="title">. |
| Normal paragraph | <p> |
| Bulleted list | <ul> |
| Numbered list | <ol>, keeping the start number and the numbering style (1, a, i) |
| Shift+Enter line break | <br> |
| Table | <table> with optional <thead> |
Two rules explain most surprises. Bold on a heading is dropped, because a heading is already bold. And empty paragraphs are not converted, so rows of blank lines used for spacing disappear. Several spaces in a row are kept as non-breaking spaces, and a tab becomes four spaces.
A worked example
Take a short notice with a Title, a Heading 1 called "Vacancy", a sentence ending in bold "now" and a two-row table of posts and seats. With "Body content only" and Minimal, the HTML is:
<p class="title">Notice</p>
<h1>Vacancy</h1>
<p>Apply at our site <strong>now</strong></p>
<table>
<thead>
<tr><th>Post</th><th>Seats</th></tr>
</thead>
<tbody>
<tr><td>Clerk</td><td>12</td></tr>
</tbody>
</table>
The Title became <p class="title"> because the document already has a Heading 1: a page should have one <h1>. Delete the Heading 1 in Word and the title becomes <h1> instead.
Tips to work faster
- Use real styles in Word. Heading styles give you headings; a manually enlarged line stays a paragraph.
- Use Word's list buttons, not typed numbers. A line starting with "1." typed by hand is plain text.
- Keep tables simple: one header row and no merged cells. Cell contents are taken as plain text, so formatting inside cells is not kept.
- Switch Styles to None, then add your own classes, if your site has a design system.
- If you need the opposite direction, HTML to Word builds a
.docxfrom HTML.
Common problems and how to fix them
Everything is a paragraph
The text was made big and bold by hand. In Word, select each heading and apply Heading 1, 2 or 3 from the Styles gallery, then convert again.
A link is plain text
Web links come across as <a href> links. A link stays plain text when it jumps to a bookmark inside the document, sits inside a table cell, or uses another kind of address (such as file:). Re-add those in your editor after pasting. This applies to the Markdown version too.
Numbered items are plain text
Typed numbers such as "1." or "a)" are not list items to Word. Select the lines and apply a Numbered List, or accept plain text.
A picture is missing
You will see the warning "drawing(s) in an old Windows format (EMF/WMF) or shape can't be read". Charts, shapes and pasted drawings are common causes. Paste them into Word again as a PNG picture, or export the chart as an image.
Text in a table is in the wrong column
Merged cells are not rebuilt. Unmerge them in Word before converting.
The HTML is huge
Pictures are embedded. Untick "Keep pictures" and upload them to your site yourself.
Bangla looks like random Latin letters
The document uses a legacy font such as SutonnyMJ. The font is not carried over, so the stored letters show as they are. Read Bijoy vs Unicode and convert the text to Unicode in Word first.
Related tools
- Word to Markdown: the same document as GitHub-flavoured Markdown.
- Word to Text: plain text with no markup.
- HTML to Word: the reverse direction.
- Word to PDF: when you want a fixed layout rather than HTML.
Quick checklist
- Apply real heading and list styles in Word first.
- Choose "Body content only" when pasting into a CMS.
- Pick the Styles option that matches where the HTML will live.
- Untick "Keep pictures" to keep the file small.
- Check the Preview, then add picture descriptions and any links that were inside tables.



