How to make a Google Drive direct download link
- Share the file with anyone who has the link. In Google Drive, open the file's Share box and set General access to Anyone with the link.
- Copy the link. Click Copy link in the same box, or copy it from the address bar while the file is open.
- Paste it above. Tap Paste, or paste it into the box yourself.
- Copy the direct link and share it. Whoever opens it gets the file as a download.
Example: a Drive share link, before and after
Here's a file link as Drive's Copy link gives it. Opened in a browser, it shows Drive's preview page with a download button somewhere on it:
Share linkhttps://drive.google.com/file/d/1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUvW/view?usp=sharingDirect linkhttps://drive.usercontent.google.com/download?id=1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUvW&export=download
The part between /d/ and /view is the file ID, 1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUvW. The direct
link puts that ID in Google's download address on drive.usercontent.google.com, which sends the
file as a download. You can build it by hand the same way.
You may also know the older uc?export=download form. It still works: Google forwards it to the
same download address, and the tool gives you both.
Classic linkhttps://drive.google.com/uc?export=download&id=1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUvW
Make the file shareable first: "Anyone with the link"
A direct link doesn't change who can open a file. If the file is private, or shared only with certain people, the link opens a Google sign-in page instead of downloading. To share it with everyone who has the link:
- On drive.google.com, right-click the file and open Share.
- Under General access, change Restricted to Anyone with the link.
- Leave the role on Viewer: that's enough to download.
- Click Copy link, then Done.
In the Google Drive app, the same setting is in the file's sharing options. Anyone who gets the direct link can download the file, so only share files you're happy to hand out.
Download Google Docs, Sheets and Slides as PDF, Word or Excel
Docs, Sheets and Slides aren't ordinary files, so there's nothing to download until Google turns them into
one. Their direct link ends in /export?format= and the format you want. Paste the link above and
pick the format in Download as:
| File | Formats | Default |
|---|---|---|
| Google Docs | pdf, docx, txt, odt, rtf, epub | |
| Google Sheets | xlsx, pdf, csv, ods, tsv | Excel (.xlsx) |
| Google Slides | pptx, pdf, odp, txt | PowerPoint (.pptx) |
Doc linkhttps://docs.google.com/document/d/1Qw2Er3Ty4Ui5Op6As7Df8Gh9Jk0LzXcVbNm1Qw2Er3T/edit?usp=sharingAs PDFhttps://docs.google.com/document/d/1Qw2Er3Ty4Ui5Op6As7Df8Gh9Jk0LzXcVbNm1Qw2Er3T/export?format=pdfAs Wordhttps://docs.google.com/document/d/1Qw2Er3Ty4Ui5Op6As7Df8Gh9Jk0LzXcVbNm1Qw2Er3T/export?format=docx
Each download is a copy of the file as it is at that moment. A CSV or TSV holds one tab of a Sheet: the tab
in your link (the gid= number), or the first tab if the link has none. To export another tab,
open it in Sheets and copy the link from the address bar.
Big files and the "can't scan this file for viruses" page
For files too large for its virus scan, Google shows a page instead of the download: Google Drive can't
scan this file for viruses, with a Download anyway button. Your visitors can click
through, but the link isn't direct anymore.
Tick Skip Google's virus-scan page in the tool and the link gets confirm=t,
which is what the Download anyway button sends. The file then downloads straight away:
Big filehttps://drive.usercontent.google.com/download?id=1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUvW&export=download&confirm=t
This only works on the drive.usercontent.google.com link; the classic uc link
loses confirm=t on its way there. It does no harm on small files, so you can leave it on if
you're not sure.
Why the direct link doesn't work
- A Google sign-in page opens: the file isn't shared with "Anyone with the link". Change the sharing setting, then try the same direct link again.
- A "not found" error: the file was deleted, or the link was copied with a piece missing. Copy it again from Drive.
- It's a folder: folders have no direct link. Share the files inside one by one, or download the folder from Drive, which packs it into a ZIP file.
- A message about too many downloads: when a file is downloaded a lot, Google can pause downloads for a while. Wait and try later, or share a copy of the file.
Dropbox direct download links
Dropbox share links usually end in dl=0, which opens a preview. Change it to dl=1 and the
link downloads the file instead. Paste a Dropbox link above and the tool does it for you, keeping the
rlkey part the link needs to work.
Share linkhttps://www.dropbox.com/scl/fi/abc123xyz/report.pdf?rlkey=k3y9&st=s7t8&dl=0Direct linkhttps://www.dropbox.com/scl/fi/abc123xyz/report.pdf?rlkey=k3y9&st=s7t8&dl=1
More for your links
Links full of tracking codes? The Link Cleaner takes them off. Got a list
of links to go through? The Bulk URL Opener opens them in new tabs, a
batch at a time. And for the links you want to keep, here's
how to save links from any app on your phone.
Frequently asked questions
How do I make a direct download link for a Google Drive file?
Share the file with "Anyone with the link", copy its link and paste it into the tool above. You get a link that downloads the file straight away instead of opening the Drive preview page. By hand: take the file ID from drive.google.com/file/d/ID/view and put it in drive.usercontent.google.com/download?id=ID&export=download.
Does the file have to be public?
It has to be shared with "Anyone with the link". If it isn't, a direct link opens a Google sign-in page instead of downloading, and only people with access can get the file after signing in.
Can I make a direct download link for a Google Drive folder?
No. Direct links work for single files only. Share the files inside one by one, or open the folder in Google Drive and download it: Drive packs it into a ZIP file for you.
How do I download a Google Doc, Sheet or Slides file with a link?
Paste its link above and pick a format. A Doc downloads as PDF, Word, plain text, OpenDocument, rich text or EPUB; a Sheet as Excel, PDF, CSV, OpenDocument or TSV; a Slides file as PowerPoint, PDF, OpenDocument or plain text. The link ends in /export?format= and the format you picked.
Why does my link show "Google Drive can't scan this file for viruses"?
Google shows that page for files too large for its virus scan, with a Download anyway button. Tick "Skip Google's virus-scan page" in the tool: the link gets confirm=t, which is what that button sends, so the file downloads straight away.
Does it work with Dropbox links?
Yes. Paste a Dropbox share link and the tool sets dl=1 at the end, which is how Dropbox links download instead of opening a preview. The rlkey part of the link stays, since the link needs it.
Can I use the link to show an image on a website?
It isn't made for that. Google sends the file as a download, so the link saves the file rather than showing it. It works best as a download button or a link you send to people.
Is this tool free and private?
Yes. It is free, with no sign-up, and it runs entirely in your browser: the links you paste are never uploaded or saved, and the tool never opens them.