Skip to content
TabShedKitsMy desk

How to Turn HTML Into an Editable Word Document

Updated 5 min readBy

Convert HTML markup or saved pages to a .docx with real heading styles, lists, tables and links. What survives, what does not, and how to prepare the source.

HTML to WordPaste HTML or drop a file, get a DOCX
Open HTML to Word
On this page
  1. What you get
  2. Step by step
  3. What is kept and what is not
  4. Preparing the source for a good result
  5. Is it safe to paste HTML from an unknown source?
  6. Pasting formatted text instead of markup
  7. The table of contents prompt
  8. A small test that saves time
  9. Converting many files
  10. Problems and fixes
  11. Other directions
  12. FAQ

Someone sends you a report as a web page, or your CMS exports an article as HTML, and the next step is a Word file that a colleague can edit and comment on. Copy and paste from a browser into Word sometimes works, and sometimes brings fonts, colours and odd spacing with it. A cleaner route is to convert the HTML itself. The HTML to Word tool turns markup into a .docx built from Word's own heading styles, lists and tables, in your browser.

What you get

The file is an ordinary Word document. Headings use Word's heading styles, which means the Navigation Pane works and you can add a table of contents of your own later. Bulleted and numbered lists are real lists, tables are real tables, links are clickable and pictures are placed in the text. It opens in Word, and you can edit it in LibreOffice, Pages or Google Docs as well.

Step by step

  1. Paste the HTML or drop one or more .html files.
  2. Pick the page size, margins, a style, text size, page numbers and whether to add a table of contents.
  3. Download the .docx.
  4. Open it in Word to edit, or use Send to phone to move it to another device.

What is kept and what is not

KeptNot reproduced
Headings, paragraphsPage CSS and class-based styling
Bold, italic, underline, strike-throughColumns, floats and grid layouts
Colours and alignmentScripts, forms and frames (removed for safety)
Lists, tables, linksBackground images and fancy page decoration
Pictures and code blocksInteractive elements

The key idea is that the converter keeps the structure, not the design. If your HTML uses a class named "highlight" defined in a stylesheet, the class does nothing here, because the stylesheet is not applied. Inline formatting, such as a span with a colour set directly on the element, is read. When you control the source, put the formatting that matters on the elements themselves.

Preparing the source for a good result

  1. Use real headings. A paragraph that is bold and large looks like a heading but is not one, so it does not appear in Word's navigation. Mark headings as h1 to h6.
  2. Use real lists. Lines starting with a hyphen inside a paragraph are not a list. Use ul and ol.
  3. Use real tables for data, not for layout. A page that uses a table to position a sidebar will give you a table in Word with that sidebar in a cell.
  4. Take the rendered markup. If the page builds its text with JavaScript, copy the rendered HTML from the browser's inspector; the tool never runs scripts.

Is it safe to paste HTML from an unknown source?

Yes, within reason. The HTML is cleaned in your browser before conversion: scripts, styles, frames and forms are removed, and the conversion is done on your device, so nothing is sent anywhere. Still, treat the resulting document like any file from a stranger and scan links before clicking them.

Pasting formatted text instead of markup

You do not always have HTML source. If you copied formatted text from a web page, the better route is the online document editor: it keeps the formatting as you paste and can export to Word directly. Use HTML to Word when you have markup or saved .html files.

The table of contents prompt

If you switch on a table of contents, Word will ask whether to update fields the first time you open the file. Click Yes and Word fills in the page numbers. Without a table of contents the file opens straight away and no prompt appears. The prompt is Word being careful, not a sign that the file is damaged.

A small test that saves time

Before converting a large document, paste a short sample that contains one of everything: a heading, a list, a table, a link and a picture. Convert it, open the .docx and see how each element came out. This takes a minute and tells you whether your markup is compatible, which is far cheaper than discovering a systematic problem in a hundred-page export. If something is wrong in the sample, the fix is usually in the markup: a missing heading tag, a table used for layout or a picture hosted somewhere that blocks other sites.

Converting many files

Drop several .html files to receive a ZIP containing one .docx for each. This is helpful for an exported help centre or a folder of saved articles. Check one converted file before you process the whole set, because the same markup quirks will repeat in every file.

Problems and fixes

  • Everything is one long paragraph. The source used line breaks and divs instead of paragraphs. Wrap text in p tags, or edit it once in Word.
  • A picture is missing. Images that sit on another site are only fetched when that site allows it, so some may be skipped. Embed the image in the markup, or insert it in Word after conversion.
  • Table columns have odd widths. Auto-fit the table in Word. Column widths from complex CSS are not copied.
  • Fonts look plain. The style you choose sets the look. Change it in the options, or define styles in Word and reapply.

Other directions

If you need a fixed layout rather than an editable file, use HTML to PDF. For the opposite problem, a PDF that should become a Word file, use PDF to Word. If you write in Markdown, Markdown to Word gives a similar result.

FAQ

Is there a limit on pages or a watermark?

No watermark, no sign-up and no page limit.

Does it work offline?

After the page has loaded once, conversion happens in your browser without a connection.

Will my CSS be applied?

No. Inline formatting is read; stylesheets and classes are not.

Can I convert a URL?

No. Save the page as .html or copy the markup and paste it.