What Is a Document Library in SharePoint?

What is a document library in SharePoint, and why not just use folders on a shared drive? A document library is the place on a SharePoint site where a team keeps its files. Each file can carry extra information, keeps its earlier versions, and has its own permissions, and several people can edit the same document at once.

Every SharePoint site gets one library automatically, and you can add as many as you need. Below you’ll see what a library does, how it differs from a list and a folder, the settings worth checking, the limits Microsoft sets, and how to create one.

Quick answer: A document library is a SharePoint container for files. It stores documents with metadata columns, version history, check-out, permissions and sharing, and lets people co-author and sync files to their PCs. Every site comes with a library named Documents, and you can create more with New > Document library.

A document library in plain terms

Think of a library as a smart folder. You upload files to it, create folders in it if you like, and open files in the browser or the desktop apps. What makes it more than a folder is that each file is also a record with columns, the same way a row in a SharePoint list is.

In the vendor library below, every file has a Vendor, a Document Type and an Amount. People can sort, filter and group by those columns, so finding every Fabrikam contract takes one click instead of a search through folders.

SharePoint ESP Vendor Documents library showing a folder, files and Vendor, Document Type and Amount columns

The library a site creates for you is called Documents on screen, but its web address ends in /Shared Documents/. When a site is connected to Microsoft Teams, the Files tab of each standard channel is a folder in that same library.

What you can do in a library

  • Store and organize files: upload, create, move, copy and delete files, and use folders where they help.
  • Describe files with metadata: add columns such as Vendor, Status or Expiration Date. Our explainer on metadata in SharePoint shows why this beats deep folders.
  • Use views: List, Compact list and Tiles layouts, plus saved views with their own filters, sorting and grouping.
  • Co-author: several people can edit the same Word, Excel or PowerPoint file at the same time.
  • Keep versions: SharePoint saves earlier versions of each file so you can view or restore them.
  • Control access: set permissions on the whole library, a folder or a single file, and share with people inside or outside your company.
  • Sync: work with library files in File Explorer through the OneDrive app.
  • Highlight files: use Pin to top so the most important files or folders stay at the top.
  • Automate: run SharePoint rules or Power Automate flows when files are added or changed.

One thing you’ll see in older guides is Alert me. Microsoft retired SharePoint alerts: new alerts stopped in January 2026 and existing ones stopped working in July 2026. Use rules or Power Automate instead.

Document library vs list vs folder

People mix these up all the time, so here’s the short version:

Document libraryListFolder
What it holdsFiles, each with columnsRows of data (items)Files or items inside a library or list
FilesThe file is the itemOnly as attachments, up to 250 MB eachInherits from its library
VersionsYes, per fileYes, per itemUses the library’s settings
PermissionsLibrary, folder or fileList or itemCan have its own
Best forContracts, reports, policies, mediaTasks, requests, inventoriesSimple grouping or a permission boundary

A library is technically a special kind of list, which is why both share views, columns and settings. Folders still have a place, especially to give one group access to part of a library, but our guide to organizing documents with folders, metadata and views explains why metadata scales better.

Settings worth checking

Open the gear icon and select Library settings (in some libraries, More library settings) to reach these. Most libraries work fine with the defaults, but you should know what they are.

Versioning

New libraries have versioning on and keep the last 500 major versions with no time limit, which is the Microsoft default for organizations. My test library’s Versioning Settings page showed exactly that. Admins can switch the organization or a library to Automatic, which trims older versions over time based on age and activity.

SharePoint library Versioning Settings page with No time limit selected and 500 major versions kept

You can also turn on minor (draft) versions such as 1.1 and 1.2. Our comparison of major vs minor versions in SharePoint explains when drafts help, and our guide to SharePoint version history covers restoring an older copy.

Check-out

Require Check Out makes people check a file out before they edit it, so only one person can change it at a time. That blocks co-authoring, so Microsoft recommends leaving it off in libraries where people edit together. Here’s how check in and check out work if you need it for formal documents.

Permissions and content types

By default a library inherits the site’s permissions. When a library needs a different audience, such as HR files on a team site, you can give unique permissions to a SharePoint library. Content types let one library hold different kinds of documents, each with its own columns and template.

Document library limits

These are Microsoft’s limits for SharePoint in Microsoft 365. For upload details, see our guide to the SharePoint file size limit.

LimitValue
Files and folders per library30 million
Largest file250 GB
Path length (folders plus file name)400 characters
Lists and libraries per site collection2,000 combined
Items shown in one view before the list view threshold5,000 (can’t be changed)
Versions per file50,000 major and 511 minor
Files to sync from one library (recommended)300,000

The 5,000-item threshold is about views, not storage. A library can hold millions of files, but a view that tries to show more than 5,000 at once can fail. Index the columns you filter on and keep views filtered, and big libraries stay fast.

How to create a document library

  1. On the site, select New > Document library (from the home page or Site contents).
  2. Choose Blank library, From existing library to copy another library’s columns and views, or a Microsoft template such as Invoices or Media library.
  3. Enter a name and an optional description.
  4. Select Create, then add columns and views as your team needs them.
SharePoint Site contents New menu with Document library highlighted under List and Page

Give each library a clear job, like Contracts or Marketing Assets, rather than one huge library for everything. Once it’s set up, people can sync the library with OneDrive to work from File Explorer.

Document library or OneDrive?

Both store files in the same SharePoint technology, so the question is who owns them. Files the team needs belong in a library, where they stay when someone leaves. Personal drafts and work-in-progress belong in OneDrive until they’re ready to share.

A good habit is to build a draft in OneDrive and move it to the team library when others need it, then use rules on a SharePoint list or library or a flow to let the right people know.

Common mistakes with document libraries

  • Deep folder trees: long paths hit the 400-character limit and make files hard to find. Use metadata for most grouping.
  • One library for everything: split by purpose or audience so permissions and views stay simple.
  • Requiring check-out everywhere: it blocks co-authoring and leaves files locked when people forget to check them in.
  • Breaking permissions file by file: it’s hard to track. Use separate libraries or folders for different audiences.
  • Relying on alerts: they no longer work. Switch to rules or Power Automate.

Ready to put a library to work? These guides help:

Frequently Asked Questions

What is a document library in SharePoint?

It’s a container on a SharePoint site for files. Each file can have metadata columns, version history and its own permissions, and people can co-author, share and sync the files.

What is the difference between a SharePoint list and a document library?

A library stores files, and each file is the item. A list stores rows of data, and files can only be added as attachments.

Does every SharePoint site have a document library?

Yes. Each site gets a library called Documents, whose web address ends in /Shared Documents/. You can add more libraries any time.

How many versions does a SharePoint library keep?

By default, new libraries keep the last 500 major versions with no time limit. Admins can change the limit or switch to automatic trimming.

How many files can a document library hold?

Up to 30 million files and folders. Views should stay under 5,000 items each to avoid the list view threshold.

Where does Microsoft explain document libraries?