1. Home
  2. Blog
  3. How to Create a Google Drive Direct Download Link (Step by Step)

How to Create a Google Drive Direct Download Link (Step by Step)

Turn a Google Drive share link into a direct download link, embed Drive images on your website, and export Google Docs and Sheets as PDF or Excel.

How to Create a Google Drive Direct Download Link (Step by Step)

Google Drive is one of the easiest ways to host files for free, but its share links have a catch: they open a preview page instead of downloading the file. For a download button on your website, an app update, a free e-book or an email attachment link, you usually want the file to start downloading immediately. This tutorial shows how to create a direct download link in seconds.

Step 1: Share the file publicly

A direct link only works if people are allowed to see the file.

  1. In Google Drive, right-click the file and choose Share.
  2. Under General access, change "Restricted" to Anyone with the link.
  3. Keep the role as Viewer.
  4. Click Copy link.

The link will look like this:

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

The long code between /d/ and /view is the file ID.

Step 2: Convert it to a direct download link

You could edit the URL by hand, but a generator avoids mistakes and handles every link format automatically.

Google Drive Direct Link GeneratorTurn Google Drive share links into direct download and embed links.

Paste your link and you will get:

  • Direct download link – https://drive.google.com/uc?export=download&id=FILE_ID, which starts the download immediately.
  • Image embed link – to show a Drive image on a web page with an <img> tag.
  • Preview / video player link and iframe code – to embed videos, audio or PDFs.

You can paste many links at once, one per line, and copy all the direct links together.

Google Docs, Sheets and Slides

Google's own document formats do not have a single "file" to download, but they can be exported. The generator detects these links and creates export URLs:

Link type Export options
Google Docs PDF, Word (DOCX), TXT
Google Sheets Excel (XLSX), CSV, PDF
Google Slides PowerPoint (PPTX), PDF

This is perfect for sharing a price list as an always up-to-date PDF, or letting people download a template spreadsheet.

Downloading a file someone sent you

If you just want to download a file from a Drive link someone shared, without dealing with the preview page, use the downloader:

Google Drive File DownloaderPaste a Google Drive link and download the file directly.

Common problems and fixes

"You need access" or "Access denied" – the file is not shared publicly. Go back to Step 1.

"Google Drive can't scan this file for viruses" – Google shows this warning for files larger than about 100 MB. Visitors can click Download anyway. There is no way around this for large files; consider a different host for very large downloads.

"Download quota exceeded" – if a file is downloaded many times in a short period, Google temporarily limits it. Wait 24 hours, or make a copy of the file (which has a fresh quota) and share that.

Folder links do not work – Google does not provide direct links for folders. Zip the folder, upload the ZIP and share that file instead.

Using direct links on your website

A simple download button looks like this:

<a href="https://drive.google.com/uc?export=download&id=FILE_ID" class="button">Download the PDF</a>

And an image hosted on Drive:

<img src="https://lh3.googleusercontent.com/d/FILE_ID" alt="Description">

Other cloud services

Dropbox and OneDrive have the same "preview page" problem. For Dropbox, changing dl=0 to dl=1 forces a download:

Dropbox Direct Link GeneratorConvert Dropbox share links into direct download and raw links.

With a direct link you get the best of both worlds: free, reliable hosting on Google Drive and a smooth one-click download for your visitors.

Support GoToolzEnjoying GoToolz?All tools are free. If they saved you time, you can support the project with a coffee.Support on Ko-fi ☕