Get a Google Drive Folder ID (fast)

Find the unique Folder ID from any Google Drive folder so you can use it in sharing links, Apps Script, API calls, or automation tools.

What the video covers

Show how to find and copy the Folder ID from a Google Drive folder using the browser URL or the folder 'Get link' option.

Watch the video on YouTube

Step-by-step instructions

  1. Open Google Drive in your browser
    Go to drive.google.com and sign in if needed.
  2. Navigate to the folder you want
    Browse or search Drive and click the folder to open it (so the folder view and URL update).
  3. Locate the Folder ID in the address bar
    Look at the browser URL. The Folder ID is the long string immediately after '/folders/' in the URL. Example: in https://drive.google.com/drive/folders/1AbCDefGhIJKlMnOpQRsTuvWxYZ12345 the ID is 1AbCDefGhIJKlMnOpQRsTuvWxYZ12345.
  4. Copy the Folder ID
    Select and copy only the alphanumeric string after '/folders/' (stop before any trailing slash or query parameters). Use this value in scripts, API requests, or automation tools.
  5. Alternative: get it from the folder's link
    Right-click the folder and choose the option to get a shareable link. The Folder ID will appear inside that link in the same position (after '/folders/'). Copy it from there.

Watch the video

Video thumbnail for Get a Google Drive Folder ID (fast) Play tutorial

Watch on YouTube

Why it matters

Folder IDs are the exact identifiers required by Google Apps Script, Drive API calls, automation tools, and precise sharing links. Copying the ID ensures you reference the correct folder without ambiguity.

Check your result

You should end up with a single alphanumeric string (the Folder ID) copied to your clipboard — the long text that appears after '/folders/' in the folder URL or inside the shared link.

Troubleshooting

If you opened a file instead of a folder, the URL will look different (it may include '/file/'); open the folder itself first. If the URL includes extra query parameters, only copy the segment immediately after '/folders/' up to the next slash or question mark. If the folder is inside a shared link, use 'Get link' to view the same ID.