I got a question from our customer about how many sub-folders levels we can have inside sharepoint online document library. now based on my knowledge there is not any limit. now i am not discussing if we should have many levels of sub-folders, but my question if we really have a limit.

Based on my test i was able to create 7 levels of sub-folders, and i uploaded a word document inside the last level, and the word document URL is consists of 264 characters which seems it is also acceptable.

so my question is if there are a limitation about the number of sub-folders we can have inside SharePoint online document library ? or limitation of the url length (where the url length will be increasing as we add more sub-folders)?


  • Absolutly, it should be right about zero ;-) Nov 26 '18 at 17:30
  • @KasperBoLarsen can you advice what do you mean by Absolutly, it should be right about zero ;-)??
    – John John
    Nov 26 '18 at 23:09
  • Sure :-) This sums it up pretty good : sharepointeurope.com/15-reasons-not-use-folders-sharepoint Nov 27 '18 at 7:06
  • @KasperBoLarsen ok i got your point now... so u r trying to say not to use them... anyway end users like to group their files using folders and sub-folders, they feel comfortable doing so,,, now on every topic on sharepoint you will find articles saying not to use this option,, but at the end it is the end users preferences and any contributor have the permission to add folders.. now if SP think folders are bad, then let them have the courage and remove this option from document libraries,, i know there is an option within each lib to disable folders, but it is set to yes by default..
    – John John
    Nov 27 '18 at 11:04
  • @KasperBoLarsen in addition to my above reply.. SP uses folders heavily inside their built-in components, try to add a new modern page>>inset an image inside the page>>check the site assets folders>> you will see that there is a folder created (with the same name as the modern page title) and this folder stores the images and other assets for the modern page,, why SP did not implement this using managed metadata for example !!
    – John John
    Nov 27 '18 at 11:06

See SharePoint Online Limits:

  • A list can have up to 30 million items and a library can have up to 30 million files and folders.
  • SharePoint Online supports URL paths up to 400 characters (SharePoint Server OnPremise only 260)
  • You have a list view limit of 5000 items (might get changed, they are working on that), which means that you should not have 5000 or more subfolders within a single folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.