GALAXY OF TOOLS

FILES SECTOR

HTML to DOCX Converter

Paste HTML or rich text and download an editable Word .docx with headings, lists, tables, links and images.

Formatting
Preview — how the text, headings, lists and tables will be laid out

Runs entirely in your browser — nothing you paste or open is uploaded. the docx library (MIT) is downloaded once from a public CDN.

Convert HTML to an editable Word document

The HTML to DOCX converter turns HTML into a real Microsoft Word document. Paste HTML code, open an .html file, or switch to Paste rich text and paste straight from a web page, an e-mail, Google Docs or a CMS editor. A page preview shows the result, and Download .docx gives you a file that opens in Word, Google Docs, LibreOffice and Pages.

The converter doesn’t paste a web page into Word as a frozen block. It walks through the HTML and rebuilds each element with Word’s own features: <h1>–<h6> become Heading 1–6 styles, lists become Word numbering that renumbers itself, tables get borders, merged cells and header rows that repeat on every page, links stay clickable, and embedded pictures are placed at a size that fits the page.

Scripts, frames, forms and event handlers are stripped before anything is shown or converted, and everything runs in your browser, so pasted content is never uploaded.

How to use the HTML to DOCX Converter

  1. Choose HTML code and paste markup or press Open .html file; or choose Paste rich text, click the paste area and press Ctrl+V (⌘V on a Mac).
  2. If the HTML refers to pictures by file name, such as <img src="images/chart.png">, press Add images and select those files so they can be embedded.
  3. Set the page size, orientation, margins, font, size and line spacing, and decide whether text colours should be kept.
  4. Check the preview, then press Download .docx. A summary lists the paragraphs, headings, tables, images and links that were written.

HTML to DOCX Converter features

Word styles, not lookalikes

Headings use the built-in Heading 1–6 styles with outline levels, block quotes use the Quote style and code blocks a Source Code style, so the document is easy to restyle and the Navigation pane works.

Lists and tables done properly

Nested bulleted and numbered lists (including start numbers and letter or Roman numbering), task-list checkboxes, and tables with colspan, rowspan, borders, shaded header rows and cell alignment.

Links and anchors

External links become Word hyperlinks; in-page links such as href="#pricing" become internal links to a bookmark on the target heading.

Pictures embedded

Images in data: URLs, or added with Add images, are embedded and scaled to the page; SVG and WebP pictures are converted to PNG for Word.

Rich-text paste

Bold, italic, underline and colours from Google Docs, Gmail, Outlook on the web and most websites are recognised from their inline styles.

Safe by default

Scripts, iframes, forms and event-handler attributes are removed, and the preview runs in a sandboxed frame.

HTML elements and their Word equivalents

HTMLWord
<h1> … <h6>Heading 1 … Heading 6 styles
<p>, <br>Paragraphs and line breaks
<strong>, <em>, <u>, <s>, <sup>, <sub>, <mark>Bold, italic, underline, strikethrough, superscript, subscript, highlight
<ul>, <ol>, nested listsWord bullets and numbering, up to nine levels
<table> with <th>, colspan, rowspanBordered table, repeating header row, merged cells
<a href>Hyperlink, or an internal link to a bookmark for #anchors
<img>Embedded picture with alt text
<blockquote>, <pre>, <code>, <hr>Quote style, shaded code paragraphs, Consolas text, horizontal rule

Limits worth knowing

HTML and Word lay pages out differently, so the converter carries over structure and emphasis rather than every pixel of CSS. Font families and sizes from the HTML give way to the font you choose, CSS layouts such as columns, flexbox and floats become one flowing column, and background colours are not copied. Pictures hosted on other websites are not downloaded — that would send requests to those sites — so they appear as “[Image: …]”; save them and use Add images to embed them.

For a pixel-faithful copy of a page rather than an editable document, use HTML to PDF. For Markdown sources, Markdown to DOCX is quicker, and DOCX to HTML converts in the other direction.

HTML to DOCX Converter FAQ

How do I convert HTML to a Word document?

Paste the HTML (or rich text) into the converter, check the preview and press Download .docx. You get an editable Word file in a second, free and without registration.

Can I convert a web page I’m looking at?

Yes: select the content on the page, copy it, choose Paste rich text here and paste. The formatting comes across as HTML. Pictures from the page appear as placeholders unless you save them and add them with Add images.

Are tables and lists kept?

Yes. Tables become real Word tables with borders, header rows and merged cells, and lists become Word bullets and numbering, including nested levels and lists that start at a number other than 1.

Does it run JavaScript from the HTML?

No. Scripts, frames, forms and event-handler attributes are removed before the preview and the document are made, so only content is converted.

Why does my document use a different font from the web page?

Web fonts aren’t available inside Word documents, so the document uses one consistent font that you choose under Font. Bold, italic, colours and other emphasis are kept.

Is my content uploaded?

No. Parsing the HTML and writing the .docx with the open-source docx library (MIT licence) both happen in your browser.

You might also need