Get Folder Size in Google Drive: 3 Ways
In this article
- Why Google Drive Doesn't Show Folder Sizes
- Method 1: Using the Google Drive Desktop App
- Method 2: Using the Google Drive API
- Method 3: Third-Party Tools and Add-ons
- How to Choose the Right Method
- Common Problems and Misconceptions
- Costs and Safety Considerations
- Alternatives to Getting Folder Sizes
- Frequently Asked Questions
To get the size of a folder in Google Drive, you can't see it directly in the web interface, but you can use the Google Drive desktop app, the Google Drive API, or a third-party tool. This article explains each method, their pros and cons, and how to choose the right one for your needs.
Why Google Drive Doesn't Show Folder Sizes
Google Drive's web interface (drive.google.com) intentionally omits folder size information. This is a deliberate design choice, likely because calculating the total size of a folder—which may contain thousands of files, shared items, and shortcuts—would require a server-side operation that could be slow and resource-intensive. Instead, Google provides a simple quota indicator at the bottom of the sidebar, which shows your overall storage usage but not per-folder breakdowns. This lack of a built-in feature has led to a variety of workarounds, each with its own trade-offs.
Method 1: Using the Google Drive Desktop App
The easiest way for most people is to use the Google Drive for Desktop application (available for Windows and macOS). Once you install it and sign in, your Drive files are synced to a local folder on your computer (or you can choose to stream files on demand). Then, you can check the folder size using your operating system's file properties:
- Open the Google Drive folder on your computer (usually in File Explorer on Windows or Finder on macOS).
- Right-click the folder whose size you want to know.
- Select Properties (Windows) or Get Info (macOS).
- Look for the Size entry—this shows the total size of all files inside the folder.
This method works reliably and gives you an exact number in your local file system's units (e.g., GB or MB). However, note that if you are using “Stream” mode (where files are only downloaded on demand), the size shown is the total size of the files as they exist in the cloud, not the space they occupy on your hard drive. If you're using “Mirror” mode, the size shown is both the cloud size and the local disk usage.
Method 2: Using the Google Drive API
If you need to check folder sizes programmatically—for example, to audit a large team drive or to automate reporting—you can use the Google Drive API. This requires some coding knowledge, but it's free and doesn't rely on third-party services. The general approach is:
- Use the
files.listmethod to get all files and folders in the drive, including their parent folder IDs. - Build a tree structure in your code to associate files with their parent folders.
- Sum the
sizefield of all files under a given folder (note: Google Docs, Sheets, and Slides files do not have asizefield; they are counted as 0 bytes in the API, but they do consume quota in reality).
You can write a simple script in Python or JavaScript using Google's client libraries. For example, a Python script using the google-api-python-client library can iterate through all files and accumulate sizes. The main challenge is handling pagination and large numbers of files—you may need to use the nextPageToken to fetch all results. Also, be aware that the API returns sizes in bytes, so you'll need to convert to GB or MB manually.
Method 3: Third-Party Tools and Add-ons
Several third-party web apps and Google Workspace Marketplace add-ons can show folder sizes without requiring you to download anything. These tools typically connect to your Google Drive via OAuth (so you don't share your password) and then scan your files to display a list of folders and their sizes. Some popular ones include Drive Size, Folder Size, and CloudFuze (though this is more for migration). These tools are often free for basic use, but may require a subscription for advanced features like scheduled scans or reporting.
When using third-party tools, you should be cautious about granting permissions. Always check the permissions requested—a legitimate tool should only need access to view and list your Drive files, not to delete or modify them. Also, read reviews and check the developer's reputation before granting access to your entire Drive.
How to Choose the Right Method
Your choice depends on your technical comfort and your specific need:
- One-time check on your own computer: Use the desktop app (Method 1). It's quick, free, and requires no coding.
- Automated or large-scale analysis: Use the API (Method 2) if you're comfortable with scripting. It's the most flexible and can be integrated into dashboards or alerts.
- No installation, occasional use: Use a third-party web tool (Method 3) if you don't want to install anything and don't mind giving a third-party app access.
Common Problems and Misconceptions
One common misconception is that the “Size” column in Google Drive's list view shows folder sizes—it doesn't. That column only shows the size of individual files. Another issue is that folders shared with you may not appear in your desktop app unless you've added them to “My Drive.” In that case, you'll need to use the API or a third-party tool that can access shared drives.
Also, remember that Google Docs, Sheets, Slides, and Forms files don't have a size in the traditional sense. They are stored in Google's proprietary format, and while they count against your quota, their “size” is not reported by the API. This means any method that relies on the API will undercount the true storage usage if you have many such files.
Costs and Safety Considerations
All three methods are free to use, though some third-party tools have premium tiers. The API itself is free, but you may incur costs if you exceed Google's free quota for API requests (which is generous for personal use). For safety, always use official Google apps or well-reviewed third-party tools. Never give your Google password to any third-party service—they should use OAuth. Also, be mindful that some tools may cache your data; read their privacy policy if that matters to you.
Alternatives to Getting Folder Sizes
If you only need to know how much space you're using overall, the Drive sidebar shows that. If you need to find large files, you can use the search operator size:1000000 (in bytes) to find files larger than a certain size. For example, size:1000000000 finds files over 1 GB. This can help you clean up without needing folder sizes. Another alternative is to use the “Storage” tab in the Google One app (if you have a Google One subscription), which shows a breakdown of storage by Google service, but not by folder.
Frequently Asked Questions
Can I see folder sizes in the Google Drive mobile app?
No, the Google Drive mobile apps (Android and iOS) do not show folder sizes. You can only see the size of individual files when you view their details. To get folder sizes on mobile, you would need to use a third-party app that connects to your Drive, or use the desktop method.
Why does my folder size show as 0 bytes in the API?
This happens when the folder contains only Google Docs, Sheets, Slides, or Forms files. These files do not have a size field in the API, so they are treated as 0 bytes. However, they still count against your storage quota. To get a true total, you would need to use a different method, like the desktop app, which counts them based on their approximate size.
Is it safe to use third-party folder size tools?
Generally, yes, if you choose reputable tools that use OAuth and request only read-only permissions. However, there is always some risk in granting third-party access to your data. Always review the permissions before authorizing, and revoke access when you're done. If you're concerned, use the desktop app or API instead.
Can I see the size of a folder that is shared with me?
Yes, but it depends on the method. If the shared folder is added to your “My Drive,” the desktop app will show its size. If it's not added, you'll need to use the API or a third-party tool that can access shared drives. The web interface still won't show it.
Does Google Drive count folder size toward my quota?
Yes, the total size of all files in a folder (including subfolders) counts toward your Google Drive storage quota. The folder itself is just a container; the quota is based on the files inside it.