What is document id in Google Sheets?

Document Id is an identifier or URL parameter for Google Sheets files, tabs, or linked forms. Developers and power users need these IDs for IMPORTRANGE, API calls, and prefilled form links.

When to use it

Use IDs and URL parameters when scripting, embedding, or linking directly to a tab or form field.

When to skip it

Skip raw IDs for casual sharing when a normal share link or named range is enough.

Better Sheets resources

Related Tutorials

Watch how document ID works

Browse more tutorials
Activate A Certain Sheet When Opening a Spreadsheet

Activate A Certain Sheet When Opening a Spreadsheet

Create a short function that runs every time a spreadsheet file is open....
Advanced Coding in Google Sheets for Programmers

Advanced Coding in Google Sheets for Programmers

Add a Custom Menu Create Native-like Functions Get URL and Sheet ID's vi...
Every Tab Has a Unique ID called GID

Every Tab Has a Unique ID called GID

Less than 2 minute tip to help you link directly to a tab in a sheet. Ea...
Automatic Weekly Backup of Google Sheets

Automatic Weekly Backup of Google Sheets

Discover how to Save Your Sheets Every Week Automatically
Enter Google Drive File Name Get URL

Enter Google Drive File Name Get URL

Create a simple automation with an installable trigger that allows you t...
Create an Internal Google Sheets Add-on

Create an Internal Google Sheets Add-on

The entire process to create and publish a Google Sheets Add-on internal...

Related blog posts

Guides that explain document ID in more depth.

Browse the blog

Related terms

Done reading about document ID?

Membership unlocks 637+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.