DOCX to HTML Converter

Choose a DOCX. Read the preview, then open the HTML source or download it.

Use this tool

Drop a file here, or use the picker. The file type is checked from its contents.

Result

The result appears in this panel after you run the tool.

About this tool

Angles and ampersands in the text are escaped.

How to use it

  1. Choose a .docx file.
  2. Convert it. Preview shows the document. HTML source shows the markup.
  3. Download the HTML. Images and Word numbering styles are not copied.

Limitations

Preview and source from the same conversion

What the markup contains

Body children are walked in document order. A normal paragraph becomes a p element. A paragraph whose style name is Heading1, Heading2, or Heading3 becomes h1, h2, or h3. A run marked bold is wrapped in strong, and a run marked italic is wrapped in em. Consecutive paragraphs that carry numbering become one ul of li elements. The numbering part is not consulted, so a numbered list in Word is still bullets here. A table becomes a table with one tr per row and one td per cell. Cell paragraphs are joined with a br. The characters &, <, and > inside text are escaped before they are placed in the markup, so a paragraph that mentions a tag does not become that tag.

What the preview is allowed to do

The preview is a sandboxed frame with an empty sandbox attribute. It does not receive scripts, and it is not allowed to reach the parent page. Before the frame is filled, the markup is walked and only p, headings, lists, tables, strong, em, and br are kept. A script, style, image, or iframe in the result is dropped rather than unwrapped. Remote addresses are not requested, because those tags and their attributes are removed. Replacing the file or failing a later conversion clears the frame so an older document cannot stay on screen.

What is left behind

Pictures in the media folder are not copied and are not given addresses. Fonts, colors, and theme information are not written as CSS. A hyperlink relationship is not resolved, so visible words can remain while the address does not. Merged cells are written as ordinary cells. Speaker notes are not part of a DOCX. Encrypted packages fail before any markup is built. The zip you select has to stay within 80 MB, and the unpacked XML must stay under 256 MB. The download is the HTML source, which is the same conversion the preview shows. DOCX to Text is the page for a file without tags. Neither page writes a new DOCX, and Pages or Keynote files are not accepted.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.