Why OneDrive Shows Different File Sizes or File Counts Than Windows
Question details
Users notice discrepancies in file sizes or file counts between Windows File Explorer and OneDrive after syncing or uploading large batches of files.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Checking storage usage after a mass upload or folder synchronization.
- Observed behavior
- OneDrive and Windows report mismatched file counts or file sizes, sometimes showing OneDrive using significantly more space.
Ensure your OneDrive synchronization is fully complete before comparing file sizes, as pending uploads can cause temporary discrepancies.
Generate and Compare Detailed File Lists
Use PowerShell and a spreadsheet tool to find exactly which files are missing or differently sized between your local drive and OneDrive.
When folders show mismatched file counts (e.g., 2,627 files locally vs. 2,601 files on OneDrive), generating a comprehensive file list from both locations helps identify the exact missing or unsynced files.
Open PowerShell as an administrator and run a command to install the OneDrive module from the PowerShell Gallery, which allows you to list OneDrive directories.
Use PowerShell scripts to export the file list from your local Windows directory and your OneDrive directory, saving both outputs as CSV files.
Open both CSV files in a spreadsheet application and use functions like VLOOKUP to cross-reference the two lists, immediately revealing the mismatched file counts or sizes.

Clear OneDrive Version History and Recycle Bin
Mass uploads can generate multiple backup versions, consuming up to three times the expected storage space on OneDrive.
Account for 'Size' vs 'Size on disk' Block Allocation
Differences in underlying file system block sizes can cause the same file to report different sizes on disk.
Easily Compare File Lists with WPS Office
Need to compare local and OneDrive file lists using CSVs? WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office. It offers a familiar interface and robust spreadsheet tools to easily analyze your data and find synchronization discrepancies.
- 1. Download WPS Office: Download and install WPS Office for free from the official website.
- 2. Open Exported CSVs: Launch WPS Spreadsheet and open your exported Windows and OneDrive file lists.
- 3. Analyze the Data: Use built-in data comparison tools or VLOOKUP formulas to quickly identify mismatched file sizes and counts.

Frequently Asked Questions
Why does OneDrive say my storage is full after uploading files?
During mass uploads, OneDrive may create multiple backup versions of your files to prevent data loss. This Version History, along with items in the OneDrive Recycle Bin, can consume significantly more space than the original files. Deleting old versions and emptying the recycle bin resolves this.
What is the difference between 'Size' and 'Size on disk'?
'Size' refers to the actual byte count of the file, while 'Size on disk' refers to the physical space it occupies based on the file system's block allocation. For instance, a 1 KB file might take up a 4 KB block on a Windows drive due to formatting rules.
Can I use PowerShell to check my OneDrive files?
Yes, you can install the OneDrive module from the PowerShell Gallery. This module allows you to list directories, retrieve metadata, and export file lists from OneDrive to easily compare them with your local drive.
Why do my file counts differ between Windows and OneDrive?
File count differences usually occur if synchronization is paused or incomplete, or if certain hidden files, temporary system files, or unsupported file types are excluded from syncing to OneDrive.




