Language
HTML to Word - Convert HTML Files to DOCX Online | ButDoc

Convert HTML to Word (DOCX)

Turning a web page, an email template or an exported report into an editable document means moving between two formats built on opposite assumptions. Upload your .html or .htm file above and get a real .docx back — headings, lists, tables and links intact.

Below: why images almost never come across on the first attempt, what happens when a flowing web page meets fixed paper, and the one thing to check in your HTML before converting.

Flowing page meets fixed page

HTML is reflowable. A web page has no pages — content adapts to whatever window it lands in, and its height is however tall the content happens to be. Word is paginated: fixed paper size, fixed margins, content broken at predictable points.

Converting means imposing pages on something written without them, and a few consequences follow directly.

Page breaks land wherever the arithmetic puts them — sometimes between a heading and the paragraph it introduces, or partway through a table. Word's Keep with Next setting fixes the first case in seconds once you spot it.

Wide tables overflow the page. A table sized for a 1400-pixel browser window has nowhere to go on A4. Word will squeeze the columns, and if the content will not fit it spills past the margin. Switching the section to landscape, or setting the table to AutoFit to Window, usually resolves it.

Responsive design is irrelevant now. Media queries, flexbox and grid layouts describe how a page should rearrange itself at different widths. A document has one width, so all that instruction is discarded and the content lands in a single linear flow.

Images: the part that usually fails

This is the most common disappointment, and it is worth understanding before you upload.

An HTML file does not contain images. It contains references to them — <img src="photo.jpg"> is an instruction to fetch a separate file. Upload the .html on its own and those references point at files that are not there, so you get empty boxes.

Three situations, three outcomes:

  • Relative paths such as images/photo.jpg almost never resolve, because the folder is not uploaded with the file.
  • Absolute URLs such as https://example.com/photo.jpg may work if the image is publicly reachable, and will fail for anything behind a login.
  • Base64-embedded images are actually inside the HTML rather than referenced, so they carry across reliably. This is why a self-contained saved page often converts better than a folder-based one.

If images matter and they are not coming through, the pragmatic route is to convert the text first and insert the pictures into Word yourself. Faster than fighting the paths.

What carries across, and what is discarded

The rule is simple once you see it: structure survives, presentation does not.

Kept: headings (a proper <h1> becomes a Word Heading 1 style), paragraphs, ordered and unordered lists, tables, hyperlinks, bold and italic emphasis, block quotes.

Discarded: external stylesheets, custom fonts, precise colours and spacing, background images, animations and transitions, JavaScript, and anything the page generated dynamically after loading. A document cannot run code, so a page whose content is built by script arrives largely empty.

The one thing to check first: open your HTML and look at whether headings use real <h1> and <h2> tags, or are just paragraphs styled to look large and bold. Only real heading tags become Word heading styles — and those are what give you a navigation pane and an automatic table of contents. Text merely styled to look like a heading arrives as an ordinary bold paragraph.

Saving a web page for conversion

If you are converting something from the internet rather than a file you already have, how you save it makes a large difference.

In your browser, use Save Page As and choose the option described as complete or single file rather than HTML-only. A complete save writes the page plus a folder of its assets; a single-file save (MHTML, or the .webarchive equivalent) bundles everything into one file.

Two things worth knowing about pages saved from the web. Cookie banners, navigation menus, adverts and comment sections are all page content, so they arrive in your document alongside the article — usually quicker to delete in Word than to strip from the HTML. And many modern sites build their content with JavaScript after the page loads, which means a saved copy can contain almost nothing. Your browser's reader mode, or copying the article text directly, is often the better route.

Frequently Asked Questions

My images did not come through. Why?
An HTML file references images rather than containing them, so uploading the .html alone leaves those references pointing nowhere. Images embedded as base64 inside the file do carry across. Otherwise, convert the text and insert the pictures in Word.
Why did my page's design disappear?
Structure carries across; presentation does not. External stylesheets, custom fonts, precise colours and responsive layout rules have no equivalent in a paginated document, so they are dropped. What you get is clean content ready to style with Word's own tools.
My headings came out as plain bold text.
They were styled to look like headings rather than marked up as <h1> or <h2>. Only real heading tags become Word heading styles. Fix the markup and convert again, or apply the styles in Word afterwards.
Does JavaScript content get included?
No. A document cannot run code, so anything a page builds after loading is absent. Pages that render their content with JavaScript can convert almost empty — use your browser's reader mode or copy the text directly instead.
Do tables convert properly?
Yes, as real Word tables. A table sized for a wide browser window may overflow an A4 page — switch that section to landscape, or set the table to AutoFit to Window.
Can I edit the result?
Yes, fully. The output is a standard .docx that opens in Word, Google Docs, LibreOffice Writer and Apple Pages.
Is my file kept private?
Files are transmitted over an encrypted connection, processed automatically without human review, and permanently deleted from our servers within 60 minutes. Full detail is in our Privacy Policy.

Related tools

Going the other way, Word to HTML produces clean markup for a website. Word to PDF fixes the layout once you have finished editing, and Word to TXT strips it back to plain text. Browse all Word tools.