views
- 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.
Using Microsoft Word
Open the document in Microsoft Word. 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. If you’re looking for general HTML tips, check out how to create a simple web page, create a link, and make radio buttons.
Click the File menu. It's at the top-left corner of Word.
Click Save As. A list of locations will appear.
Select a location. You can save the file to any folder on your computer (or a cloud drive).
Type a name for the file. Enter the name in the textbox next to “File name:”.
Select Web Page from the "Save as type" dropdown menu. 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.
Click Save. A new version of the file is now saved in the HTML format.
Using Google Drive
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.
Click the + New button. It's at the top-left corner of Google Drive.
Click File upload. It's the second option.
Select your Word document and click Open. This uploads the Word document to your Google Drive.
Right-click the Word document in Google Drive. A pop-up context menu will open.
Click Open with. Another menu will expand.
Click Google Docs. The contents of your Word document will display in Google Docs.
Click the File menu in Google Docs. It's just below the file name at the top-left corner of the document.
Click Download. Additional menu options will appear.
Click Web Page. 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.
Using Word 2 Clean HTML
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.
Open the Word document you want to convert. 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.
Copy the contents of the Word file to the clipboard. 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.
Paste the copied text into the Word to Clean HTML field. Right-click the typing area and select Paste to paste the selected content.
Adjust your HTML preferences below the form. Use the checkboxes at the bottom of the page to toggle conversion preferences, such as converting Word's Smart Quotes to regular ASCII quotes.
Click the convert to clean html button. 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.
Comments
0 comment