How to Create a QR Code in Google Drive
In this article
You cannot generate a QR code directly inside Google Drive. Google Drive has no built-in QR code creator, so the practical method is to store a file in Drive, copy its shareable link, and paste that link into a QR code generator (many are free and browser-based). The QR code then points to the Drive file, and anyone who scans it can open the file if sharing permissions allow it. This guide walks through that process step by step, plus the common mistakes and fixes.
What You'll Need
- A Google account with access to Google Drive (the free tier is fine).
- The file you want to share (PDF, image, document, etc.) already uploaded to Drive, or ready to upload.
- A web browser on a computer or phone.
- A QR code generator website or app that accepts a URL. Most are free and require no account.
Step-by-Step
- Upload the file to Google Drive. Open drive.google.com and sign in. Click New > File upload (or Folder upload) and select the file from your computer. On mobile, tap the + button and choose Upload. Wait for the upload to finish.
- Set sharing permissions. Right-click the file (or tap the three-dot menu) and choose Share. Under General access, click the dropdown and select Anyone with the link. Choose Viewer if you only want people to read or download it; choose Editor only if you trust them to change it. Click Copy link and then Done. Note: if you leave it as Restricted, only people you explicitly invite can open it, and a QR code will not bypass that.
- Copy the shareable link. The link looks like
https://drive.google.com/file/d/FILE_ID/view?usp=sharing. Make sure you copy the full link, not just the file ID. You can also get it from the address bar when the file is open, but the Share dialog is more reliable. - Open a QR code generator. In a new tab, go to a reputable free QR code site (for example, qr-code-generator.com, goqr.me, or the built-in generator in some browsers). Avoid sites that ask for unnecessary permissions or payment before showing the code.
- Paste the link and generate. Choose the URL or Link type, paste the Drive link into the field, and click Generate. The QR code appears instantly.
- Download the QR code image. Click Download and save it as PNG or SVG. PNG is fine for printing on flyers; SVG scales without blur for large posters.
- Test the QR code. Open your phone camera or a QR scanner app and scan the code from your screen or a printed copy. It should open the Drive file in a browser. If it asks you to sign in, the sharing is still restricted — go back to step 2.
- Store the QR code (optional). You can upload the QR image back into Google Drive for safekeeping, or embed it in a document. Remember that the QR code only contains the link; if you later change the file's sharing settings, the code still points to the same URL but access may be denied.
Common Mistakes
- Leaving sharing as “Restricted”. The most common reason a scanned code fails. The file must be set to “Anyone with the link” for public scanning.
- Copying the wrong link. Using the browser address bar while signed in can include your account parameters. Always use the Copy link button in the Share dialog.
- Sharing an entire folder instead of a file. Folder links work, but the recipient sees a list of files. For a single document, share the file itself.
- Using a low-resolution QR image. A small PNG blown up for print becomes unscannable. Download the largest size offered or use SVG.
- Forgetting to test on a different device. Your phone may be signed into the same Google account, so it opens the file even when sharing is restricted. Test with a device signed out or in a private browser window.
- Assuming the QR code updates automatically. Static QR codes encode the exact URL. If you replace the file or change its link, you must generate a new QR code.
Tips
- Use a URL shortener (like bit.ly) before generating the QR code if the Drive link is very long. Shorter URLs produce simpler QR patterns that scan more reliably from a distance.
- Add a short caption under the printed QR code, e.g., “Scan to view the PDF”. People are more likely to scan when they know what to expect.
- For documents you update often, consider sharing a Google Doc or Sheet instead of a PDF. The link stays the same, and edits appear immediately.
- Keep a copy of the QR image in the same Drive folder as the file so you can find it later.
- If you need many QR codes for different files, name them clearly (e.g., “menu-qr.png”) to avoid mixing them up.
Troubleshooting
The QR code scans but shows “You need access”. The file is still restricted. Open the file's Share settings and change General access to Anyone with the link.
The QR code does not scan at all. The image may be too small or low-contrast. Regenerate and download a larger PNG or SVG, and ensure the printed code has a white margin (quiet zone) around it.
The link opens a preview but not the download. That is normal for Drive. The recipient can download from the preview page. If you need a direct download, use a different file host, as Drive does not offer a permanent direct-download link for all file types.
You changed the file and the old QR code no longer works. If you replaced the file with a new upload, the link changes. Generate a new QR code from the new link. If you edited the same file in place, the link stays the same and the QR code still works.
The QR generator site asks for sign-up or payment. Close it and use a different free generator. Many no-account options exist; you never need to pay to create a basic URL QR code.
Frequently Asked Questions
Can I create a QR code directly in Google Drive?
No. Google Drive does not have a built-in QR code generator. You must use an external QR code tool and paste the Drive share link into it.
Do I need a paid QR code service?
No. Free generators are sufficient for static QR codes that point to a Drive link. Paid services mainly offer tracking and editable codes, which are not necessary for simple sharing.
Will the QR code work if I move the file to another folder?
Yes, as long as the file's sharing settings remain “Anyone with the link”. Moving a file within Drive does not change its shareable link.
Can I password-protect the QR code?
Not directly. The QR code only encodes a URL. To restrict access, keep the Drive file restricted and share it only with specific people, but then the QR code will not work for the general public.
Does the QR code expire?
Static QR codes do not expire. They will work as long as the Drive link is active and sharing permissions allow access.
Can I use the QR code on a website?
Yes. You can embed the QR image on a webpage, but for online use a direct link is usually more practical. QR codes are best for print or offline materials.