How to make a QR code for a PDF
A QR code can't hold a PDF file. Learn how to put the PDF online with a public link, turn that link into a QR code and keep it working when the file changes.
Add LearnQRCode as a preferred source on Google
Quick answer
- A QR code can't store a whole PDF. It stores a link to where the PDF lives online.
- Upload the PDF with a stable public link (your website, Google Drive, OneDrive, Dropbox), set anyone-with-the-link access, then make a QR code from that link.
- In Google Drive, Manage versions > Upload new version replaces the PDF without changing its link.
PDF QR code in 3 steps
- 1Upload the PDF, Anyone with the linkYour website, Google Drive, OneDrive or Dropbox
- 2Turn the link into a QR code
- 3Test on a signed-out phoneUpdate via Upload new version
In this guide
A “PDF QR code” never contains the PDF. It contains a link, and the PDF lives online. Get the hosting right and the rest takes a minute.
Why a QR code can’t contain the PDF
DENSO WAVE, the QR code’s inventor, lists the maximum as 2,953 bytes of binary data in the largest version (Version 40, level L): under 3 KB, in a dense 177 × 177 grid. A typical PDF is hundreds of kilobytes. So the code holds a short web address, and the phone opens the PDF from there.
Step 1: Put the PDF online with a public link
Pick somewhere you’ll keep for as long as the code is in use:
| Where | Good for | Watch out for |
|---|---|---|
| Your own website | Menus, brochures, anything long-lived | You must keep the same file name and address |
| Google Drive | Quick, free, easy to update | Sharing must be set to “Anyone with the link” |
| OneDrive or Dropbox | Teams already using them | Check the link is set to view-only and public |
| A QR service that hosts files | One-stop convenience | The code may stop working if the service or plan ends |
Google Drive example
- Upload the PDF to Google Drive.
- Right-click it and choose Share.
- Under General access, choose Anyone with the link (Google says anyone can then open it without signing in). Keep the role as Viewer.
- Click Copy link, then Done.
Work or school accounts may block sharing outside your organisation.
Step 2: Turn the link into a QR code
Any QR generator (for example QRJiffy’s PDF QR code generator, made by our publisher, DPR Software Labs) will do, because you’re only encoding a link. The free built-in route is Chrome:
- Paste the PDF link into Chrome and open it.
- Click More (three dots) > Cast, save, and share > Create QR code.
- Click Download.
See making a QR code for a link for phones and Edge. Shorter links make codes with fewer, larger squares; a short address like example.com/menu.pdf on your own site helps.
Step 3: Test on someone else’s phone
- Scan with a phone not signed in to your account.
- Check the PDF opens without a “request access” or sign-in page.
- Check it’s readable on a small screen. A tiny-print A3 poster is frustrating on a phone.
Won’t scan? See why a QR code isn’t scanning.
Updating the PDF without reprinting
The printed link can’t change, so update the file behind it.
- Google Drive: open the file > More > File information > Manage versions > Upload new version. The link stays the same. Google notes older versions may be deleted after 30 days or 100 newer versions, unless marked Keep forever.
- Your website: upload the new PDF with exactly the same file name and folder.
- Don’t delete and re-upload; most services give the new file a different link.
For redirect options and their trade-offs, see static vs dynamic QR codes.
Make it easy to read
- Put the most useful information on page one; many people won’t scroll.
- Keep the file small so it opens quickly on mobile data.
- Use readable text sizes, or offer a phone-friendly version.
- Name the file clearly, such as
riverside-cafe-menu.pdf.
Privacy and safety
- A public link is public. Don’t use it for anything personal or confidential.
- Check the PDF’s properties for author names and tracked changes before sharing.
- Check public codes now and then for stickers on top, a known trick in QR code scams.
Frequently asked questions
- Can a QR code hold a PDF file directly?
- No. The largest QR code holds at most 2,953 bytes of binary data according to DENSO WAVE, which is about 3 KB. Even a one-page PDF is usually far bigger, so the code holds a link to the file instead.
- How do I update the PDF without changing the QR code?
- Keep the link the same and replace the file behind it. In Google Drive, open More > File information > Manage versions and click Upload new version. On your own website, upload the new file with the same file name and address.
- Why does my PDF QR code say I need permission?
- The file is shared only with specific people. Change its access to “Anyone with the link” (Google Drive) or the equivalent public-link setting in your storage service, then test again.
- Is it safe to share a PDF with a public link?
- Anyone who gets the link, or scans the code, can open the file. Only use a public link for documents you're happy for anyone to read, such as menus, brochures or manuals.


