What a direct download link is, and how to make one
Sunny 7 min read
“Direct download link” sounds like a special kind of URL you have to generate. It isn't. It's an ordinary link to a file, where the server adds one instruction telling the browser to save this rather than show it. Once you know which instruction, every confusing thing about direct links — why Drive links don't work, why the trick you found stopped working — makes sense.
The one header that decides everything
When a browser asks for a file, the server answers with headers describing it. One of them settles view-or-download:
Content-Disposition: inline → show it in the browser
Content-Disposition: attachment → download itThat's the whole mechanism. The same URL can do either, depending on what the server says when it answers. This is why you can't tell from looking at a link whether it'll download — the answer isn't in the URL, it's in the response.
A second header, Content-Type, decides how it's shown when inline. A PDF served as application/pdf renders in the viewer; the same bytes served as application/octet-stream download, because the browser has been told it's an anonymous blob.
Direct link vs share link
| Share link | Direct download link | |
|---|---|---|
| What opens | A page showing the file | Nothing — the download starts |
| Good for | Anything meant to be read | Assets, installers, datasets |
| On a phone | Opens and is readable | Lands in Files with no context |
| Branding | The host's page around it | None — just bytes |
| Can you count opens? | Yes | Only the download itself |
Getting one out of the big cloud drives
Google Drive
A normal Drive share link ends in /view and opens a preview page. Pull the file ID out of it and rebuild the address in the download form:
https://drive.google.com/file/d/FILE_ID/view ← preview
https://drive.google.com/uc?export=download&id=FILE_ID ← downloadTwo honest caveats before you print that on something:
- It's a pattern, not a feature. Google doesn't document it as a stable interface, and has changed these URLs before, breaking every link built on them.
- Large files interrupt anyway. Above the virus-scan threshold Drive shows a confirmation page instead of downloading, so the “direct” link isn't direct for exactly the big files you wanted it for.
And it still inherits Drive's sharing model, so if the file isn't set to “Anyone with the link” your recipient gets a request-access screen rather than a download.
Dropbox
Dropbox share links end in ?dl=0, which means “show the preview page”. Change it to ?dl=1 and the same link downloads:
https://www.dropbox.com/s/abc123/report.pdf?dl=0 ← preview
https://www.dropbox.com/s/abc123/report.pdf?dl=1 ← downloadCleaner than the Drive route because the parameter is deliberate rather than reverse-engineered. It's still tied to a Dropbox account and its storage quota.
When you should not use one
This is the part most guides skip, and it matters more than the mechanics. A download that starts with no warning is a poor experience in three common situations:
- On a phone. The file lands in Downloads or Files with no preview and no context. Plenty of people never find it again.
- On a metered or slow connection. You've just spent someone's data without asking.
- When the file is meant to be read. A proposal, a menu, a resume, a deck — forcing a download adds a step between the reader and the content, and some of them won't take it.
The version that does both
You rarely have to choose. A link that opens an in-browser preview and offers a download button covers both audiences: the person who just wants to look, and the person who wants the file.
That's the default on Link in Seconds — upload a file and you get a link that previews in the browser with a download available, on a URL that doesn't depend on an undocumented parameter and won't break when a vendor changes its URL scheme. If you'd rather people didn't keep a copy at all, view-only turns the download off entirely — with honest limits.
Quick answers
What is a direct download link?
A URL that starts downloading the file as soon as it is opened, instead of showing a preview or a landing page first. Technically it is not a special kind of URL — it is an ordinary link to a file whose server responds with the HTTP header Content-Disposition: attachment, which tells the browser to save the file rather than display it.
What is the difference between a direct link and a share link?
A share link usually points at a web page that shows the file, with the service's branding, a preview and a download button. A direct link points at the file itself and begins the download immediately. The share link is better when you want the person to look at something; the direct link is better when they only need the bytes.
How do I make a Google Drive link download directly?
Take the file ID out of the sharing URL and use the export-download form of the address instead of the /view form. It works, but it is an undocumented pattern rather than a supported feature: Google has changed these URLs before and broken every link built on them, and large files still interrupt with a virus-scan warning page.
Should I always use a direct download link?
No. A download that starts with no warning is hostile on a phone and on a metered connection, and it gives the recipient no idea what they just received. For documents people are meant to read — a proposal, a menu, a resume — an in-browser preview with a download button converts far better than a forced download.
Related guides
Turn any file into a link in seconds
Upload a PDF, image, video, or ZIP and get a clean, trackable link with a QR code — free.
Try Link in Seconds →