PDF download Download Article

Save your .docx as an .html web page file

PDF download Download Article

If you have Microsoft Word on your computer, you can resave the DOC/DOCX file as an HTML file without installing additional software. If you don't have Word or prefer a free online option, you can upload the document to Google Drive and save it as an HTML file. Or, paste the contents of the Word file into a converter like Word 2 Clean HTML. Since Word documents and HTML files are very different, the finished HTML webpage may not contain the same formatting as the original. This wikiHow will show you how to convert a Word document to HTML on your Windows PC or Mac.

Things You Should Know

  • In Microsoft Word, go to File > Save As. Change the file type to Web Page.
  • For Google Drive, upload and open the Word file in Google Docs. Then, go to File > Download > Web Page.
  • Try an HTML conversion web app like Word 2 Clean HTML for additional automatic formatting options.
Method 1
Method 1 of 3:

Using Microsoft Word

PDF download Download Article
  1. Word has a built-in feature to convert .docx documents to HTML files. Although the resulting HTML code may be a bit bulkier than if you'd written the HTML from scratch, the conversion is quick and can be used for simpler projects.[1]
  2. It's at the top-left corner of Word.
    Advertisement
  3. A list of locations will appear.
  4. You can save the file to any folder on your computer (or a cloud drive).
  5. Enter the name in the textbox next to “File name:”.
  6. This will save the file in HTML format.
    • If you're okay with losing some of the advanced layout code in favor of a simpler file, select Web Page, Filtered instead. This keeps only the style instructions, content, and some other info.
  7. A new version of the file is now saved in the HTML format.
  8. Advertisement
Method 2
Method 2 of 3:

Using Google Drive

PDF download Download Article
  1. Go to https://www.google.com/drive in a web browser. Then click Go to Drive. As long as you have a Google account, you can use Google Drive to convert a Word document to a web page.
  2. It's at the top-left corner of Google Drive.
  3. It's the second option.
  4. This uploads the Word document to your Google Drive.
  5. A pop-up context menu will open.
  6. Another menu will expand.
  7. The contents of your Word document will display in Google Docs.
  8. It's just below the file name at the top-left corner of the document.
  9. Additional menu options will appear.
  10. This allows you to save the .docx as an HTML zipped file. If prompted to do so, click Save or OK to start the download.
  11. Advertisement
Method 3
Method 3 of 3:

Using Word 2 Clean HTML

PDF download Download Article
  1. Go to https://word2cleanhtml.com in a web browser. Word 2 Clean HTML is a free, easy-to-use tool that will take the contents of a Word document and convert it to HTML code.
  2. If you have Microsoft Word, open the document in that application. If not, you can either use the free version of Word located at https://www.office.com to open the file, or a Word alternative like Google Drive.
  3. Press the Control and A keys (PC) or Command and A keys (Mac) at the same time to highlight everything in the file, right-click the highlighted area, and then click Copy.
  4. Right-click the typing area and select Paste to paste the selected content.
  5. Use the checkboxes at the bottom of the page to toggle conversion preferences, such as converting Word's Smart Quotes to regular ASCII quotes.
  6. It's the button below the form. This converts the content to the HTML format and displays it in the text area.
    • To see the regular HTML (not "cleaned up") from the conversion, click the Original HTML tab.
    • To see a preview of how the code would look in a web browser, click the Preview tab.
    • To copy the code so you can paste it elsewhere, click the Copy cleaned HTML to clipboard link at the top of the page.
  7. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What do I do if I did this accidentally and really want to delete it now?
    Community Answer
    Community Answer
    If you want to delete it, right-click on it and click delete. If you want to change it back, rename the file extension from randomfile.html to randomfile.docx.
  • Question
    I want to convert a Word document with controls (text box) to an HTML file, which has those controls. How do I do this?
    Community Answer
    Community Answer
    Change the ending from whatever it is (ex: .txt) to .html (ex: .html).
  • Question
    If I save a Word document as a web page using HTML, will it have an URL?
    Community Answer
    Community Answer
    Yes it will because you are basically making a website and all websites have a URL.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • If you have to convert hundreds of files to HTML, use commercial software that can convert them all at once. Some options are Doc Converter Pro (formerly Word Cleaner) and NCH Doxillion.
  • It is not always possible to keep all of your Word formatting and styles during the conversion, and still have the HTML file display consistently on all browsers. You might need to use CSS to achieve this on your website.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Convert a Microsoft Word Document to PDF Format Convert a Microsoft Word Document to PDF
Convert a Word Document to Epub Convert a Microsoft Word Document to an EPUB File
Convert Docx to Doc3 Easy Ways to Change a DOCX File to DOC
Convert an RTF File into MS Word Document2 Simple Ways to Convert an RTF into a .DOCX File
Insert Page Numbers in WordEasily Add Page Numbers to a Word Document on Any Platform
Insert a Check Box in Word Add Check Boxes to Word: 10 Simple Steps
Remove a Blank Page in WordRemove a Blank Page in Word
Insert a Hyperlink in Microsoft Word3 Simple Ways to Insert a Hyperlink in Microsoft Word
Get Rid of a Horizontal Line in Microsoft Word3 Easy Ways to Delete a Horizontal Line in a Word Document
Add Backgrounds in Word Add Backgrounds in Microsoft Word: Watermarks, Images, & Colors
Print Avery Labels in Microsoft Word on PC or MacPrint Avery Labels in Microsoft Word on PC or Mac
Edit the Table of Contents in Word Create and Edit the Table of Contents in Word
Remove the 'Read Only' Status on MS Word DocumentsRemove the 'Read Only' Status on MS Word Documents
Insert a Line in Word Add a Horizontal Line in Microsoft Word
Advertisement

About This Article

Kyle Smith
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Kyle Smith. Kyle Smith is a wikiHow Technology Writer, learning and sharing information about the latest technology. He has presented his research at multiple engineering conferences and is the writer and editor of hundreds of online electronics repair guides. Kyle received a BS in Industrial Engineering from Cal Poly, San Luis Obispo. This article has been viewed 865,160 times.
How helpful is this?
Co-authors: 33
Updated: September 27, 2023
Views: 865,160
Categories: Microsoft Word
Article SummaryX

"To use Microsoft Word to convert a Word document to HTML, start by opening the document in Word. Click the File menu and choose Save as. Choose where you want to save the file, and then give it a name. Click the ""Save as type"" menu and select Web Page. Click Save to save your new HTML code to the desired location. To use Google Drive, start by signing in to Google Drive in a web browser. Click the New button and select File upload. Select the Word document and click Open to add it to your Drive. Once the upload is complete, right-click the document in drive, select Open with, and then select Google Docs. When you see the document, click the File menu, select Download, and choose the Web Page option. This downloads a ZIP file of your new HTML to your computer. "

Did this summary help you?

Thanks to all authors for creating a page that has been read 865,160 times.

Is this article up to date?

Advertisement