HTML to DOCX
Make a Word document from HTML: paste the code, open an .html file, or paste formatted text copied from a web page or email. Headings become Word heading styles (so the navigation pane and table of contents work), lists become real Word lists, and tables, links, bold, italic and embedded pictures are kept. Nothing is uploaded and nothing is fetched from other websites.
About HTML to DOCX
Sometimes content lives on the web but has to be delivered as a Word file: a policy page for a client to mark up, an article for an editor, an HTML email that needs to be archived, or a report a website generated. This tool rebuilds the content as a proper, editable Word document rather than a screenshot or a pile of pasted styles.
Three ways to give it HTML
- Paste code into the HTML box, for example from a page’s source view or an editor.
- Open an .html or .htm file saved from a browser or exported by another program.
- Paste formatted text into the smaller paste box. Copy a section of a web page or email as you normally would; the box picks up the formatting your browser copies and shows the matching HTML above.
How the structure is rebuilt
Headings h1 to h6 become Word’s Heading 1 to Heading 6 styles, so the navigation pane and an automatic table of contents work straight away. Ordered and unordered lists become Word lists with proper nesting and the right numbering style. Tables keep their rows; a first row of th cells (or a thead section) becomes a bold heading row that repeats on each printed page. Block quotes get an indent and a side bar, preformatted code keeps its line breaks in Consolas, and horizontal rules turn into a thin line.
Bold and italic set with inline styles, as Google Docs does, are recognised too.
What is not carried over
- Pictures that load from a web address. Only pictures embedded in the HTML as data URLs are added, so no request is ever made to another site.
- Website layout: CSS colours, fonts, columns, floats and backgrounds.
- Scripts, forms, buttons, videos and embedded frames.
- Merged table cells, which become separate cells.
Page setup
Choose A4 or US Letter and one of four common fonts. Margins are 2 cm on every side. Everything can be changed later in Word, LibreOffice, Google Docs or Pages.
How to use HTML to DOCX
- Paste HTML, open an .html file, or paste formatted text into the paste box.
- Pick the page size and font, then select Convert to Word.
- Check the preview of the document, then download the .docx file.
Privacy: how it works
Your files are processed on your own device by your browser. They are not uploaded to any server.
Frequently asked questions
Are pictures from the web page included?
Only pictures embedded in the HTML itself (data: links). Pictures that load from other websites are left out, because fetching them would tell those sites you are converting the page. Save such pictures and add them in Word.
Does it copy the website’s design?
No. Colours, fonts, columns and positions from CSS are not copied. You get the content and structure: headings, paragraphs, lists, tables, quotes, code and links, in a clean Word layout that is easy to edit.
Is the HTML run or checked for scripts?
The HTML is only read as text by your browser’s parser, which never runs scripts or loads anything. Scripts, styles, forms and videos are left out of the document.