The conversion of.doc,.docx or.odf files to HTML is easy to do, but there is not an absolutely perfect method. If you want to create a web page that loads quickly and looks the same in all browsers, use an online tool. If you want to keep as much of your formatting as possible, use Word's built-in "Save As" function.
Method 1 of 2: Using online tools or software
Step 1. Use a simple online tool
One of the quickest and easiest options is to cut your Word document and paste it into the TextFixer converter, or upload it to Online-Convert.com. These free tools can quickly produce an HTML version of your document, but some of the formatting may be lost.
Step 2. Use a tool with more options
If you want more conversion options or are unhappy with the results of the tools listed above, one of the following free online tools may have what you're looking for:
- Word2CleanHTML extracts the most formatting from a document to produce an HTML document that best conforms to the standard for web developers. It also offers several options for making specific conversion decisions, such as dealing with deviant characters or empty paragraphs.
- ZamZar.com's converter provides both regular html5 conversion and conversion to the deprecated html4 format, which still works in most browsers and is more familiar to some users. This tool requires you to provide an email address in order to use it.
Step 3. Use Google Drive
This can be a good option if you are working in a team on a Word document so that you can share the document with the group. They can then follow this step to see the exact HTML document you're converting to:
- Sign up for a Google account on Google Drive.
- Click the red Create button and select Document.
- Copy and paste your Word document into the empty Google Drive document.
- Use the Google Drive menu to select File → Download as → web page.
Step 4. Use more advanced software for larger tasks
If you need to convert hundreds of files to HTML, use commercial software that can do it all at once. Here are some options for free trials:
- Become a Cleaner
- NCH Doxillion
Method 2 of 2: Using Word's built-in conversion capability
Step 1. Open the document in Microsoft Word or OpenOffice
Word has a built-in ability to convert documents to HTML format. The result is usually bulkier than a standard HTML page and may contain formatting that won't work in every browser. However, it will still contain formatting information that you can use to convert it back to a regular Word document for editing at a later stage.
Step 2. Select "Save As
" Go to File and select "Save As." In some versions of Word, such as Word 2012, you'll find Save under the "Start" button.
Step 3. Choose "Web page
"If you have selected "Save As", a window will open with a drop-down menu, in which you will find a list of file types in which you can save. Select "Web page" to save it as an HTML file.
- If you can't find this option, modify the filename yourself by changing the file type to.htm or.html, then encircling the filename in quotes: "SampleDocument.html".
Step 4. Save it as "Web page, filtered" if available
In some versions of Word, you can save a document as a "slender" HTML file that otherwise looks the same but will load faster as a web page. If you don't plan to change the document back to a Word document at a later stage, select "Web page, filtered".