Word tasks · Conversions
Turn a Word document into a web page
You have the document finished in Word, and what you actually need is a page someone can open in a browser — no Word, no download, no attachment. Word can save the document as a web page itself, in one pass from the Save As dialog. This guide covers picking the right web page format, saving it, seeing honestly what formatting survives the move to HTML, and checking the finished page in a browser before you share it.
Which web page format to choose
The Save As dialog offers three web formats, and the choice decides how many files you end up managing. Microsoft's own list of file formats for saving documents describes the two extremes: a plain Web Page saves as HTML for display on the web, while a Single File Web Page packs everything, graphics included, into one file.
- Web Page (.htm or .html) — the normal choice. Word writes one HTML file plus a companion folder with the same name, holding the images and other supporting files. Keep the file and the folder together and the page works; separate them and the pictures break.
- Web Page, Filtered — the smaller, cleaner choice. Same HTML file and companion folder, but Word strips out much of its own Office-specific markup on the way. The file is smaller and easier for another web tool to take over, at the cost of some exact Word formatting if you later reopen the page in Word.
- Single File Web Page (.mht or .mhtml) — one file, with limits. Everything, images included, is bundled into a single file, which is handy for emailing or archiving a page as one item. The trade-off is reach: not every browser opens this format, so it is a poor choice for a page you expect strangers to view.
For a page that will live on a website, start with Web Page, Filtered unless you know you will edit the result in Word again. For a quick internal page, plain Web Page is fine. Keep your original .docx either way — saving as a web page never has to replace it, as long as you save the web version under its own name and place.
Save the document as a web page
The steps below are for desktop Word on Windows. On a Mac the same Save As formats are offered; in Word for the web the web page formats are not, so use the desktop app for this job.
- Save the document normally first. Press Ctrl+S so the .docx on disk is current. The web page is a copy made from the document — you want it made from the latest text, not the last saved draft.
- Open Save As. Choose File > Save As, then Browse, and pick the folder the web page should live in. If the page is headed for a website, save it into a fresh, empty folder so the HTML file and its companion folder are easy to find and move together.
- Set the file type. In the Save as type list, choose Web Page, Web Page, Filtered, or Single File Web Page — see the section above for which fits. The file name fills in from the document name; change it if you want a shorter, plainer name for the page, using lower-case words joined by hyphens if it will become a web address.
- Set the page title. Click Change Title and type the title a browser should show on its tab and in search results. Word suggests the first heading; replace it if that heading is not how you would describe the page to a stranger.
- Save, and accept the warning if one appears. Click Save. With the Filtered format, Word warns that Office-specific tags and features will be removed — that removal is the point of the format, so confirm it. Word switches the document view to Web Layout; your original .docx is untouched on disk, and the web files are now in the folder you chose.
What formatting survives — and what does not
A web page is not a printed page, and Word converts rather than photocopies. Microsoft is blunt about this in its notes on the limitations when you save a Word document as a Web page: Word converts the document to HTML, and formatting that HTML or browsers do not support is changed or dropped. Expect roughly this split:
- Survives well: headings and ordinary paragraphs, bold and italic, font colors and sizes in spirit if not to the pixel, bulleted and numbered lists, hyperlinks, tables used for plain rows and columns, and pictures placed in line with the text.
- Survives approximately: exact spacing, indents and tab stops, borders and shading, and page-based layout generally. A browser has no fixed page, so margins, headers, footers and page numbers have nowhere to go — a long document becomes one long scrolling page, and anything positioned to sit in an exact spot on a printed page will move.
- Does not survive: Word-only machinery such as tracked changes and comments as working features, fields that update, macros, and most text boxes, WordArt and floating shapes in their original form — some are flattened into pictures, others are dropped. If the document depends on those, a web page is the wrong destination; a PDF keeps the printed layout instead.
If the document was built for print — cover page, headers, page numbers, carefully placed figures — skim it once with the web in mind. Move anything essential out of headers and footers into the body, check that pictures sit in line with the text rather than floating, and make sure the first heading works as the page's opening line, because on the web it is the top of the page, not the top of page one.
Check the page in a browser
- Open the saved file in a browser. In the folder you saved to, double-click the .htm or .html file — or right-click it and choose Open with, then your browser. Look at the page itself, not at Word's Web Layout view, which is only Word's guess at the result.
- Read it top to bottom once. Check the title on the browser tab, then scan for the usual conversion damage: pictures missing or oversized, tables stretched wider than the page, lists that lost their numbering, and headings that came out in an unexpected size or font.
- Click every link. Hyperlinks mostly survive, but a link that pointed at another document on your computer points at a path nobody else has. Replace links like that with real web addresses in the Word document, then save the web page again.
- Fix in Word, then re-save — never patch the HTML by hand. If something is off, go back to the .docx, simplify the formatting that broke — an in-line picture instead of a floating one, a simpler table — and repeat the Save As. Editing the HTML directly leaves you with two versions that disagree the next time anyone re-saves.
- Move the file and its folder together. When you upload or send the page, take the companion folder with the same name along with the HTML file. For the Single File format there is nothing extra to take — the one file is the whole page.
End state
- The folder holds the HTML file and, for the Web Page formats, its companion folder of images and supporting files, saved under the name and title you chose.
- The page opens in a browser, reads cleanly from top to bottom, and every picture and link on it works there.
- The original .docx is still saved separately, unchanged, as the document you edit and re-save from if the page ever needs updating.
When it goes wrong
- The pictures are missing in the browser. The companion folder did not travel with the HTML file, or was renamed. Put the folder back beside the file with its original name — the file name plus _files — and reload the page. If the folder is lost, save the web page again from Word and move both parts together this time.
- The page looks right in Word but wrong in the browser. Word's Web Layout is an approximation, not a promise. Trust the browser. The usual causes are floating pictures, text boxes and exact print positioning, none of which HTML keeps — bring the picture in line with the text and simplify the layout in the .docx, then re-save.
- The whole document is one very long page. That is what a web page is: there are no page breaks to keep. If the document is long, give it clear headings so readers can navigate by them, and accept the scroll — or split the original into several documents and save one web page from each if it truly needs to be several pages.
- Word will not offer the web page formats. You are most likely in Word for the web or on a phone or tablet app, where these Save As types are not offered. Open the same document in desktop Word on Windows or a Mac and save from there.
Related document tasks
-
Make one page landscape inside a portrait Word document
Most of your report reads fine upright, but one wide table, chart or diagram will not fit until its page turns sideways.
-
Restart page numbering at 1 partway through a Word document
Your title page, contents and introduction should not eat into the numbering of the document itself — chapter one should start on page 1, not page 5.
-
Rotate a single page inside a Word document using a section
Rotate a single page inside a Word document using a section: fence the page with Next Page section breaks, set its section to Landscape from Layout > Orientation, or select the content and let Page Setup apply landscape to Selected text — then sort headers and page numbers for the sideways page.
-
Show the cover pages of a Word document with Roman numeral page numbers
Show the cover pages of a Word document with Roman numeral page numbers: split the front matter into its own section, unlink its footer, set the number format to i, ii, iii, and restart the main body at page 1.
Sources
- Microsoft Support, File formats for saving documents — what the Web Page (.htm) and Single File Web Page (.mht) formats are and what each one saves.
- Microsoft Support, Limitations when you save a Word document as a Web page — Word's conversion to HTML, and the formatting and features that are changed or removed when a document is saved as a web page.