Convert documents to HTML format

Word 365
The default file format for files created in Word for Microsoft 365 is the .docx format. You can easily save a document in various formats such as .doc, PDF, RTF, HTML, etc. See also how to save documents in .doc format or PDF format.

Note that the Save As Web Page function produces a lot of extra code. To convert the Word document to clean HTML, we recommend using third-party applications or websites.

One of the applications of conversion to the HTML file is an extraction of pictures in the original format.

If you want to convert a Word document to the HTML format, do one of the following:

  • In the File tab, click Save As (or Save a Copy, if you open the document from any non-local storage), then from the File type drop-down list, select Web Page (*.htm, *.html):
    Save As HTML in Word 365
  • In the File tab, click Save As, then click Browse to open the Save As dialog box (see how to open Save As dialog box).

In the Save As dialog box, from the Save as type list, select the Web Page type:

Save As HTML file in Word 365

After clicking the Save button, in the selected location, Word creates an HTML file and the new folder with all pictures from the document:

Documents in File Explorer
Documents 2 in File Explorer

Notes:

  1. Some pictures can be created twice: in the original format and the compressed or cropped format as shown in the document. See how to compress images in a document.
  2. When you delete the HTML file, the corresponding folder is removed automatically.

Please, disable AdBlock and reload the page to continue

Today, 30% of our visitors use Ad-Block to block ads.We understand your pain with ads, but without ads, we won't be able to provide you with free content soon. If you need our content for work or study, please support our efforts and disable AdBlock for our site. As you will see, we have a lot of helpful information to share.