To save a Microsoft Word document as a web page, open the file and go to File > Save As (or Save a Copy in newer versions), then choose Web Page (*.htm; *.html) or Single File Web Page (*.mht; *.mhtml) from the Save as type dropdown. Pick a location, name the file, and click Save. That converts your document into an HTML file you can open in any browser or upload to a website. The exact menu labels can differ slightly by Word version, device, and region, but the path is the same on Windows and Mac.
What You'll Need
- Microsoft Word installed on a Windows PC or Mac (Word for the web cannot save as a web page).
- A document you want to convert, opened in Word.
- A folder where you have permission to save files.
- Optional: an image editor if you want to optimise pictures before saving, since Word embeds them as-is.
Step-by-Step
- Open the document in Word on your desktop. If you are using Word for the web, download the file and open it in the desktop app first; the web version does not offer web page formats in Save As.
- Go to File > Save As (on Windows) or File > Save As (on Mac). In some newer Windows builds the command is labelled Save a Copy; either works. Do not use File > Save, which keeps the original format.
- Choose the destination folder in the dialog. Use Browse if the folder is not shown. Avoid saving to a temporary folder or the desktop if you plan to upload the file later.
- Enter a file name without spaces or special characters if the page will go on a web server. Hyphens or underscores are safer than spaces.
- Open the Save as type dropdown and select Web Page (*.htm; *.html) for a standard HTML file with a separate folder for supporting files, or Single File Web Page (*.mht; *.mhtml) for one self-contained file. The single-file option is easier to email; the standard option is easier to edit later.
- Click Save. If Word asks about formatting or compatibility, confirm. The document is now an HTML file.
- Check the result by opening the saved .htm or .html file in a browser such as Edge, Chrome, or Safari. Look at headings, images, tables, and links. If something looks wrong, return to Word, adjust, and save again.
- Upload or share the HTML file and any supporting folder (for the standard Web Page format) to your web host, intranet, or shared drive. Keep the folder and file together; moving only the .htm file breaks images and styles.
Common Mistakes
- Using File > Save instead of Save As. Save keeps the .docx format. You must use Save As and change the file type.
- Choosing the wrong web format. Standard Web Page creates an .htm file plus a folder of supporting files. Single File Web Page creates one .mht file. If you move the .htm without its folder, images and formatting disappear.
- Expecting a full website. Word produces a basic HTML page. It does not create navigation, mobile layouts, or clean semantic code. For a real site, use a web editor or CMS.
- Leaving spaces in file names. Spaces can break links on some servers. Use hyphens or underscores.
- Forgetting to test in a browser. Word's preview is not the same as a browser. Always open the saved file in at least one browser before sharing.
- Assuming Word for the web can do it. The browser version does not include web page formats in Save As. Use the desktop app.
Tips
- Use styles before saving. Apply Heading 1, Heading 2, and Normal styles in Word. They convert to HTML heading tags and make the page easier to edit later.
- Compress images first. Word embeds pictures at their inserted size. Resize or compress large images in an image editor before inserting to keep the HTML file small.
- Prefer the standard Web Page format for editing. The .htm plus folder structure is easier to open in a code editor and fix by hand than the single .mht file.
- Use Single File Web Page for email or archiving. One .mht file is simpler to send and store, but fewer tools can edit it.
- Check links. Hyperlinks to local files (like C:\Documents\file.pdf) will not work on the web. Use full web addresses (https://...) instead.
- Keep a copy of the original .docx. Saving as a web page does not replace your source document. Keep the .docx for future edits.
Troubleshooting
- The Save as type dropdown does not show web page formats. You may be using Word for the web or a mobile app. Open the file in the desktop version of Word. If you are on desktop, check that the document is not in Protected View or Compatibility Mode; close and reopen it, or use File > Info > Convert if prompted.
- Images are missing after saving. If you chose standard Web Page, the images are in a separate folder with the same name as the .htm file. Keep that folder next to the .htm file. If you moved only the .htm, move the folder too.
- The page looks broken in a browser. Word's HTML is basic. Complex layouts, text boxes, and some fonts may not convert cleanly. Simplify the document in Word (use tables instead of text boxes, standard fonts) and save again.
- The file is huge. Large or high-resolution images make the HTML file big. Compress images before inserting, or use an image editor to reduce them, then re-save.
- You cannot overwrite the file. The file may be open in another program or marked read-only. Close it, check permissions on the folder, or save with a new name.
- Word crashes or freezes during save. Restart Word, try saving to a different folder, and make sure you have enough free disk space. If the problem continues, repair Office from the Windows Settings apps list or reinstall.
Frequently Asked Questions
Can I save a Word document as a web page on a Mac?
Yes. In Word for Mac, go to File > Save As, choose Web Page (.htm) or Single File Web Page (.mht) from the Format dropdown, and save. The steps are the same as on Windows, though the dialog looks slightly different.
What is the difference between Web Page and Single File Web Page?
Web Page saves an .htm file plus a folder containing images and other supporting files. Single File Web Page saves everything into one .mht file. The single file is easier to move around; the standard format is easier to edit with other tools.
Can I edit the HTML after saving?
Yes. Open the .htm file in a text editor or web editor. The code Word produces is basic but editable. For the single .mht file, editing is harder because it is a packaged format; use the standard Web Page format if you plan to edit the code.
Will my hyperlinks still work?
Links to web addresses (https://...) usually work. Links to local files on your computer will not work on another machine or on the web. Replace local links with full web addresses before saving.
Does saving as a web page affect my original document?
No. Save As creates a new file. Your original .docx remains unchanged, so you can keep editing it and save again later.
Why can't I find the web page option in Word for the web?
Word for the web does not support saving as a web page. Use the desktop version of Word to convert the file. If you do not have desktop Word, you can copy the content into an HTML editor, but that is a manual process.