Fix Word Reducing Image Quality When Saving as Unfiltered HTML
Question details
The user needs to understand why image quality degrades when exporting a document to unfiltered HTML and how to prevent or troubleshoot this issue.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Saving or exporting a document that contains images into the Unfiltered HTML web page format.
- Observed behavior
- Word compresses the images during the HTML export process, generating lower-quality PNG/JPG files and adding legacy VML fallback markup that complicates the output.
Verify your document's advanced settings to ensure that image compression is disabled before attempting to export your file to HTML.
Extract Original Images and Rebuild HTML Manually
Extracting the original high-resolution images directly from the Word file bypasses the built-in HTML conversion engine, guaranteeing zero loss in image quality.
When Word saves a document as unfiltered HTML, its conversion engine often compresses images to optimize web load times, resulting in lower-quality assets. By accessing the underlying file structure of the .docx format, you can extract the uncompressed images manually.
Make a copy of your original .docx file, right-click it, select Rename, and change the .docx extension to .zip.
Right-click the newly created .zip file and select Extract All to unpack the contents of the document into a folder.
Navigate to the extracted folder and open the 'word' directory, then open the 'media' folder. Here you will find all the original, uncompressed images from your document.
Save your document as Unfiltered HTML in Word, then manually replace the low-quality images in the generated HTML folder with the high-quality images you extracted.

Disable Image Compression in Word Settings
Modifying Word's default settings to prevent automatic downscaling can occasionally improve the quality of exported HTML assets.
Seek Assistance in the Microsoft IT Pro Community
Since Word's HTML generation relies on complex legacy VML markup, specialized formatting problems may require expert developer guidance.
Try WPS Office for Better File Management and Compatibility
If you are frustrated by Microsoft Word's automatic image compression and bloated legacy HTML conversion limits, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly environment for managing your documents without the heavy legacy bloat.
- 1. Download and Install: Visit the official WPS website to download the free installer and complete the quick installation process.
- 2. Open Your Document: Launch WPS Writer and seamlessly open your existing .docx files without worrying about format corruption.
- 3. Manage Files Efficiently: Enjoy a fast, lightweight editing experience to manage images, layouts, and document conversions easily.

Frequently Asked Questions
Why does Word add VML markup to my HTML?
Word includes Vector Markup Language (VML) code in its HTML output to serve as a fallback for older browsers and to maintain backward compatibility with Microsoft Office's internal rendering engine. Removing it manually might affect how shapes and images are displayed if the HTML is reopened in Word.
What is the difference between Filtered and Unfiltered HTML in Word?
Unfiltered HTML retains all Office-specific tags and markup, preserving the document's ability to be edited flawlessly in Word later. Filtered HTML removes much of this Microsoft-specific formatting to create a smaller, cleaner web file, though it may still compress images.
How can I convert a Word document to HTML without losing image quality?
The most reliable method is to extract the raw images by renaming the .docx file to .zip and manually writing your HTML. Alternatively, you can use dedicated third-party HTML conversion software or export the document as a high-fidelity PDF first and use a PDF-to-HTML converter.




