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


  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.

If you have any questions or suggestions, please feel free to ask OfficeToolTips team.

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information you’ve provided to them or they’ve collected from your use of their services.

Learn more