How to Check the Size of Google Drive Folders
Google Drive is the favorite choice of personal storage for many users. It offers 15GB of free storage for all users. One can pay to increase their storage limit. Over time, your Drive storage gets exhausted. You may want to free up some space by finding the big files.
There's no straightforward way to find the big files. There are some tricks to sort files by size on Google Drive, using which you can delete unwanted large files.
In Google Drive, folders are just another file with the mime-type application/vnd.google-apps.folder
. Hence, they mimic the functionality of a folder.
Every file on Google Drive has an ID & a parent ID. Parent ID is the ID of another file with the mime-type application/vnd.google-apps.folder
. This explains why everything on Google Drive is a file.
The simplest way to check the folder size is, downloading the folder and checking its size. But, it may not be convenient all the time. This post will explain 3 different ways that don't involve downloading the folder.
Using Drive Explorer to view the folder size
Drive Explorer is a Google add-on that allows you to list file metadata directly in your browser or a Google Sheet. A major benefit of Drive Explorer is that it also functions as a web app.
Highly rated and trusted by over 800,000 users worldwide, Drive Explorer makes it easy to retrieve detailed file information.
You don't need to install any application in your system. You can add Drive Explorer to your Google account and start using it.
Also with Drive Explorer, in addition to folder size, you get a lot of info about your files on Google Drive like who has what access to the file, download links, the path of the file, image links, created/modified at timestamp, last modifying user and much more.
To use it as a web app
The steps outlined below are demonstrated in the YouTube video linked above.
- Visit https://syncwithtech.com/drive-explorer/app.
- Click Pick from Google Drive.
- Select your Google account and authorize access to Google Drive.
- In the Google Drive file picker that opens, select one or more folders.
- Scroll down and click Fetch files.
- The folder sizes for all selected folders, including nested folders, will be displayed on the page.
- You can also export the folder data as a CSV by clicking the hamburger menu in the top left and selecting Export folder size data.
To use it as a Google add-on
Install
On the workspace marketplace page, click install and authorize access to your files. After installing, you can either use it from your Google Drive dashboard or from a Google Sheet.
From the Google Drive side panel:
If you only need the size of a single folder, this method works well.
- Select a folder in your Google Drive.
- Click the Drive Explorer icon in the side panel and wait a few seconds.
- Click Calculate Size and wait.
- The folder size will be displayed.
If you see an error message, the add-on’s execution was terminated before completing the size calculation. In this case, click Open Drive Explorer and follow steps from #3 as outlined in the Google Drive Dashboard steps.
From Google Drive Dashboard
To view the size of the selected folder and all nested folders within it, use this method.
- In your Google Drive, select one or more folders whose size you want to check.
- Right-click and select Open with → Drive Explorer.
- On the page that opens, scroll down and select Fetch files.
- In the pop-up, select your Google account and authorize access.
- Folder sizes will appear in one of the columns alongside other file details.
From a Google Sheet
You can even rename files/descriptions & share files directly from a Google Sheet with Drive Explorer in addition to finding folder size.
- Open a Google Sheet and select Extensions → Drive Explorer → Start Export → Selected items.
- Select Add items and select one or more folders (Hold Ctrl/Cmd to multi-select).
- Click on Export details to list the files.
- Folder Size is not populated by default. So, to bring to Google Sheet, select Extensions → Drive Explorer → Choose display fields. Check Folder Size and save.
Now, you will see the Folder Size column on the sheet.
Using Drive for desktop to check the Google Drive folder size from file explorer
Update: This method only works if you have already loaded the folder contents for offline use.
Google Drive has a desktop app for all operating systems. It can help you find the size of your folders. Download and install it in your system.
Open the app and log in with your Google account. As soon as you open the app, it will start to stream your files. It means your system will have a copy of your Google Drive metadata. Note that it is just the metadata, not the original files, so those won't take any space in your local disk.
Once the setup is done, you will see Google Drive mounted as a filesystem on your file explorer app. You can check the size of any Google Drive folder just like you would check your local folders.
On Windows, you can right-click → Properties. On Mac, you can right-click → Get Info. Check the image below. You can see that even though the folder size is 107KB, it takes no space on the disk.
If you want, you can change the sync option to 'Mirror files' from the preferences menu to have all files available on your system ready to be used offline.
Using Rclone to get the folder size in a CLI
Rclone is an open-source command-line tool for managing files on different cloud services. It offers a lot of functionalities. Viewing the size of directories is one of them. You can download the appropriate binary for your operating system from the Rclone downloads page.
With Rclone, you get the size of a Google Drive file/folder by issuing a command. Refer to the below prompt. Here, I'm getting the size of the folder 'Animals' in my Google Drive. Continue reading to know how to configure and use Rclone.
rclone size mydrive:Animals
Total objects: 5
Total size: 247.929 KiByte (253879 bytes)
Configuring Rclone to connect with Google Drive
1. Initiating the Configuration Process
After installing, open the terminal program of your choice, and run the following command.
rclone config
Now, you need to create a 'remote' for Google Drive. Remote is the channel through which you will access cloud vendors in Rclone. Press n
and Enter
to create a new remote. Input a word of your choice and press Enter
. You will use this word later to access Google Drive.
2. Choosing Google Drive as your storage option
After that, the command prompt will ask you to pick a storage. For Google Drive, type 'drive' and press Enter
.
Client ID and secret, we will use the default options provided by Rclone. Press Enter
twice.
3. Selecting the scope of access
Now, you need to give permissions to Rclone. You can pick a number between 1 to 5. If you're going to use Rclone only to check the size of files/folders, you can give read-only access to Rclone, which means you need to enter 2
.
But, if you need Rclone to perform write operations (Example: copying folders), you should enter 1
.
You can press Enter
again to let Rclone access files from your Google Drive root.
Next, Rclone will ask for service account config. You can press Enter
to skip this step. Press Enter
again to skip advanced config.
4. Authorizing access to Rclone
Now, Rclone will ask if you want to use auto config. If you are setting this up in your machine, you can press Enter
and continue. If you are in a remote/headless terminal session, you need to press N
so that Rclone can change the OAuth flow accordingly.
If you are not on a remote/headless session, Rclone will open your browser. You need to authenticate a Google account and go back to your terminal.
5. Shared drive access
Next, Rclone will ask if you want to configure the remote for a Shared Drive. If you like to use Rclone with your Shared Drive, Press y
and Enter
.
Your shared drives will be listed. Enter the appropriate number to select one.
6. Saving Google Drive remote
Now, Rclone will ask to save your remote. Press Enter
to save. Now, the setup is done. Press Q
and Enter
to exit.
The setup to access Google Drive with Rclone is completed now. To check a Google Drive folder's size from your terminal, you can issue the following command.
rclone size <remote>:<folder path from root>
If the folder is not in the root of your Google Drive, give the path to the folder from the root. For example, let's say the folder 'Wild' is inside the folder 'Animals', which is in the root folder. Then, I can issue the following command to get its size.
rclone size mydrive:Animals/Wild
Total objects: 2
Total size: 143.103 KiByte (146537 bytes)
Things to note when using rclone size
command,
- Params are case sensitive.
- It recursively drills down the folder tree to get the size of a folder.
- Spaces in the name of files/folders should be escaped with a forward slash. For instance, to get the size of the folder
Folder with space
in the root directory, you need to issue the following command,
rclone size mydrive:Folder\ with\ space
Total objects: 1
Total size: 124.982 KiByte (127982 bytes)
I have built an app to check the things that matter to you the most with a single click. If this interests you, you can give it a try on getradar.co.