We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Remove MS Word MSO Tags from HTML

Updated February 21, 2017

MSO tags are the formatting tags that Word includes in your HTML file when you create and save it in Microsoft Word. It increases the size of your file and makes codes difficult to read. MS Word allows you to save your Web page as a filtered HTML file that strips away a lot of extra codes from your file. However, it does not remove MSO tags completely. You can use online tools to produce cleaner HTML code for your website.

Loading ...
  1. Click the "Office" button, and select "Save As" and "Other Formats." The "Save As" window opens.

  2. Select "Web Page, Filtered" from the "Save as type" drop-down list.

  3. Name your file, add an "html" or "htm" file extension to it and click "Save." A warning displays, indicating Office-specific tags will be removed when you save your file in this format. Click "Yes" to proceed.

  4. Remove the MSO tags from your Word file online at Word HTML Cleaner or Textism (see Resources). To use the online cleaner at Word HTML Cleaner, scroll to the bottom of the Web page.

  5. Click the "Browse" button. A dialogue box appears. Find and open the HTML file that contains MSO tags. Click "Process."

  6. Highlight the cleaned HTML code that is generated. To retrieve the HTML code at Textism, click the "Cleaned HTML" tab.

  7. Right-click and select "Copy" from the list.

  8. Open a new document in your favourite text editor, such as Notepad, WordPad or TextEdit. To paste the code you copied into the page, select "Edit" and "Paste" from the menu.

  9. Click "File" and "Save" from the menu to open the "Save As" dialogue box.

  10. Type in the HTML file name of the file you cleaned. Place the file name in quotes, and click "Save."

  11. Remove the MSO tags from your Word file online at W3C (see Resources). Click the "Validate by File Upload" option.

  12. Click the "Browse" button, and double-click the HTML file you want to clean.

  13. Click "Show Source" and check "Clean up Markup with HTML Tidy." Click the "Check" button to remove MSO tags from the file.

  14. Scroll to the bottom of your page, and highlight the cleaned-up HTML code.

  15. Repeat Steps 4 through 7 of Section 2, "Word HTML Cleaner or Textism," to copy, paste and save the updated code.

  16. Warning

    According to Microsoft Online, you may not be able to edit some Office features when you remove MSO tags from an HTML file.

Loading ...

About the Author

Foye Robinson

Foye Robinson is a freelance writer and Web designer with Precision Web Crafting. She shares her love for family/relationships, fitness and Web design in her writing. Robinson holds a Bachelor of Science degree from Webster University and also writes miscellaneous articles and novels.

Loading ...
Loading ...