QRAnalytica

How Do I Make a QR Code for a Google Drive File?

Set the file to Anyone with the link, copy its Share link, and turn it into a Google Drive file QR code. Test it signed out before you print.

Nookesh Karri · 8 min read
Dark cover card with the title 'How Do I Make a QR Code for a Google Drive File?' in white and a lime accent bar

To make a Google Drive file QR code, set the file’s General access to Anyone with the link, copy its share link, and paste that link into a QR generator or Chrome’s Create QR code option. Before you print it, scan the code on a phone that isn’t signed in to your Google account. Most broken Drive codes fail that test, not the scan itself.

What you need before you make the code

A QR code for a Drive file is just the file’s share link stored as a pattern, so it only works for people allowed to open that link. You need three things:

  • Edit access to the file. You can’t change sharing on a file you only view.
  • The right sharing setting. New files start as Restricted, which means a stranger who scans the code gets a sign-in wall.
  • Someone else’s phone. Yours is signed in to your account, so it hides permission problems.

The sharing setting decides whether a scan opens the Google Drive file or shows an error. Google’s sharing help page gives three General access options:

SettingWho can open it from the QR code
RestrictedOnly people you’ve added by name
Your organizationOnly people signed in to your work or school account
Anyone with the linkAnyone, without signing in to a Google account

To change it:

  1. Select the file in Drive and click Share.
  2. Under General access, click the down arrow.
  3. Choose Anyone with the link.
  4. Set the role to Viewer, unless you want strangers to comment or edit.

Viewer is the safe default for a printed code. A Viewer can’t change the file, add comments or share it. An Editor can edit, delete or move it, which you don’t want on a flyer stuck to a café wall.

The share link is the address the code will hold, so copy it from the same Share box. Click Copy link.

Open the link in a private browser window. If the file opens, the link is ready. If you see a You need access page, the sharing setting didn’t save.

Any URL-type generator can make a Google Drive file QR code; Drive itself has no QR button. Three routes:

  1. Chrome, free and static. Open the file link in Chrome. Chrome’s help page says that on a computer you select More, then Cast, save, and share, then Create QR code, then Download. On Android it’s More, Share, QR Code. On an iPhone it’s Share, Create a QR Code.
  2. Drive add-on. A Workspace Marketplace add-on adds QR creation to the Open with menu for selected files. Check what account permissions it asks for before you install it.
  3. QR generator. Paste the link as a URL code. Use this route for a dynamic code, a logo, or an SVG file for print.

Then follow the print checklist for size and contrast.

Step 4: Test it the way a stranger would

A signed-out test is the only check that proves the code works for other people. Scan the printed proof with a phone that has no Google account signed in, or open the link in a private window.

Google’s page on access to Google files says a You need access message means the viewer doesn’t have permission. On a work or school account, the cause may be policy: Google notes your admin may restrict external link sharing. If that’s you, share the file from a personal account instead. If the code won’t scan at all, that’s a different problem, covered in why a QR code isn’t scanning.

Which Drive changes break a Google Drive file QR code?

A static code breaks whenever the share link stops working, and some routine Drive actions do that:

What you do in DriveStatic codeDynamic code
Edit a Google Doc, Sheet or Slides fileStill works, same linkStill works
Replace a PDF or image with Manage versionsStill works, same linkStill works
Delete the file and upload a new copyBreaks, new linkFix it by pointing to the new link
Move the file to trashWorks for 30 daysWorks for 30 days, then repoint
Switch sharing back to RestrictedShows You need accessSame, the redirect can’t fix permissions

For uploaded files, Manage versions keeps the old link alive. A step-by-step guide to updating Drive files explains the method: right-click the file, choose Manage versions, then Upload new version. The URL stays the same, so every printed code opens the new version.

It works for PDFs, images, videos and Office files. It doesn’t work for native Google Docs files, as a second walkthrough points out. They don’t need it: edits to a Google Doc happen in place. That guide also says Drive keeps older versions for 30 days.

Say a restaurant prints a code to menu.pdf on table tents. When prices change, the owner uploads the new PDF through Manage versions instead of as a fresh upload, and the tents keep working. The same idea applies to a PDF menu QR code.

Deleting and trash

Deleting the file is what kills a static code. Google’s trash page says a trashed file stays there for 30 days, and if you own it, others can keep opening it until it’s deleted forever. Emptying the trash ends that early.

Static or dynamic for a Drive file?

A static code is fine when the file will live in one place forever. A dynamic code is worth it when the file might move, get rebuilt, or be swapped for a different one. The full trade-off is in dynamic vs static QR codes.

My take: for a one-off handout, Chrome’s free static code is enough, as long as you use Manage versions for updates. Anything printed in bulk, like signs, packaging or brochures, needs a dynamic code. Someone will delete the file or rebuild it in a new account, and you’ll want to change the destination after printing instead of reprinting.

QRAnalytica’s dynamic QR generator lets you change the target link at any time and download SVG, PNG or JPEG for print. The limitation: dynamic codes run through QRAnalytica’s redirect servers, so the code depends on that service. A redirect also can’t fix Drive permissions. If the file goes back to Restricted, people still hit the access page.

FAQ

Does Google Drive have a built-in QR code button?

Not in Drive itself. You copy the file’s share link and turn it into a code with Chrome’s Create QR code option, a QR generator, or a Workspace Marketplace add-on.

Why does my Google Drive QR code say You need access?

The file is still set to Restricted, or a work or school admin blocks link sharing outside the organization. Change General access to Anyone with the link, or share the file from a personal account.

Can I update the file without changing the QR code?

For PDFs, images and Office files, yes. Use Manage versions and Upload new version, and the link stays the same. Native Google Docs, Sheets and Slides don’t have that option, but edits to them keep the same link anyway.

What happens to the QR code if I delete the file?

A file in the trash stays there for 30 days, and others can keep opening it until it’s deleted forever. After that, a static code points at a file that no longer exists.

Do people need a Google account to open the file?

No, if the file is set to Anyone with the link. Google says anyone with the link can open it without signing in. Signed-out viewers show up as anonymous animals.

Sources

Track your dynamic campaigns. 7-day trial, no credit card.
Generate Dynamic QR