How to make a QR code for a PDF
- Upload the PDFUse your own website, Google Drive, Dropbox or OneDrive. Keep the file under about 5 MB so it opens quickly on mobile data.
- Make it public and copy the linkIn Google Drive: Share → General access → "Anyone with the link" → Copy link. In Dropbox: Share → Copy link.
- Paste the link aboveThe preview updates immediately. Add a frame such as "VIEW THE PDF" so people know what they will get.
- Test on a phone that is not logged inOpen the code on a phone using mobile data. If it asks for a login, the sharing setting is wrong.
How a "PDF QR code" works
A QR code can't contain a whole PDF: even the largest QR code holds under 3 KB, while a one-page menu is usually 200 KB or more. A PDF QR code is a URL QR code that points to the file stored online. Phones open the link and show the PDF in the browser or in a PDF viewer.
That means the important decisions are about where the PDF lives, not about the code. Choose a place you control and that will still exist in a year.
Where to host your PDF
| Option | Cost | Can you replace the file later? | Notes |
|---|---|---|---|
| Your own website | Included in hosting | Yes: upload a new file with the same name | Best: short link on your own domain, nobody can switch it off |
| Google Drive | Free (15 GB) | Yes: right-click → File information → Manage versions | Opens in Google's viewer; works for everyone with the link |
| Dropbox | Free (2 GB) | Yes: upload a file with the same name to replace it | Add nothing to the link; Dropbox shows a preview page |
| OneDrive | Free (5 GB) | Yes: upload a new version | Check "Anyone with the link can view" |
Keep the same code when the PDF changes
Prices change, menus change, schedules change. You don't need a new QR code each time if you update the file behind the link:
- Your website: overwrite
menu.pdfwith the new version. Same address, same code. - Google Drive: don't upload a new file. Right-click the existing one → File information → Manage versions → Upload new version. The sharing link stays identical.
- Dropbox: upload a file with exactly the same name into the same folder and choose "Replace".
Uploading a new file always creates a new link, so the printed code would still show the old PDF.
Make the PDF easy to read on a phone
Most people will open your PDF on a screen about 7 cm wide. A few changes make a big difference:
- One column, big text. Avoid two-page spreads and tiny footnotes. 12 pt text in a document becomes unreadable on a phone.
- Portrait pages. Landscape pages shrink to a thin strip.
- Compress images. Export with "smallest file size" or "web" settings. Aim for under 2 MB.
- Put the important part on page 1. Many people never scroll.
- Give the file a clear name, like
summer-menu.pdf. The name is visible in the browser.
For a restaurant, a web page often reads better than a PDF; see our menu QR code guide.
Common mistakes
- Private sharing settings. The most frequent problem by far. Test the code on a phone that isn't logged into your Google or Microsoft account.
- Linking to the folder instead of the file. People land in a file list and leave.
- Huge files. A 40 MB scanned brochure takes minutes on a weak connection.
- Temporary links. Some file-transfer services delete files after 7 days. Never use WeTransfer-style links for printed codes.
Print and size tips
A PDF link from Google Drive or Dropbox is fairly long, so the QR code is denser than one for a short web address. Print it at least 2.5 cm (1 in) wide for close-up use, and check the minimum for your distance with the size calculator. If you have a website, a short address such as yoursite.com/menu.pdf gives a simpler code that scans from further away.
Google Drive: view or download?
Drive share links (…/file/d/FILE_ID/view?usp=sharing) open the PDF in Google's viewer, which works on every phone. If you want the PDF to download straight away, change the link to https://drive.google.com/uc?export=download&id=FILE_ID. Most people prefer the viewer, so use the normal link unless you have a reason.
Frequently asked questions
Can a QR code store a PDF file directly?
No. A QR code holds at most about 3 KB of data, far less than a PDF. The code stores a link to the PDF, which you host online.
Is it free to make a PDF QR code?
Yes. The code is free and never expires. Hosting on your website, Google Drive, Dropbox or OneDrive is free up to their storage limits.
How do I update the PDF without changing the QR code?
Replace the file behind the same link: overwrite it on your website, use "Manage versions" in Google Drive, or upload a file with the same name in Dropbox.
Why does my PDF QR code ask people to log in?
The file is not shared publicly. Set Google Drive to "Anyone with the link" (or the equivalent in Dropbox/OneDrive) and test on a logged-out phone.
Will the PDF download or open in the browser?
On most phones it opens in a viewer first, and people can download it from there. Google Drive and Dropbox always show a preview page.
Does the PDF QR code expire?
The code itself never expires. It keeps working as long as the file stays online at the same link.
Related free tools
Was this page helpful?
Last updated October 27, 2026 by the QR Code Haven team. Found a problem? Tell us.
Coming soon: Pro — dynamic QR codes Waitlist
Edit where a code points after you print it, and see scan analytics (time, city, device). Your free static codes here stay free and keep working forever — Pro is an optional extra.
No spam. One email when Pro launches. Contact: hello@qrcodehaven.in