Free Tool
4.9/5

Free Google Drive Direct Link Generator

Paste any Drive share link and get the two URLs Google never shows you: a direct download that skips the preview page, and a hotlinkable image URL you can drop into an img tag, an email, or a CSS background.

This tool rewrites a Drive URL. Just want a short, branded link to a file? Use the Google Drive Link Shortener. Not sure where a link really goes? Try the Link Inspector.

Every shape works: /file/d/ID/view, /open?id=, /uc?id=, a docs.google.com editor URL, or the file ID on its own.

Only affects the image link. Drive scales the height to keep the aspect ratio and will not upscale past the preview it stored.

Want to know how many people downloaded it?

A raw Drive URL reports nothing back. Wrap it in a Flyn short link and see total clicks free on every link. Full country, device, and referrer breakdowns come with Pro.

Shorten for free

How to Make a Drive Direct Link in 3 Steps

Step 1: Paste any Google Drive link, Google Drive Direct Link Generator screenshot
1

Paste any Google Drive link

Paste the share link exactly as Drive hands it to you. Every real shape is accepted: /file/d/FILE_ID/view?usp=sharing, /open?id=, /uc?id=, the account-scoped /drive/u/0/ variants, a docs.google.com editor URL, and the bare file ID on its own. Pick a width for the image link while you are here, or leave it at 1000 pixels.

Step 2: Copy the two links Drive never shows you, Google Drive Direct Link Generator screenshot
2

Copy the two links Drive never shows you

You get a direct download URL on drive.usercontent.google.com, which serves the file bytes with no preview page in between, and a thumbnail URL that responds as a real image so it works in an img tag, an email body, or a CSS background. The tool then loads that thumbnail once and tells you whether Drive actually served it, which is the fastest way to find out that a file is still private.

Step 3: Set General access, then shorten and track it, Google Drive Direct Link Generator screenshot
3

Set General access, then shorten and track it

Open Share in Drive and set General access to Anyone with the link, or the direct URL will keep answering with a sign-in page. Then shorten the direct link with Flyn: you get a clean address you can print, a count of how many people really downloaded the file, and an editable destination so a re-upload under a new file ID takes one edit instead of a hunt.

What a Google Drive Direct Link Actually Is

The link Drive gives you when you click Share is not a link to your file. It is a link to a web page about your file: drive.google.com/file/d/FILE_ID/view?usp=sharing returns HTML, with a toolbar, a preview pane, and a download button that a human has to press. That is perfectly fine when you are sending a document to a colleague, and completely wrong when you are wiring up a Download button, an installer link, or an image in an email. Those need a URL that responds with the file itself.

That URL exists, and it lives on a different hostname: drive.usercontent.google.com. Google splits the interface (drive.google.com) from the content delivery (drive.usercontent.google.com), and downloads moved onto the second host in late 2023. The name appears nowhere in the Drive interface, in the Share dialog, or in the right-click menu, so there is no way to copy it and no way to guess it. Add "/download?id=FILE_ID&export=download" and you have the address that serves the bytes.

The second obstacle is where the ID sits. In most URLs the identifier is the last segment, so you can eyeball it at the end of the address. Drive puts it in the middle: /file/d/1A2b3C4d5E6f7G8h9I0jKlMnOpQrStUv/view, with a /view (or /edit, or /preview) trailing after it, and sometimes a /drive/u/0/ prefix from a multi-account session in front. That is why hand-editing a Drive URL so reliably produces something broken, and why this generator parses the ID out rather than asking you to find it.

The third URL is the one most people are actually looking for when they want to "hotlink" a Drive image: drive.google.com/thumbnail?id=FILE_ID&sz=w1000. Unlike the download URL, it responds with an image content type, so browsers and mail clients paint it instead of saving it. It is a preview Google generated, not your original file, which is both its strength (small, fast, always a JPEG) and its limit (re-encoded, no transparency, useless for anything that is not visual).

Every Google Drive URL Shape, and What It Really Returns

Eight addresses that all look like they point at the same file. Only three of them ever hand you one.

URL shapeYou getWhat Google returnsUse it for
drive.google.com/file/d/ID/viewPreviewAn HTML preview page with the Drive toolbar. The file itself is never at this address.Sending someone into Drive so they click Download themselves.
drive.google.com/open?id=IDPreviewThe legacy share form. It redirects to the /file/d/ID/view preview page.Nothing new. Treat it as an older way of writing the preview link.
drive.google.com/uc?export=download&id=IDRedirectThe classic direct-download trick. It now answers with a redirect to drive.usercontent.google.com.Still works in a browser, but you are depending on a hop Google controls.
drive.usercontent.google.com/download?id=ID&export=downloadFileThe endpoint that serves the actual bytes today. This is what the generator outputs.Download buttons, curl and wget, installers, sample data, press kits.
drive.google.com/thumbnail?id=ID&sz=w1000ImageA re-encoded JPEG preview at the width you ask for, sent with an image content type.img tags, email bodies, forum posts, CSS background-image.
drive.google.com/uc?export=view&id=IDUnreliableThe old hotlink-an-image trick. Now unreliable: it often answers with HTML or a redirect rather than an image.Nothing. Use the thumbnail endpoint instead.
docs.google.com/document/d/ID/export?format=pdfFileA copy of a native Google Doc, built on request in the format you name.Downloading a Doc, Sheet, or Slides deck as pdf, docx, xlsx, or pptx.
drive.google.com/drive/folders/IDPreviewA folder listing rendered as a web page. Drive has no single-URL download for a folder.Nothing. Zip the files, upload the zip, and link that.

Set Sharing to Anyone With the Link First

No URL shape can make a private file public. A direct link is only an address; the permission on the file decides whether that address returns anything. This is the single most common reason a generated Drive link "does not work", and it is worth two minutes before you publish anything.

  1. 1Open the file in Google Drive, right-click it, and choose Share.
  2. 2Look at the General access row at the bottom of the dialog. If it says Restricted, only the people listed above it can open the file, and your direct link will fail for everyone else.
  3. 3Change Restricted to "Anyone with the link".
  4. 4Leave the role on Viewer. Commenter and Editor also allow downloads, but Viewer is the only one that does not hand write access to strangers.
  5. 5Open the gear icon in the same dialog and check that "Viewers and commenters can see the option to download, print, and copy" is on. When that box is unticked, Drive blocks the direct download even though the file is public.
  6. 6Click Done, copy the link, and paste it into the generator above.

What makes this hard to debug is that Drive does not fail loudly. A restricted file does not return 403 or a machine-readable error. It returns Google's ordinary sign-in page, with a 200 status and an HTML content type. So the browser shows a login screen, an img tag shows a broken image icon, and curl reports a successful download of a few kilobytes that turn out to be a web page. That is exactly why the generator loads the thumbnail once after you click Generate: if Drive hands back a real image, the file is genuinely reachable without a login, and if it does not, you know before you publish rather than after.

Two things this checklist cannot fix. If the file lives in a Google Workspace account, an administrator can disable external sharing entirely, in which case "Anyone with the link" is not offered at all and no URL will make the file public. And "Anyone with the link" means exactly that: consumer Drive has no per-link password and no expiry date, so treat a public file as published. If you need the link itself to be revocable or password-gated, put a password-protected short link in front of it.

The sz Parameter: Sizing the Hotlinked Image

The thumbnail endpoint takes one meaningful parameter, sz, and it decides how big a preview Google builds for you. The w in sz=w1000 stands for width in pixels, so that value asks for an image roughly 1000 across with the height scaled to match. Ask for less when the image is going into an email or a table row, because you are paying for those pixels in load time on someone else's connection.

ValueWhat you get
sz=w1000About 1000 pixels wide, height scaled to keep the aspect ratio. The default here.
sz=w320A small thumbnail for list rows, avatars, and email, where weight matters more than detail.
sz=h600Constrains the height instead: about 600 pixels tall, with the width scaled to match.
sz=w800-h600A bounding box. The image is fitted inside 800 by 600 rather than cropped to it.

Two behaviours worth knowing. Google serves the closest preview it has already stored and does not upscale, so asking for sz=w4000 on a 900-pixel image gives you a 900-pixel image, not a blurry giant one. And the response is a JPEG regardless of what you uploaded: a PNG with a transparent background comes back flattened onto white. When transparency or exact pixels matter, the thumbnail endpoint is the wrong tool and the download URL is the right one.

Where Drive Direct Links Break

Large files hit the virus-scan interstitial. Google scans what it serves, and it cannot scan very large files, so past roughly 100 MB the download endpoint answers with a page saying it could not scan the file, plus a confirm button. A person clicks through without thinking about it. A script does not: curl and wget save that HTML page under your intended filename, which is why an automated Drive download so often produces an archive that will not open. If machines need to fetch the file, host it somewhere that just serves bytes.

The thumbnail endpoint is for images, not files. It hands back a preview Google generated. For a photo or a PDF that is a genuine picture of your content. For a zip, an installer, a font, or most video, there is nothing visual to generate, so you get a generic icon or nothing at all. Never point a download button at the thumbnail URL, and never assume it will serve your original bytes.

Drive counts downloads and will cut you off. Every file has a per-file download quota. A link that gets picked up by a large newsletter or a busy subreddit can trip it, after which Google answers every request with a message saying the file cannot be viewed or downloaded right now, usually until the counter resets the next day. Nothing in the URL causes this and nothing in the URL fixes it. Drive is storage with sharing bolted on, not a content delivery network.

The ID is the file, and files move. Trash the file, flip sharing back to Restricted, or replace it with a fresh upload and the ID changes or stops resolving. Everything you already published points at the old one. This is the single best argument for putting a short link in front of a Drive URL rather than pasting the Drive URL itself: a short link whose destination you can edit survives a re-upload, and the printed flyer, the old newsletter, and the forum post from last year all keep working.

Where a Direct Link Earns Its Keep

Anywhere a person or a program expects a URL to answer with a file rather than a web page.

Download buttons that actually download

Press kits, brand assets, menus, and PDFs on a landing page. A button pointed at the preview page sends people to Drive; a button pointed at the direct URL starts the download.

Images where you cannot upload

Forum signatures, marketplace listings, HTML email, and internal wikis that accept an image URL but give you nowhere to host one. The thumbnail URL fills that gap.

Sample data and course files

A dataset, a starter project, or a worksheet that students and readers need to fetch with one click, or with curl inside a lesson, without a Drive account.

Docs and knowledge bases

Embed a diagram or screenshot that already lives in the team Drive without moving it into a CMS first, and keep one copy as the source of truth.

Drive Links + Flyn: An Address You Control

The generator is free forever. Add Flyn when a 90-character Google URL is not something you want to print, say out loud, or be stuck with.

Editable destinations

Re-upload the file and the ID changes. Re-point the short link once and every place you posted it keeps working.

Download counts

A raw Drive URL tells you nothing. Total clicks are free on every link; country, device, and referrer come with Pro.

QR codes included

Put the file behind a QR code on a flyer, a poster, or a slide. Free on every link, and it survives a re-upload.

A free plan that lasts

25 links a month with total click counts and QR codes. No trial countdown. Custom domains come with Pro.

Frequently Asked Questions

How do I turn a Google Drive share link into a direct download link?
Paste the share link into the generator and click Generate. We pull the file ID out of the middle of the URL and rebuild it as https://drive.usercontent.google.com/download?id=FILE_ID&export=download, which is the address that actually serves the bytes. The file must have General access set to "Anyone with the link" first, otherwise that URL answers with a Google sign-in page instead of the file.
What is drive.usercontent.google.com, and why is it not anywhere in Drive?
It is the host Google serves file content from, separate from drive.google.com, which serves the interface. Google moved downloads onto it in late 2023, and the Drive interface has never linked to it, so you cannot copy the URL from anywhere in the product. That is the whole reason a generator exists: the working host is a name you would have to already know, and the file ID sits in the middle of the path rather than at the end where you could just append something.
Why does my direct link show a Google sign-in page instead of the file?
Because the file is still private. Drive does not return a 403 or a clean error for a restricted file, it returns its normal sign-in page with a 200 status and an HTML content type. In a browser that reads as a login screen, in an image tag it reads as a broken image, and in a script it reads as a successful download of a few kilobytes of HTML. Open Share, set General access to "Anyone with the link", and the same URL starts working with no other change.
How do I embed a Google Drive image in HTML or in an email?
Use the thumbnail URL this tool generates: https://drive.google.com/thumbnail?id=FILE_ID&sz=w1000. It responds with a real image content type, so it renders inside an img tag, an email body, a forum post, and a CSS background-image rule. The download URL will not work for this, because browsers and mail clients treat a download response as a file to save rather than an image to paint.
What does the sz parameter do, and what values can I use?
sz sets the size of the preview Drive generates. The w form sets width, so sz=w1000 asks for roughly 1000 pixels across with the height scaled to keep the aspect ratio. The h form sets height instead, and combining them as sz=w800-h600 gives a bounding box that the image is fitted inside rather than cropped to. Google serves the closest size it has stored and will not upscale, so asking for a size larger than the original does not create detail that was never there.
Does the old drive.google.com/uc?export=download link still work?
It still resolves, but it is no longer the endpoint that serves the file. Requesting it now produces a redirect to drive.usercontent.google.com, which is where the bytes actually come from. Browsers follow that redirect silently, so people rarely notice, but scripts that do not follow redirects break on it. Pointing straight at the usercontent URL removes a hop you have no control over.
Why do I see a page saying Google Drive cannot scan this file for viruses?
Google virus-scans the files it serves, and it cannot scan very large ones, so above roughly 100 MB the download endpoint answers with an interstitial page and a confirm button instead of the file. A person just clicks through it. A script does not: curl and wget quietly save that HTML page under your intended filename, which is the classic reason an automated Drive download produces a corrupt archive. If you need reliable machine downloads of large files, put them on real object storage rather than Drive.
Can I create a direct download link for a Google Drive folder?
No. A folder is a listing that Drive renders as a web page, not a single file, so there is no URL that returns it as one download. Drive can zip a folder for you inside the interface, but that zip is built on demand for your session and has no stable link. If you need one link for many files, zip them yourself, upload the zip as a single file, and generate a direct link for that.
Do these links work for Google Docs, Sheets, and Slides?
Not with the download endpoint, because native Google files are not stored as files on disk; Google builds a copy on request. Paste a docs.google.com editor URL here and the tool detects the type and hands you the export endpoint instead, for example docs.google.com/document/d/FILE_ID/export?format=pdf. Swap the format token for docx, odt, or txt on a Doc, xlsx or csv on a Sheet, and pptx or pdf on a Slides deck. The thumbnail URL still works on all three and returns a preview of the first page.
Can I host my website images on Google Drive?
You can make it work for a handful of images, and people do, but Drive is not built for it. Google shut down proper web hosting from Drive in 2016, the thumbnail endpoint hands back a re-encoded JPEG rather than your original file, there is no cache control you can set, and heavy traffic can trip a per-file download quota. It is a reasonable fix for a forum signature or an email banner, and a bad foundation for a site.
Why did my Drive image or download stop working after a traffic spike?
Drive enforces a per-file download quota. When a file is fetched far more than usual in a short window, Google starts answering every request with "Sorry, you cannot view or download this file at this time" until the counter resets, typically within a day. Nothing about your link is wrong and nothing you change in the URL fixes it. Copying the file creates a new ID with a fresh counter, which is a workaround rather than a solution: real traffic belongs on real hosting.
Is this tool free, and do you store the links I paste?
It is completely free with no sign-up and no usage cap. Everything happens in your browser: the file ID is extracted locally and the two URLs are assembled from it, and nothing about your file is sent to a Flyn server. Your recent file IDs are kept in your own browser localStorage so you can reuse them, and the Clear all history button removes them.

Ready to hand people the file, not the preview page?

Generate direct links for free, then shorten them with Flyn so you can count real downloads and re-point the link the day you re-upload the file. Analytics, QR codes, and editable destinations included.