A Google Docs QR code stores the document's share link, so a scan opens the file on the phone. The code only carries the address. Google's sharing setting decides whether a stranger can read the document, so that setting needs checking before you print.
Paste the link above and the generator encodes exactly what you paste. It runs in your browser, so the link is not sent to us.
How do you make a QR code for a Google Doc?
- Open the document and click Share.
- Under General access, choose Anyone with the link and set the role to Viewer.
- Click Copy link and paste it into the Google Doc Link field.
- Download the code, then scan it from a phone that is not signed in to your Google account.
https://docs.google.com/document/d/FILE_ID/edit?usp=sharing
Which sharing setting should you choose?
Google offers three levels of general access, and the link role applies to everyone who scans the code.
| Setting | What a scanner gets | Use it for |
|---|---|---|
| Anyone with the link, Viewer | Reads the document without a Google account | Almost every printed code |
| Anyone with the link, Commenter | Reads, and can leave comments and suggestions | Group review of a draft |
| Anyone with the link, Editor | Can change the document, and by default change who has access | Avoid this on anything printed |
| Your organization | Works for colleagues in your work or school account | Internal notices and staff handbooks |
| Restricted | Only people you added can open it | A named group who are all signed in |
Work and school administrators can restrict external link sharing. If Anyone with the link is missing, ask your admin, because no QR code can get around that policy.
Does a link ending in /edit let people edit?
No. The role decides that, and the address looks the same either way. A Viewer who opens an /edit link cannot change anything, so you can use the link Google gives you as it is. The reverse also holds: rewriting the address will not protect a document that is shared with the Editor role.
What does someone see after scanning?
We tested a public document in a Chromium browser using Android phone emulation, signed out. The /edit address redirected to a simplified read-only page at /mobilebasic, with a prompt to use the Docs app. The text reflowed to fit the screen. Someone with the app installed may be taken there instead, so scan with at least one real iPhone and one Android phone before a big print run.
Do you need a new code after editing the document?
No. Edits made to the same file appear at the same address, so a typo fix or a new paragraph needs no reprint. You do need a new code if you replace the document with a different file, because each file has its own ID. Setting the file back to Restricted or deleting it breaks the printed code for scanners.
Can a code open a specific part of the document?
Yes, for documents that use tabs. Google's Tab options menu has a Copy link command for each tab, and that link goes to the tab. Sharing settings still apply to the whole file, so a tab link does not hide the other tabs. The extra characters also make the code denser.
Can each person get their own copy?
Teachers often swap the end of the address for /copy, which opens a Make a copy screen so students fill in their own version. Google's help pages do not document this, so it could change. In our signed-out test on a Google file, the address went to a Google sign-in page, so it suits students who already use school accounts and is a poor fit for a public poster.
When is Publish to web a better choice?
Use File, Share, Publish to web when you want a plain page instead of the Docs interface. You get a separate address, and Google updates the published version automatically, which can take a few minutes. Your account settings decide who can see it, and some administrators turn the feature off. Published addresses are often longer than share links, so the code can be denser. To remove the page, stop publishing it.
How large should you print it?
Google Docs links are long for a QR code. A typical share link is about 96 characters, which needs a 49 by 49 module code at our default error correction level (Q). Removing ?usp=sharing leaves about 84 characters and a 45 by 45 code, and the link still opened in our test. That helps on small labels. Check the final size against the print size guide, and leave out decorative extras if the code has to be small.
Is it safe for private documents?
Treat the code as a public link. Anyone who scans it, or photographs it, can reach the document if the setting is Anyone with the link, and they do not have to sign in. Google shows people who are not signed in as anonymous animals, so you will not know who they are. Keep personal details and anything confidential out of documents that sit behind a printed code.
Can you count scans or change the document later?
Not with a static code. It holds the Google address directly, so nothing records a scan and the destination is fixed. A dynamic URL QR code forwards through a short link, which gives you scan counts and lets you point the printed code at a different document later.
Where does a Google Docs QR code work well?
- Class handouts: reading lists and instructions that change during term. See QR codes for education.
- Event programmes: a schedule you can correct on the day. See QR codes for events.
- Noticeboards: rotas, minutes and house rules that are updated often.
For a fixed version that should look the same everywhere, a PDF QR code suits better. For spreadsheets, use the Google Sheets QR code generator, and for other Google services see the Google QR code guide.
How do you test it?
Scan the exported code on mobile data, signed out of Google, and confirm the document opens without a request-access page. Then try to edit it, which should fail. Run the file through the QR validator before sending it to print.