OneDrive File Issues

Why OneDrive Changes Office File Sizes During Migration

Rana GarciaRana Garcia Nov 22, 2026 868 views

Question details

The user wants to understand why Office files can change size after OneDrive or SharePoint migration and how to verify whether their contents changed.

Why OneDrive Changes Office File Sizes During Migration
Product
OneDrive, SharePoint, and Microsoft Office
Device & OS
not provided
Scenario
Office files are copied to a synchronized folder during migration and compared with their originals using Robocopy.
Observed behavior
Some Office files are slightly larger after synchronization, so Robocopy reports them as changed even though their timestamps remain the same.
Before you start

Choose an affected file and keep its original available for comparison. Wait for OneDrive synchronization to finish, and avoid opening or editing either copy during the test.

Solution 1Recommended

Compare the original and synchronized Office files

Use file sizes and hashes to determine whether synchronization changed the file's binary contents.

DOCX, XLSX, and PPTX files are ZIP-based packages. A size change could result from metadata changes or recompression during cloud processing, but the exact cause cannot be confirmed from size alone.

Matching timestamps do not prove that two files have identical contents. A different SHA-256 hash indicates that their bytes differ, even if the document appears unchanged.

1
Wait for synchronization

In File Explorer, check the OneDrive status of the copied file. If Files On-Demand is enabled, right-click it and select Always keep on this device, then wait for the download to finish.

2
Compare file sizes

Right-click the original file and select Properties, then repeat for the synchronized copy. Compare the Size in bytes shown for each file.

3
Compare file hashes

Open PowerShell and run Get-FileHash -Algorithm SHA256 -LiteralPath "C:\Source\Example.docx" and Get-FileHash -Algorithm SHA256 -LiteralPath "C:\OneDrive\Example.docx", replacing both paths with your actual file paths. Compare the Hash values.

4
Preview Robocopy differences

Run robocopy "C:\Source" "C:\OneDrive\Target" /L /E /FP /BYTES with your actual folder paths. The /L option lists what Robocopy would copy without copying files.

Compare the original and synchronized Office files
A hash difference has limits: Different hashes confirm a binary difference but do not identify which part of the Office package changed or prove that visible document content was altered.
Free Microsoft Office alternative

Work with Migrated Office Files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing migrated Office documents, spreadsheets, and presentations. Its format support helps make switching from Microsoft Office straightforward, though it does not fix OneDrive or SharePoint synchronization behavior.

Open and review migrated documents, spreadsheets, and presentations.Compatible with Microsoft Office formats including DOCX, XLSX, and PPTX.Use a familiar interface to ease the move from Microsoft Office.Work with a free, lightweight office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Robocopy report a file as changed when its timestamp is the same?

Robocopy can detect a difference in file size even when timestamps match. Use File Explorer Properties to compare sizes and PowerShell Get-FileHash to check whether the file bytes differ.

Does a larger file mean my document content was changed?

Not necessarily. Changes to package metadata or compression can affect size without an obvious change to visible content. Open both copies to review the document, and compare their hashes to check for binary differences.

Are all Office files changed by OneDrive synchronization?

Not necessarily. The reported behavior affected some DOCX, XLSX, and PPTX files, but it does not establish that every file or migration is affected. Test representative files in your own workflow.

How can I check whether a migration preserved a file exactly?

After synchronization completes, run Get-FileHash -Algorithm SHA256 in PowerShell on the original and the downloaded or synchronized copy. Matching hashes provide strong evidence that the file bytes are identical.