OneDrive File Count Limit

lqAW64YGTIUBSJF 20 Reputation points
2026-07-09T14:50:51.4966667+00:00

Hello,

I've seen older answers (https://support.microsoft.com/en-us/onedrive/restrictions-and-limitations-in-onedrive-and-sharepoint,https://learn.microsoft.com/en-us/answers/questions/5303869/understanding-onedrives-folder-capacity-limits) regarding this question and I just wanted to make sure that it was still correct. I have a script on my computer that generates a very large number of very small files, all uniquely named, with only a few bytes of content each. I want to back these up to OneDrive. I see in the OneDrive documentation (https://support.microsoft.com/en-us/onedrive/restrictions-and-limitations-in-onedrive-and-sharepoint#numberitemscanbesynced) that individual sync events are limited to 2,500 files and that 300,000 files is the recommended limit to ensure that there are not performance issues. Will my account/storage be flagged if I exceed the 300k file limit, or if I start uploading batches of 2,500 files constantly? And is there a hard limit of files that I can upload?

Thank you!

Microsoft 365 and Office | OneDrive | For business | Windows

Answer accepted by question author
Ruby-N 13,325 Reputation points Microsoft External Staff Moderator
2026-07-09T16:26:56.5833333+00:00

Good day, and I appreciate the clear explanation of your concern.  

The 300,000 item count is a recommended sync limit, not a threshold that would cause your account to be flagged. Going beyond that number doesn't normally trigger any account restrictions.  

  • However, as the number of files increases, you may notice slower sync performance, longer "Processing changes" times, delayed uploads, or other sync reliability issues. 

User's image

The 2,500 item limit generally applies to large copy or sync operations, particularly in web-based scenarios.  

User's image

  • If you are working with large numbers of files, Microsoft recommends using the OneDrive desktop sync app rather than uploading through the OneDrive website. 

Currently, there is no Microsoft documented hard limit on the total number of files you can store in OneDrive.  

  • In practice, the main factors are your available storage quota, supported sync item count, file naming and path length requirements and overall sync performance. 
  • Because each file has its own metadata, a very large number of tiny files can create more overhead than fewer large files, even when the total storage used is small. 

For your scenario, the best approach would be to bundle the generated files into ZIP archives before uploading them to OneDrive.  

  • This significantly reduces the number of items OneDrive needs to track and sync while still providing a reliable backup of your data. 

If you need to keep the files as individual items, I recommend using the OneDrive desktop sync app, organizing files into separate folders or batches and avoiding unnecessarily large numbers of actively synced files on a single device. 

I hope this helps clarify the current OneDrive limits and recommendations. If you have any questions or need further support, please don’t hesitate to reach out at any time. 

Thank you for your patience and understanding.


If the answer is helpful, please click "Yes" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".            

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.