Paste HTML code, open an .html file or paste formatted text copied from a web page, and download an editable Word document. Headings become Word heading styles, lists keep their numbering, tables keep their rows and merged cells, and links stay clickable. The conversion runs in your browser.
Last updated:
Drop an HTML file
Word preview
.docx
Advertisement
Advertisement
How to use the HTML to Word Converter
Add your HTML. Paste code into the HTML code box, open or drop an .html file, or switch to Paste rich text and paste content copied from a web page or email.
Check the preview. The right pane shows how headings, lists, tables and images will appear in Word.
Adjust the document settings. Pick a font, size, page size and margins, and choose whether to keep colors and images.
Name the file and click Download .docx.
Open it in Microsoft Word, Google Docs, LibreOffice or Pages and keep editing.
How HTML elements map to Word
HTML
Becomes in the .docx file
<h1> to <h6>
Heading 1 to Heading 6 styles, listed in Word's navigation pane and usable for a table of contents
<p>, <div>, <br>
Paragraphs and line breaks; text-align and align become paragraph alignment
Font color and background shading (when Keep text colors is on)
<a href>
Clickable hyperlink for http, https, mailto and tel links
<ul>, <ol type start>
Word bullet and numbering lists, nested up to 9 levels, with 1, a, A, i or I numbering and custom start numbers
<table>, <th>, colspan, rowspan
Word table with bordered cells, shaded header row that repeats on each page, merged cells
<img>
Embedded picture sized from width/height attributes, scaled to fit the page; SVG and WebP are converted to PNG
<pre>, <code>
Consolas text in a shaded box with spacing preserved
<blockquote>, <hr>
Indented paragraph with a left bar; a horizontal line
<script>, <style>, forms, video, iframes
Removed: they have no meaning in a printed document
Tips for a clean conversion
Use semantic HTML. Real <h2> headings and <ul> lists convert into Word styles; text that only looks like a heading because of CSS classes becomes a normal paragraph.
Inline the important styles. Colors and alignment are read from style attributes and HTML attributes, not from external style sheets. If a page relies on classes, paste it with Paste rich text: the browser copies the visible formatting as inline styles.
Embed images you need. Use absolute https:// addresses or data URIs. Relative paths like images/logo.png cannot be found from this page.
Converting a whole web page? Copy just the article content rather than the full page so menus, cookie banners and footers do not end up in your document.
Open the .html file with the Open .html file button (or paste its code), check the preview, and click Download .docx. The tool reads the HTML structure and builds a real Word document with matching headings, paragraphs, lists and tables.
Does the converter keep CSS styles?
It keeps formatting that has a Word equivalent and is written inline or with HTML tags: bold, italic, underline, strikethrough, text color, background highlight, text alignment and table cell shading. Layout CSS from style sheets, such as columns, floats, fonts loaded from the web and positioning, is not carried over, because Word documents flow text differently from web pages.
Are images included in the Word file?
Yes, when Include images is ticked. Images embedded as data URIs are always included. Images linked from other websites are downloaded by your browser; if a website blocks this, a placeholder with the image's alt text is inserted instead. Images with relative paths cannot be found and are also replaced by placeholders.
Can I paste content from a web page instead of HTML code?
Yes. Switch to Paste rich text, copy the content in your browser and paste it with Ctrl+V (Cmd+V on Mac). The tool keeps the formatting and removes scripts, forms and other active content.
Will the document open in Google Docs and LibreOffice?
Yes. The file is a standard .docx (Office Open XML) document, so it opens in Microsoft Word, Google Docs, LibreOffice Writer, Apple Pages and other word processors.
Is my HTML sent to a server?
No. The HTML is parsed and the .docx file is created in your browser. The only network requests are the ones your browser makes to download web images you chose to include.
Why not just rename an .html file to .doc?
Word can open renamed HTML files, but they stay web pages in disguise: styles break, images point to external links and the file often triggers a compatibility warning. A real .docx file uses Word's own heading styles, numbering and tables, so it edits, prints and converts reliably.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.