Home › PDF Tools › HTML to Word Converter

HTML to Word Converter

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:

Document settings
Word preview
.docx

Advertisement
Advertisement

How to use the HTML to Word Converter

  1. 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.
  2. Check the preview. The right pane shows how headings, lists, tables and images will appear in Word.
  3. Adjust the document settings. Pick a font, size, page size and margins, and choose whether to keep colors and images.
  4. Name the file and click Download .docx.
  5. Open it in Microsoft Word, Google Docs, LibreOffice or Pages and keep editing.

How HTML elements map to Word

HTMLBecomes 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
<b>, <i>, <u>, <s>, <sup>, <sub>Bold, italic, underline, strikethrough, superscript, subscript (also from inline font-weight, font-style, text-decoration)
<span style="color:…">, <mark>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, rowspanWord 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, iframesRemoved: 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.
  • Prefer a fixed layout? Use HTML to PDF. Going the other way? Word to HTML converts .docx back to clean HTML, and Markdown to Word handles Markdown sources.

Frequently asked questions

How do I convert an HTML file to a Word 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.

Related tools

HTML to PDF ConverterPaste HTML and CSS, preview it as pages and download a PDF, safely in your browser.Word to HTML ConverterConvert Word .docx files or pasted rich text into clean, semantic HTML with live preview.Markdown to Word ConverterConvert Markdown to a styled Word .docx file with headings, lists, tables, code and links.Text to Word ConverterTurn text or a .txt file into a Word .docx with your font, margins and page size.JPG to PDFCombine JPG photos into one PDF with page size, margins and orientation options.PowerPoint to PDFConvert PPTX slides to PDF, one page per slide at the original slide size. Batch files, no upload.OCR PDFMake scanned PDFs searchable and copyable with OCR in 70+ languages, or export the text.PDF to WordConvert PDF files to editable Word documents.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (XLSX) or CSV, right in your browser.PDF to JPGTurn PDF pages into high-quality JPG images.PDF to PNGConvert PDF pages to PNG images with custom DPI and transparent background.Word to PDFConvert Word DOCX documents to PDF.Image to PDFConvert JPG, PNG, WEBP and more into a PDF.PDF to Text ConverterExtract the text from any PDF page by page, then copy it or save it as a TXT file.Text to PDF ConverterTurn plain text or a .txt file into a clean PDF with your font, size, margins and page size.Markdown to PDF ConverterWrite or paste Markdown, preview it with a clean theme and export a polished PDF in seconds.Excel to PDF ConverterConvert Excel and CSV sheets into tidy, paginated PDF tables with repeated headers.Extract Images from PDFPull every embedded photo and graphic out of a PDF as PNG or JPG, or save pages as images.PDF to PowerPointTurn every PDF page into a PowerPoint slide (PPTX) in 16:9, 4:3 or the PDF's own size.PDF to MarkdownConvert PDF to clean Markdown with headings, lists, tables, bold, italics and links.PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.PDF to Long ImageStitch all PDF pages into one tall PNG or JPG image, with gap, width and page range options.PNG to PDFConvert PNG images to one PDF, keeping transparency or filling it with white or any color.HEIC to PDFConvert iPhone HEIC photos into one PDF in your browser, with page size, margins and reordering.CSV to PDFTurn a CSV file into a clean, paginated PDF table with repeating headers.EPUB to PDF ConverterConvert EPUB e-books to PDF with images, page size, font size, margins and clickable bookmarks.PDF to TIFF ConverterConvert PDF pages to multi-page or single-page TIFF in color, grayscale or black and white.RTF to PDF ConverterConvert RTF documents to PDF with fonts, tables, images and page size options.SVG to PDF ConverterConvert SVG files to vector PDF with page size and fit options, or merge many SVGs into one PDF.TIFF to PDF ConverterConvert single and multi-page TIFF scans to PDF with page size and compression options.WEBP to PDF ConverterConvert one or many WEBP images to a PDF with page size, margins, layout and reordering.Add Image to PDFPlace a logo, photo or signature image on any PDF page. Drag, resize, rotate and set opacity.Compress PDF to 100KBShrink a PDF to 100KB or less automatically, keeping every page and page size.Image to Word ConverterTurn JPG, PNG or screenshot text into an editable Word (.docx) document with OCR, in your browser.PDF ConverterConvert Word, Excel, PowerPoint, images, text, HTML or EPUB to PDF, and PDF to JPG, PNG, Word or text.PDF to EPUBConvert PDF to a reflowable EPUB e-book with chapters, headings, images and a table of contents.Scanned PDF to Word (OCR)OCR scanned PDFs or page photos into an editable Word document with rebuilt paragraphs.Word to JPGTurn every page of a Word .docx document into a JPG image, free and in your browser.Cursive Writing WorksheetMake cursive tracing worksheets from any text: joined letters, dotted and faded rows. PDF.EPUB MakerWrite or import chapters, add title, author and cover, and export a valid EPUB 3 e-book.Images to PowerPointTurn photos into a PowerPoint .pptx deck, one image per slide, with captions and 16:9 or 4:3.LaTeX to PDFCompile LaTeX to PDF in your browser with a TeX engine, live preview, log and PDF download.Merge Word DocumentsCombine several .docx files in any order into one Word document, with page or section breaks.PDF to FlipbookTurn a PDF into a page-turning flipbook with zoom and fullscreen, and export it as an HTML ZIP.PowerPoint ViewerOpen and present .pptx files in your browser with thumbnails, speaker notes and full screen.Whiteboard Photo to PDFClean up whiteboard and blackboard photos: straighten, remove glare, whiten, then save as PDF.DjVu to PDFConvert DjVu scans and books to PDF, with resolution, compression and page range options.EML to PDFConvert .eml emails to PDF with sender, recipients, date, formatted body, images and attachments.MOBI to PDFConvert DRM-free MOBI, AZW and AZW3 e-books to PDF with chapters, images and page size options.MSG to PDFConvert Outlook .msg emails to PDF with headers, formatted body, images and attachment list.ODT to PDFConvert OpenDocument Text (.odt) files to PDF with headings, lists, tables and images.EPS to PDFConvert EPS and PostScript files to vector PDF in your browser, cropped to the artwork.PDF to CSVExtract tables from a PDF to CSV files, with draggable column lines to fix the columns.PDF to SVGConvert PDF pages to scalable SVG vector files, with text kept as text or as paths.PDF to WEBPConvert PDF pages to small, sharp WEBP images with a DPI choice and a quality slider.
See all 53 PDF Converters →