With Google Drive, you can store files in the cloud and share them easily with anyone. Open any file in Google Drive, click the Share button and you’ll get a URL (link) that others can use to access your file. This is common knowledge but Google Drive has plenty of URL tricks up its sleeve that will make these simple Drive links even more powerful.
The file has to be shared with Anyone with the link, or people will be asked to sign in with their Google accounts. If the Google Drive URL contains &resourcekey=, add the same parameter to the download, export and copy links below or the link will not open for people who have never viewed the file.
Google Drive URL Tricks

FILE_ID in the links below is the long id from the file’s share URL. Add &resourcekey=RESOURCE_KEY when the share link has one.
| Trick | URL |
|---|---|
| View in Drive | https://drive.google.com/file/d/FILE_ID/view |
| Reader mode | https://docs.google.com/document/d/FILE_ID/preview |
| Direct download | https://drive.google.com/uc?export=download&id=FILE_ID |
| Google Doc as PDF, Word or Markdown | https://docs.google.com/document/d/FILE_ID/export?format=pdf |
| Google Sheet as Excel or CSV | https://docs.google.com/spreadsheets/d/FILE_ID/export?format=xlsx |
| Google Slides as PDF or PowerPoint | https://docs.google.com/presentation/d/FILE_ID/export/pdf |
| One slide as PNG | https://docs.google.com/presentation/d/FILE_ID/export/png?pageid=SLIDE_ID |
| Make a copy | https://docs.google.com/document/d/FILE_ID/copy |
| Use as a template | https://docs.google.com/document/d/FILE_ID/template/preview |
| Drawing as SVG or PNG | https://docs.google.com/drawings/d/FILE_ID/export/svg |
| Embed a folder | https://drive.google.com/embeddedfolderview?id=FOLDER_ID |
Google Drive Web Viewer
Google Drive includes a built-in web viewer so people can view your shared files - from Microsoft Office documents to videos to AutoCAD drawings - directly in their browser. You can use this web viewer to view online files without having to download the files to your computer.
https://drive.google.com/file/d/FILE_ID/view
To open a public file that is not stored in Google Drive, use the Google Docs viewer.
https://docs.google.com/viewer?url=FILE_URL
Replace FILE_URL with the full http link of the online document and anyone can view your file in the browser itself. Here’s an example.
Reader Mode for Google Drive Files
You can view native Google documents in reader mode (sans the Google UI) by simply replacing /edit in the Google Drive file URL with /preview.
So if the original share link of a file in Google Drive is:
https://docs.google.com/spreadsheets/d/FILE_ID/edit
You can view the same document in a clean, reader mode using the link:
https://docs.google.com/spreadsheets/d/FILE_ID/preview
Here’s a Google Sheet, Google Document and Google Slides presentation in preview mode that is less-cluttered without any menus and toolbars.
Embed Google Documents in Web Pages
The /preview is useful when you need to embed a document, spreadsheet or presentation from Drive in your web page using the IFRAME tag as in this live example.
<iframe src="https://docs.google.com/document/d/FILE_ID/preview" height="600px" width="800px" allowfullscreen> </iframe>
Also see: How to Embed Google Slides Like a Pro
Download and Export Google Drive Files
The native file viewer is useful but sometimes you may want to bypass the built-in Google Docs viewer and force the browser to download the file instead of opening it. If a user has Photoshop on their computer, the PSD file that you have shared through Google Drive will open in Photoshop and not in their web browser.
Create Direct Download Links and Skip the Web Viewer
When you upload any file in Google Drive and share it, the shared link looks like this:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing
Older share links in the https://drive.google.com/open?id=FILE_ID format still work and redirect to the new format.
The FILE_ID is unique for every file in Google Drive. If the share link also contains resourcekey=, copy that value too. If you copy this ID and use it in the URL below, you’ll get a direct link to download the file from Google Drive (example).
https://drive.google.com/uc?export=download&id=FILE_ID&resourcekey=RESOURCE_KEY
Leave out &resourcekey=RESOURCE_KEY when the share link does not have one. Google now redirects this link to drive.usercontent.google.com/download, and the file starts downloading. A few things to keep in mind:
- The file must be shared with
Anyone with the link, or people will be asked to sign in. - For large files, users first see a “Google Drive can’t scan this file for viruses” page and must click Download anyway.
- Direct download links work for files only. A shared folder can’t be downloaded with a direct link. You can still embed the folder listing with
https://drive.google.com/embeddedfolderview?id=FOLDER_ID.
If you wish to open the file in the Google Drive web viewer, the viewer URL would be (example):
https://drive.google.com/file/d/FILE_ID/view
Also see: Direct Links for Google Drive Images and How to Set Expiration Dates for Shared Google Drive Files
Direct Download Links for Native Google Documents
The direct download URL trick works for native Google documents as well. This comes in really handy if you want to give users an option to download your Google Document as a read-only PDF file or your Google Spreadsheet as an Excel XLSX file.
Google Docs - Direct Downloads
Any document in your Google Drive has a URL like:
https://docs.google.com/document/d/FILE_ID/edit
Replace /edit with /export?format=, add the file format that the document should be saved as and your download link is ready (example).
https://docs.google.com/document/d/FILE_ID/export?format=pdf
https://docs.google.com/document/d/FILE_ID/export?format=docx
https://docs.google.com/document/d/FILE_ID/export?format=md
The above links will download the same Google document in PDF, Word (.docx) and Markdown formats. You can also specify txt, html, odt (OpenDocument), rtf or epub for downloading the Google Document as an e-book.
Google Slides - Download Links
Like Google Documents, the URLs of presentations in Google Drive have this format:
https://docs.google.com/presentation/d/FILE_ID/edit
The direct download links for Google Slides are slightly different than Google Documents. Replace /edit with /export/FORMAT where format can be pptx for downloading Google Slides as Microsoft PowerPoint files, PDF for exporting the presentation as a PDF slideshow, or odp (OpenDocument).
https://docs.google.com/presentation/d/FILE_ID/export/pdf
https://docs.google.com/presentation/d/FILE_ID/export/pptx
https://docs.google.com/presentation/d/FILE_ID/export/odp
For instance, here’s a presentation on Google Slides that you can directly download as a PDF or a PPT file.
Download Google Slides as PNG Files
With Google Slides, you can either export the entire presentation as a PDF or you can create links to individual slides that will download the slide as a high-res PNG file.
All you need to do is add ?pageid=SLIDE_ID to the PNG export URL. The slide ID is not the slide number. To find it, select the slide in Google Slides and copy the value after #slide=id. in the browser’s address bar. If the address bar shows #slide=id.p, use pageid=p.
https://docs.google.com/presentation/d/FILE_ID/export/png?pageid=SLIDE_ID
Also see: Link Directly to specific Google Slide
Google Sheets - Export Links
Open your Google Spreadsheet in Google Drive, make the sheet Public (or share with Anyone with a link) and make a note of the shared URL. It should be something like this:
https://docs.google.com/spreadsheets/d/FILE_ID/edit
The direct download links for Google Sheets are similar to Google Docs and the sheets can be exported as PDF, Excel XLSX and CSV files.
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=xlsx
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=pdf
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=csv
The CSV export only includes the first sheet. To export a specific sheet, add its gid (the number after #gid= in the sheet URL), and add range to export only a part of it. For the PDF, size, portrait and fitw set the paper size, orientation and whether the sheet fits the page width:
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=csv&gid=SHEET_GID
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=pdf&gid=SHEET_GID&range=A1:D20
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=pdf&gid=SHEET_GID&size=A4&portrait=false&fitw=true
For instance, here’s a spreadsheet and you can directly download the file as PDF or XLSX file with simple manipulation of the original sheet URL.
Also see: Email Google Sheets on Schedule
Copy and Make any shared Google Drive File your own
Replace /edit with /copy in the URL of any native Google Drive file and anyone can click that link to quickly make a copy of that file in their own Google Drive. Try here.
Original Link:
https://docs.google.com/document/d/FILE_ID/edit
Copy Link:
https://docs.google.com/document/d/FILE_ID/copy
The /copy URL trick works for Google Docs, Sheets, Slides and Google Scripts. Add ?copyComments=true if you would like the copied document to include the comments from the original document. Set includeResolvedCommentsOnCopy=false to skip copying resolved comments and copyCollaborators=false to not share the copied document with the original collaborators.
If you want people to see the file before copying it, use /template/preview instead of /copy. This opens a clean preview with a Use template button that makes the copy.
https://docs.google.com/document/d/FILE_ID/template/preview
You can use the copy trick for Google Forms as well but the form will be copied to another user’s Google Account only if the form owner has granted access to the form.
Invite users when copying documents
If you add userstoinvite=email@domain.com to the copy URL, the Google user who is copying the document will be prompted to share the document with the specific Google account immediately after copying the document.
https://docs.google.com/document/d/FILE_ID/copy?userstoinvite=email@example.com
Google Drawings - Embed as Image
You can export your Google Drawings as SVG, PNG, JPEG or PDF files by replacing /edit in the drawing URL with /export/FORMAT.
For instance, if the Google Drawing URL in Drive is:
https://docs.google.com/drawings/d/FILE_ID/edit
The direct link for downloading the drawing in vector format like SVG or as a PDF file would be:
https://docs.google.com/drawings/d/FILE_ID/export/svg
https://docs.google.com/drawings/d/FILE_ID/export/png
https://docs.google.com/drawings/d/FILE_ID/export/pdf
https://docs.google.com/drawings/d/FILE_ID/export/jpg
You can even use these links to embed Google Drawings as inline images in your HTML webpages using the <img> tag as shown here. The image often does not load when the page is outside Google. See Direct Links for Google Drive Images for image files stored in Drive.
<p>
<img src="https://docs.google.com/drawings/d/FILE_ID/export/png" alt="Google Drawing" />
</p>
Also see: The Most Important Google URLs