Why SharePoint Changes Word Files Without Editing
Question details
The user needs to understand why Microsoft Word documents change in file size and MD5 hash after being uploaded or synced to SharePoint and OneDrive, even when no user edits the content.

- Product
- Microsoft Word
- Device & OS
- Windows
- Scenario
- Uploading, downloading, or synchronizing Word documents via SharePoint or OneDrive.
- Observed behavior
- The Word document's file size and MD5 hash change due to underlying OOXML component updates, despite the visible text content remaining identical.
Before troubleshooting, keep a backup copy of your original Word document outside of SharePoint to compare its file size and XML package later.
Upload Directly to the SharePoint Web Library
Bypassing the OneDrive desktop sync folder can help determine if the local synchronization client is causing the file modifications.
SharePoint and OneDrive often update components of a Word document package during synchronization. Testing via the web interface isolates the issue.
Navigate to your SharePoint document library using a web browser instead of Windows Explorer.
Click the Upload button and select a test copy of your original Word file to upload it directly.
Download the file directly from the web interface and generate a new MD5 hash using PowerShell to check if it remains unchanged.

Disable Automated Library Services
SharePoint services and Office features can automatically modify the internal XML of a document without user interaction.
Try WPS Office for Unaltered Local Document Editing
If Microsoft SharePoint continuously alters your file metadata and hashes during sync, you can maintain full control over your offline files by using WPS Office. It provides a lightweight, highly compatible editing environment without forcing unwanted background XML modifications.
- 1. Download WPS Office: Visit the official WPS website to download and install the free office suite.
- 2. Open your documents locally: Launch WPS Writer and open your .docx files directly from your local storage.
- 3. Save without forced sync metadata: Edit and save your files locally, ensuring the file size and metadata remain exactly as you intend without background SharePoint interference.

Frequently Asked Questions
Why does the MD5 hash of my Word document change in SharePoint?
SharePoint and OneDrive update underlying OOXML components like customXml and document.xml.rels during synchronization or background processing. This modifies the binary file structure, which changes the overall MD5 hash.
Does a changed file size mean my Word document was edited by someone?
Not necessarily. SharePoint can automatically inject metadata, retention labels, or co-authoring tags into the document's XML package. This background processing increases the file size even if the visible text content remains identical.
How can I verify that my actual content hasn't changed despite the hash mismatch?
Instead of comparing the full file's MD5 hash, you can change the .docx file extension to .zip and extract the contents. From there, use comparison software like KDiff on the internal 'document.xml' file to confirm the actual text is entirely unchanged.




