GDOC File Extension: What It Is and How to Use It
A .gdoc file is a Google Docs shortcut file, not a document itself. It contains a link that points to a Google Docs document stored online, and opening it takes you to that document in your browser (provided you are signed in with the right Google account).
What Exactly Is Inside a .gdoc File?
Unlike a .docx or .pdf, a .gdoc file does not hold the text, formatting, or images of your document. Internally, it is a small JSON file (typically a few hundred bytes) that stores a resource ID—a unique string identifying the document on Google's servers. When you double-click a .gdoc file, your operating system passes it to the default browser, which then uses that ID to open the corresponding Google Docs URL.
This design means the actual document lives in Google Drive. The .gdoc file is just a pointer, similar to a desktop shortcut. If you move the .gdoc file to another computer, it will still work as long as you have permission to access the linked document and are signed in to Google. If you delete the .gdoc file, the document itself remains safe in Google Drive.
How .gdoc Files Are Created and Where They Appear
Google Drive creates .gdoc files automatically in certain situations:
- When you use the “Google Docs Offline” feature in Chrome, Drive stores local copies of your documents, and .gdoc files act as placeholders that let you open the online version when you reconnect.
- When you download a Google Doc via “File > Download > Microsoft Word (.docx)”, you get a .docx file, not a .gdoc. However, some third-party tools or sync clients (like Backup and Sync or Drive for Desktop) may generate .gdoc files when syncing shortcuts.
- If you create a shortcut to a Google Doc in Drive (right-click > “Add shortcut to Drive”), the shortcut appears as a .gdoc file in your Drive listing, especially when viewed through the Drive for Desktop folder on your computer.
In short, .gdoc files are most commonly seen by users who use Google Drive's desktop sync client or who work with offline access. They are not the default format when you simply create a new Google Doc online—that document exists only in the cloud until you download it in another format.
How to Open a .gdoc File
Opening a .gdoc file is straightforward if you have the right setup:
- Ensure you are signed in to Google with the account that has access to the document.
- Double-click the .gdoc file. Your default browser should open and navigate to the Google Docs editor for that document.
- If the file does not open automatically, right-click it, choose “Open with”, and select your browser (Chrome, Firefox, Edge, etc.).
- If you are prompted to choose an app on Windows, you can associate .gdoc files with your browser or with Google Drive for Desktop.
On macOS, .gdoc files may open in Chrome by default if Chrome is set as the default browser. On mobile devices, .gdoc files are not typically used; instead, you open the Google Docs app and access the document from your Drive list.
Common Problems and How to Fix Them
Several issues can prevent a .gdoc file from opening correctly:
- “File not found” or “Access denied” errors: This usually means you are signed in with a different Google account than the one that owns or has access to the document. Switch accounts or request access from the owner.
- Browser opens but shows a blank page: Clear your browser cache or try a different browser. Sometimes an extension blocking Google Docs can cause this.
- File opens in a text editor: Your system may not have a default association for .gdoc files. Set your browser as the default program for this file type, or open the file manually via the browser's “Open file” dialog (though this may not work because the browser expects a URL, not a local file). In that case, use Google Drive for Desktop to open it.
- Offline access not working: If you rely on offline mode, make sure you have enabled offline access in Google Drive settings and that the document has been synced for offline use.
It is also worth noting that .gdoc files are not meant to be edited directly. If you open one in a text editor, you will see JSON code, not your document content. Editing that code can break the link.
.gdoc vs. Other Google Drive Shortcut Formats
Google Drive uses similar shortcut files for other app types:
- .gsheet – shortcut to a Google Sheets spreadsheet
- .gslides – shortcut to a Google Slides presentation
- .gdraw – shortcut to a Google Drawing
- .gform – shortcut to a Google Form
All these files work the same way: they store a resource ID and open the corresponding web app. They are not interchangeable with standard Office formats. If you need to share a document with someone who does not use Google Drive, you should export it as .docx or .pdf instead of sending a .gdoc file.
When Should You Use a .gdoc File?
.gdoc files are useful in specific scenarios:
- You want to create a desktop shortcut to a Google Doc without downloading the full document.
- You use Google Drive for Desktop and want to access your Docs from your computer's file manager.
- You need to share a link to a document with collaborators who are already in your Google Workspace environment—though sharing the document URL directly is usually simpler.
However, for most sharing and archiving purposes, exporting to a standard format like .docx or .pdf is more practical. .gdoc files are not self-contained and require an internet connection and Google account to be useful.
Frequently Asked Questions
Can I convert a .gdoc file to a Word document?
You cannot convert the .gdoc file itself directly. Instead, open the .gdoc file to access the Google Doc, then use File > Download > Microsoft Word (.docx) to save a copy in Word format. That .docx file will contain the full document content.
Is a .gdoc file safe to open?
Yes, .gdoc files are safe because they are plain text files containing a link. They do not contain executable code. However, as with any file, ensure it comes from a trusted source, and be cautious if a .gdoc file points to a document you do not recognize.
Why does my .gdoc file open in Notepad?
Your computer does not have a default program associated with .gdoc files. You can fix this by setting your browser as the default app for .gdoc files, or by using Google Drive for Desktop, which handles these files automatically.
Can I email a .gdoc file to someone?
You can, but the recipient will need permission to access the linked document. If they do not have access, they will see a request access screen. For external sharing, it is better to export the document as a PDF or .docx and send that file instead.
What happens if I delete a .gdoc file?
Deleting a .gdoc file only removes the shortcut. The actual Google Doc remains in your Google Drive and can still be accessed through Drive or the Docs app. The document is not deleted unless you delete it from Drive itself.
Do .gdoc files work on mobile devices?
Mobile devices generally do not use .gdoc files. Instead, you open the Google Docs app and access your documents from there. If you receive a .gdoc file on mobile, you can open it with a file manager that supports Google Drive integration, but it is easier to open the document directly in the Google Docs app.