Free · No signup · Runs in your browser

Google Drive direct link generator

Turn a Drive share link into a direct download link that skips the preview page, plus image and video embeds, and PDF, Word, Excel, CSV and PowerPoint exports for Google Docs, Sheets and Slides.

01 How to use it

4 steps, no signup

  1. 01

    Share the file publicly

    In Google Drive, click Share → General access → Anyone with the link, then Copy link.

  2. 02

    Paste the share link

    Paste a Drive file link, or a Google Docs, Sheets or Slides link. Several links, one per line, also work.

  3. 03

    Pick the link type

    Direct download, image embed, video embed, or for Google files, an export to PDF, Word, Excel, CSV or PowerPoint.

  4. 04

    Copy and use it

    Copy the generated link into your website, email, app or download button and test it in a private window.

What this Google Drive direct link generator does

A normal Google Drive share link opens a preview page. That's fine for sharing with a person, but useless for a download button, an <img> tag, an app or a script that needs the file itself. The Google Drive direct link generator rewrites the share link into the format you need: a link that starts the download straight away, an address that works as an image source, a video embed, or an export of a Google Doc, Sheet or Slides deck as PDF, Word, Excel, CSV or PowerPoint.

Short answer: to make a Google Drive direct download link, share the file as "Anyone with the link", copy the share link, and swap /file/d/FILE_ID/view for uc?export=download&id=FILE_ID. Paste the link above and the tool does that swap for you, plus the embed and export versions, without sending your link anywhere.

Link formats it creates

You needGenerated linkWorks for
Direct downloaddrive.google.com/uc?export=download&id=IDAny uploaded file
Image in a web pagelh3.googleusercontent.com/d/IDJPG, PNG, GIF, WebP
Video playerdrive.google.com/file/d/ID/previewVideos (in an iframe)
Doc as PDF / Word / plain textdocs.google.com/document/d/ID/export?format=pdfGoogle Docs
Sheet as Excel / CSVdocs.google.com/spreadsheets/d/ID/export?format=xlsxGoogle Sheets
Slides as PDF / PowerPointdocs.google.com/presentation/d/ID/export/pdfGoogle Slides

The ID is the long code in your share link, between /d/ and the next slash. The tool finds it in every common link format, including open?id= links.

Worked example

Say you copy this share link from Drive:

https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view?usp=sharing

The tool reads the ID 1AbCdEfGhIjKlMnOpQrStUvWxYz012345 and, with Direct download selected, gives you:

https://drive.google.com/uc?export=download&id=1AbCdEfGhIjKlMnOpQrStUvWxYz012345

Switch to Image embed and the same ID becomes https://lh3.googleusercontent.com/d/1AbC…, with a ready-made <img> tag in the embed box. Paste a Google Sheets link that ends in #gid=123456 instead, and the CSV option keeps that tab: …/export?format=csv&gid=123456. The buttons for link types that don't fit your file are greyed out, so you can't build a PDF export for an uploaded ZIP by mistake.

Converting many links at once

Paste one link per line. Each line gets its own result with Test and Copy buttons, and lines the tool can't read are flagged in place rather than silently dropped. When you pick Image or Video embed, the embed box collects the code for every valid link, one per line, ready to paste into a page. Mixing Docs and uploaded files in one batch works, but each link type only applies to the files it fits.

Before you share: three checks

  1. Sharing set to "Anyone with the link". Otherwise visitors hit a sign-in page.
  2. Test in a private window, where you're not signed in to Google. That's what your visitors see.
  3. Mind the file size. Large files show Google's virus-scan warning before downloading.

Limits worth knowing

  • Large files get an interstitial (the size cut-off isn't clearly published): "Google Drive can't scan this file for viruses". Visitors must click "Download anyway".
  • Download quotas. Popular public files can temporarily hit "Download quota exceeded". Google doesn't publish the limit.
  • Unofficial formats. The image-embed address isn't documented by Google and has changed before. For anything important, host the file yourself or use a CDN.
  • Workspace restrictions. Some organisations block external sharing; the link won't work outside the domain.

Troubleshooting

  • "Couldn't find a file ID." Folder links (/drive/folders/…) can't be direct-downloaded. Link to a specific file.
  • The download is an HTML page. That's the virus-scan or sign-in page. Check sharing and file size.
  • Image embed shows a broken image. The file isn't public, or it isn't an image.
  • CSV exports the wrong tab. Copy the Sheets link while viewing the tab you want, so it includes gid=.

Privacy

The tool runs entirely in your browser. It reads the file ID from your link and builds the new address on the page. Nothing is sent to a server.

Related tools

If the file is a video too big to stream well from a direct link, shrink it first with the video compressor, or extract the audio with MP4 to MP3. Sharing the link in a campaign? Tag it with the UTM builder so the clicks show up in analytics.

Last checked and updated: . Everything on this page runs in your browser; nothing you enter is sent anywhere.

FAQ

Frequently asked questions

How do I make a Google Drive direct download link?
Share the file as "Anyone with the link", copy the share link, and paste it above. The tool turns drive.google.com/file/d/FILE_ID/view into drive.google.com/uc?export=download&id=FILE_ID, which starts the download instead of opening the preview page.
Why does my direct link open a "can't scan for viruses" page?
Google scans files before download, and files above a size limit can't be scanned (Google's help page doesn't give one fixed number here, and user reports vary), so Google shows a warning page with a "Download anyway" button. No link format bypasses that reliably. For large files, use a host built for downloads.
Why does the link say "access denied" or ask me to sign in?
The file isn't shared publicly. Open Share in Drive and set General access to Anyone with the link. Files in some Workspace accounts can't be shared outside the organisation; that's an admin setting.
How do I embed a Google Drive image on a website?
Choose Image embed. It produces a lh3.googleusercontent.com/d/FILE_ID address that works in an <img> tag, unlike the share link. It's an unofficial pattern Google can change, so for important sites host images yourself.
How do I embed a Google Drive video?
Choose Video embed. It gives a /preview link and the iframe code to paste into your page. The video plays in Google's player.
Can I get a PDF link for a Google Doc?
Yes. Paste the Docs link and choose PDF. The tool builds docs.google.com/document/d/ID/export?format=pdf, which downloads the latest version of the document as a PDF every time.
Can I export a Google Sheet as CSV or Excel?
Yes. Paste the Sheets link and choose CSV or XLSX. For CSV, the tool keeps the tab (gid) from your link, so you export the sheet you were looking at.
Does the link update when I edit the file?
For Docs, Sheets and Slides exports, yes: each click exports the current version. For uploaded files, replacing the file with Drive's "Manage versions" keeps the same ID and link.
Is there a download limit?
Google limits how often a publicly shared file can be downloaded in a short period. If many people download it, they may see "Download quota exceeded" for a while. Google doesn't publish the threshold.
Is my link sent anywhere?
No. The file ID is read from your link in your browser and the new link is built on the page. Nothing is uploaded.