How to Make a QR Code for a PDF File: The Free Guide
TL;DR: A QR code can't store a PDF — it stores the PDF's web link. Host your PDF on Google Drive, Dropbox, OneDrive, or your site, set sharing to "anyone with the link," shorten the link, then paste it into Napizo's free QR Code Generator as a Website URL. Test-scan it, then download the PNG or SVG. Free, no sign-up.
You want people to scan a code and open your PDF — a restaurant menu, a course handout, a product brochure, a property listing, a slide deck. But one thing most guides skip: a QR code cannot hold a PDF file. It holds a short piece of text, and for a PDF that text is the link to where the file lives online. Once you understand that, the whole job takes about three minutes: put the PDF somewhere with a link, then turn that link into a code. This guide shows the free way — no account, no uploading your file to a QR service, and a code that never expires.
Can you make a QR code for a PDF file?
Yes — by encoding the PDF's web link, not the file itself. A QR code holds at most about 3 kilobytes of text (roughly 4,300 characters), while even a one-page PDF is typically 50–500KB — far too large to fit inside a code. So you host the PDF somewhere that gives it a public link (Google Drive, Dropbox, OneDrive, or your own site), then generate a QR code from that link with a free tool like Napizo's QR Code Generator. Anyone who scans it opens the PDF in their browser. The code is static, free, and never expires.
Why a QR code can't contain a PDF file
A QR code is a pattern of squares encoding a short string — a link, a sentence, a Wi-Fi password. Its maximum capacity is about 2,953 bytes of binary data, or roughly 4,300 characters. A single-page PDF is usually 50–500KB — hundreds of times too big to fit inside a code. So every "PDF QR code" you have ever scanned is really a link QR code: the code stores a web address, the scanner opens it, and the PDF loads from wherever it is hosted. The two routes differ in one thing — whether your code keeps working or quietly dies:
| Route | How it works | Cost & expiry |
|---|---|---|
| Static link QR (this guide) | You host the PDF, then encode its link in a free QR code | Free forever, never expires |
| Dynamic file QR (QR services) | You upload the PDF to the QR service, which hosts it | Free trial, then a subscription; breaks if you stop paying |
Where should you host the PDF first?
Before you generate anything, your PDF needs a public link. Any of these works — pick the one you already use:
| Hosting option | Free storage | What to do |
|---|---|---|
| Google Drive | 15GB | Upload → right-click → Share → Anyone with the link (Viewer) → Copy link |
| Dropbox | 2GB | Upload → Share → Anyone with link → Copy link |
| OneDrive | 5GB | Upload → Share → Anyone with link → Copy link |
| Your own website | Depends on hosting | Upload the PDF — the link is your own domain, the most professional option |
Two details matter. First, the sharing setting: "Anyone with the link" is what makes the code work for strangers — "Restricted" sends every scanner to a "Request access" screen, the most common PDF-QR failure. Second, file size: a 40MB PDF opens slowly on phone data. Compress heavy files first with Napizo's free PDF Compressor, and merge multi-file documents into one PDF with the free PDF Merger before hosting.
How do I share a PDF with a QR code?
Five steps, about three minutes — all in your browser, with Napizo's free QR Code Generator.
Step 1: Upload the PDF and set sharing to "Anyone with the link"
In Google Drive: upload the PDF, right-click it, choose Share, and change "Restricted" to "Anyone with the link" with the Viewer role — scanners can read the file but not edit it. Copy the link. Do this first: the sharing setting, not the QR code, decides whether scanners get your PDF or an access wall.
Step 2: Shorten the link
A Drive share link is roughly 70–90 characters. A shorter link makes a simpler QR pattern — fewer squares, which scans faster, from farther away, and at smaller print sizes. Shorten it with a link shortener, or use your own domain link if you host the PDF yourself. One honest trade-off: a shortener adds a middleman that could go down. For permanent print — packaging, signage — prefer your own domain link, or print the code a little bigger. Never encode a link that requires a login.
Step 3: Paste the link into the QR generator as a Website URL
In the generator, choose "Website URL," paste your PDF link, and click Generate QR Code — the tool encodes exactly what you paste, so check for typos first.
Step 4: Set size, margin, and colors — then pick PNG or SVG
Size slider: 150–600 pixels, default 280 — fine for screens. Margin: keep at 4 or higher, since that white border is the "quiet zone" scanners need to find the code's edges. Colors: dark foreground on a light background; low-contrast styling scans terribly. Download PNG for screens and documents, SVG for print — it scales to any size without going blurry. Honest limitation: Napizo does not embed logos — a logo pasted over the squares can break scanning.
Step 5: Test-scan before you share or print
Scan the code with two phones — one iPhone, one Android if you can — in ordinary lighting, at the size people will actually see it. Confirm the correct PDF opens with no login wall, then download and distribute.
What size should I print a QR code?
Use the distance rule of thumb: print the code at least one-tenth as large as the distance people will scan it from. A code on a business card is scanned from 30cm away, so 3cm is enough; a poster on a wall is scanned from a metre away, so it needs 10cm:
| Where the code lives | Typical scan distance | Minimum print size |
|---|---|---|
| Business card / receipt | ~30cm | 3cm |
| Flyer / handout / table menu | ~50cm | 5cm |
| Poster / shop window | ~1m | 10cm |
| Signage / billboard | ~2m or more | 20cm or more |
Print from the SVG file so the edges stay razor-sharp at any size, and test-scan the actual print — not the screen preview — before you distribute it. Skip glossy or curved surfaces (a laminated menu, a bottle label) unless you have tested them: reflections and curves distort the pattern.
Static vs dynamic QR codes — which should you choose?
Most paid QR services push dynamic codes, because dynamic codes are what they charge for. Here is the honest comparison:
| Factor | Static (this guide) | Dynamic (QR service) |
|---|---|---|
| Cost | Free, forever | Free trial, then usually a subscription |
| Expiry | Never — the code is just the link | Breaks if you stop paying or the service closes |
| Change the PDF later | Only by replacing the file at the same link | Yes — point the code at a new file anytime |
| Scan tracking | None | Counts, locations, devices |
Choose static for menus, handouts, brochures, packaging, signage, resumes — anywhere permanence matters more than analytics. Choose dynamic only when you will swap the file often (a monthly price list) or when scan statistics are genuinely worth a subscription. For most people, most of the time, static wins.
What mistakes make PDF QR codes fail?
Leaving sharing on "Restricted." The code works — and every stranger hits "Request access." Set "Anyone with the link" first, and test with a phone not signed into your account.
Encoding a link that needs a login. Your own Drive links open fine for you because you are signed in. Test with a private/incognito window, which has no login, to see what strangers see.
Pasting with a typo or a trailing space. The code encodes exactly what you paste. Copy the link with the Share dialog's Copy button instead of highlighting it by hand.
Low-contrast colors. A pale-blue code on white looks stylish and scans terribly. Scanners read contrast — keep a dark foreground on a light background.
Removing the margin. The white quiet zone is how scanners find the code's edges. Setting the margin to zero to save space is a false economy — keep it at 4 or above.
Printing too small for the distance. A 2cm code on a poster nobody can scan is decoration, not a link. Follow the distance rule above.
Moving, renaming, or deleting the PDF after printing. A static code points at one exact link. Move the file and every printed code opens an error. Keep the file where it is — or use "Manage versions" to replace its contents without changing its link.
Letting a QR service host your file, then paywalling it. Some "free PDF QR code" tools host your file and charge you later to keep it live. With the static route your PDF stays on your own storage.
What can you use a PDF QR code for?
A café prints one code per table linking to the menu PDF — the menu updates by replacing the file, never by reprinting. A real-estate agent links the property brochure from a flyer; a teacher links the answer key from a worksheet; a speaker links the full deck from the last slide; a job seeker links a résumé from a business card. If the PDF is image-heavy, compress it first with Napizo's free PDF Compressor so it opens fast on phone data — and if your document started as photos, build the PDF properly with Napizo's free JPG to PDF tool.
Frequently asked questions
Can you make a QR code for a PDF file?
Yes. A QR code cannot hold the PDF file itself, but it can hold the PDF's link. Host the PDF on Google Drive, Dropbox, OneDrive, or your website, set sharing to anyone with the link, paste the link into a QR generator as a Website URL. Scanners open it in their browser.
Does a QR code for a PDF expire?
A static QR code never expires — the code is the PDF's link, and nothing keeps it alive. It stops working only if the link breaks: the PDF is moved, renamed, deleted, or sharing is switched to private. Keep the file in place with public sharing and the code works years later.
How do I make a QR code for a Google Drive PDF?
In Google Drive, upload your PDF, right-click, choose Share, and change Restricted to Anyone with the link. Copy the link, then open Napizo's free QR Code Generator, choose Website URL, paste the link, and click Generate. Test-scan it on your phone, then download it as PNG or SVG.
Why does my QR code ask people to request access?
Because the PDF's sharing is set to Restricted — only named people can open it, and everyone else lands on a Request access screen. Fix it: open the file's Share settings and switch it to Anyone with the link. No new code is needed — the link stays the same, just re-test it.
Can I change the PDF after printing the QR code?
Only by replacing the file at the link — the code points to the link you encoded. In Drive, Manage versions swaps contents without changing the link. A fresh upload gets a new link, so the code opens the old file. For files you update often, a dynamic QR service fits better, but it needs a subscription.
What size should I print a QR code for a PDF?
Use the distance rule: print at least one-tenth of the scan distance. A code scanned from 30cm needs at least 3cm; a poster from 1 metre needs 10cm; signage from 2 metres needs 20cm. Print from the SVG file so edges stay sharp, and test-scan the print before you distribute it.
Related Articles
How to Create a QR Code for Free
How to Create a QR Code for Your WiFi Password
How to Email a Large PDF File Without It Bouncing
Why Is My QR Code Not Scanning? 7 Fixes That Actually Work
What Is the Difference Between Static and Dynamic QR Codes?