Google Drive QR code generator: share a file, Doc or folder
Most Drive codes that fail have nothing wrong with the code: the file is still restricted. Set the sharing first, then make the code from the link.
Updated
Colours, size and error correction
#0b1530#ffffffHigher levels survive scratches and logos but make the code denser. M suits most uses.
Logo and frame
Error correction switches to H when you add a logo. Sizes from 10% to 30% are allowed; the scan test below tells you if the logo is too big.
Fill in the fields and your code appears here.
What the code contains
How to use it
- Open the sharing settings
Select the file, Doc, Sheet or folder in Drive and click Share.
- Allow anyone with the link
Under General access, choose Anyone with the link and set the role to Viewer. Commenter and Editor let people comment on or change the file.
- Copy the link
Click Copy link, then Done. Paste the link into the Link field above.
- Test signed out
Scan the code on a phone in a private browser window, not signed in to your account. If it asks for access, the sharing is still restricted.
Which sharing setting should a QR code use?
A QR code goes to anyone who sees it, so treat the file as public. Viewer is the right role for almost every printed code. Google Drive lets viewers and commenters download, print and copy the file by default; the owner can turn that off in the sharing settings if it should only be read online. Never give Editor access through a printed code: editors can change the file and its sharing.
| Role | What people who scan can do | Use for |
|---|---|---|
| Viewer | Open, and by default download or print | Menus, brochures, handouts, price lists |
| Commenter | Open and add comments | Feedback on a draft from a known group |
| Editor | Change the file and its sharing | Not for printed codes |
What if the file changes?
Edits to the same Google Doc or Sheet show up for everyone who scans, so a living document needs no new code. Uploading a new PDF to Drive, though, creates a new file with a new link, and the printed code keeps opening the old one. A dynamic code from BN Shortener holds a short b1.lc address you can repoint to the new file, and it counts every scan. BN Shortener file links are another option: upload the file itself and share it through a short link.
Drive links open in the Drive app or the browser and can be slow for large files on mobile data. For a one-page flyer or menu, a PDF or a mobile web page is quicker to read. See how to make a QR code for a PDF.
- Name the file clearly: people see the name when it opens.
- Keep personal data out of any file shared with 'Anyone with the link'.
- Check the sharing again after moving the file to a shared drive.
Sources
- Share files from Google Drive, Google Drive Help, checked 2026-10-24
More free tools
Questions
Why does my Google Drive QR code say I need access?
The file is still restricted. Open Share, set General access to Anyone with the link, and test again on a phone that is not signed in.
Can people download the file from the QR code?
By default, viewers and commenters can download, print and copy it. The owner can turn that off in the file's sharing settings.
Can I make a QR code for a whole Drive folder?
Yes. Share the folder with Anyone with the link as Viewer, copy its link and make the code. Everyone who scans sees every file in the folder.
Will the code still work if I replace the file?
Not if the new file has a new link. Edit the same Doc or Sheet instead, or use a dynamic code you can repoint to the new file.
Is a Google Drive QR code private?
No. Anyone who sees the code, or a photo of it, can open the file. Only share files that are fine to be public.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.