File Format & Compatibility

How to Stop Microsoft Word from Creating Extra HTML and XML Files

WPS EditorWPS Editor Oct 9, 2026 871 views

Question details

Users are finding that extra HTML, XML, image, and theme files are automatically created alongside their document when saving, particularly on shared servers with multiple collaborators.

How to Stop Microsoft Word from Creating Extra HTML and XML Files
Product
Microsoft Word
Device & OS
not provided
Scenario
Collaboratively saving and editing documents on a shared server or network drive.
Observed behavior
Unexpected files (such as HTML, XML, and image folders) are generated in the save directory instead of just a single standard document file.
Before you start

Verify the file extension of the document you are working on. Extra files are typically generated when a document is accidentally saved as a Web Page (.htm or .html) instead of a standard Word Document (.docx).

Solution 1Recommended

Save the Document as a Standard Word Format (.docx)

Ensure the document format is set correctly during the save process to prevent Word from splitting the file into web page components.

When a file is saved as a web page, Microsoft Word generates a main HTML file and an accompanying folder containing XML data, themes, and images. Changing the format back to a standard document packs everything into one clean file.

1
Open the affected file

Launch Microsoft Word and open the document that is generating the extra files.

2
Access the Save As menu

Click on 'File' in the top-left corner of the Word interface, then select 'Save As' from the left sidebar.

3
Change the file format

Choose your desired save location. Click the 'Save as type' dropdown menu and change it from 'Web Page (*.htm;*.html)' to 'Word Document (*.docx)'.

4
Save the document

Click the 'Save' button. Your document will now be saved as a single file, and no extra HTML or XML folders will be generated on future saves.

Save the Document as a Standard Word Format (.docx)
Format Updated: Once saved as a .docx file, you can safely delete the old HTML file and its associated extra folders from your server.
Free Microsoft Office alternative

Use WPS Office to Save Documents Cleanly

If you want to avoid format confusion and prevent extra XML or HTML files from cluttering your shared servers, try WPS Office. It defaults to clean, single-file document formats while remaining fully compatible with Microsoft Word.

  1. 1. Download and install: Get WPS Office from the official website and follow the installation instructions.
  2. 2. Open your document: Launch WPS Writer and open the document you wish to edit.
  3. 3. Save cleanly: Click 'Menu' > 'Save As' and select the standard '.docx' format to ensure all data is kept in a single file.
Fully compatible with Microsoft Word formats (.doc, .docx).Saves documents cleanly by default without generating extra XML or HTML folders.Lightweight software that runs smoothly on all major operating systems.Free to use with a familiar, easy-to-navigate interface for seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Word create a folder with XML and HTML files when I save?

This happens when a document is saved as a 'Web Page (*.htm, *.html)'. Word generates a main HTML file and a companion folder containing supporting files like XML data, theme configurations, and images required to display the page in a browser.

How can I safely delete the extra HTML and XML files?

First, open the document in Word and use 'Save As' to save it as a standard Word Document (.docx). Once safely saved and verified, you can manually delete the HTML file and its associated folder from your file directory.

Can collaborative editing cause these extra files to appear intermittently?

Yes. If a document is stored on a shared server and edited by multiple people, it only takes one user saving the file as a web page to generate these extra files. Ensure all collaborators are saving the file as a standard .docx format.

Does WPS Office create these extra files when saving?

No, WPS Writer defaults to saving documents as single .docx or .wps files. It will only create additional folders if you explicitly choose to export the document as a web page.