How to Create a QR Code for a PDF File (No Upload, Free)
A QR code cannot contain a PDF. This is the first thing to understand, because almost every "QR code for PDF" tool pretends otherwise and charges a subscription to host what is essentially a single file. What a QR code can contain is a link — to a PDF sitting somewhere on the internet. How you host that PDF determines whether the code keeps working in a year, and whether you need to pay anything at all.
This guide covers three paths: hosting your PDF somewhere you already pay for (free, takes five minutes), using a free file host (free, fragile, pick carefully), and paying for a dynamic-QR service that bundles hosting (worth it only for specific use cases). The free static method is enough for 80 percent of real situations, including restaurant menus, event flyers, and whitepapers.
The myth that QR codes can hold a whole PDF
A QR code's maximum payload under ISO/IEC 18004 Version 40 in binary mode with error-correction level L is 2,953 bytes — roughly 2.9 KB. Push error correction to level H and it drops to 1,273 bytes. A single-page text PDF is usually 30–200 KB, and image-heavy PDFs routinely run 1–10 MB. No realistic PDF fits inside a QR code, regardless of encoding.
What tools selling "PDF QR codes" actually do is upload your PDF to their server, generate a URL, and encode that URL into a QR code. The QR is a link; the PDF lives on the vendor's hosting. This is perfectly fine — until the vendor shuts down, changes their free-tier limits, or decides your QR has exceeded a monthly scan quota. Codes printed on 2,000 conference handouts stop working, and the only fix is reprinting.
Understanding this changes the decision. You are not choosing a QR generator; you are choosing a PDF host. The QR tool is the easy part — any of them encodes a URL for free in seconds.
Method 1 — Host the PDF somewhere you control
The most durable option. If you already run a website, upload the PDF to your own server and link the QR at it. Permanent, free, no third-party dependency.
- Upload the PDF to your site at a stable URL like
https://yoursite.com/menu.pdforhttps://yoursite.com/brochure-2026.pdf. Use a URL you do not plan to change — renaming the file later breaks the QR. - Verify the link in an incognito window. Confirm the PDF opens inline in the browser rather than forcing a download, which some server configurations do by default. Most visitors prefer inline viewing.
- Generate the QR at MakeQR by selecting the URL type and pasting the direct PDF link. Download the clean PNG or SVG.
If your site runs on WordPress, the Media Library generates stable URLs automatically. On a static site built with Next.js or Astro, drop the PDF into the public/ folder and commit — the file is served at the root. On Squarespace or Wix, the built-in file manager does the same, though URLs are longer and sometimes uglier.
Method 2 — Free file hosts that do not disappear
If you do not have a website, the next-best options are free services with strong longevity track records. Rank them in this order based on what you actually need.
Google Drive — free up to 15 GB. Upload the PDF, right-click, "Share", change the permission to "Anyone with the link", then copy the link. The URL will look like https://drive.google.com/file/d/FILE_ID/view. Replace /view with /preview for a cleaner embedded view. Google Drive has been around since 2012 and is the most reliable free host for the typical small business use case.
Dropbox — free tier is 2 GB, but links are rock solid. Right-click the file in the Dropbox app, copy the share link, then append ?raw=1 to the URL to force direct PDF display instead of Dropbox's viewer page.
GitHub (for static PDFs) — only works for publicly shareable files. Upload to a public repo, use the "Raw" button to get the direct file URL. Free, durable, and ideal for documents like resumes, whitepapers, or terms of service.
Options to avoid: random "PDF hosting" sites that appeared after 2022 with generic names. Several of them in 2024 began redirecting older QR codes to ad pages after traffic decreased. If you did not recognize the brand name 10 years ago, assume it might not exist 10 years from now.
Method 3 — Dynamic QR with built-in PDF hosting
Pay $7–15 a month and the tool handles hosting, scan analytics, and the ability to swap the PDF behind the QR without reprinting. Worth the cost in three specific situations:
- The PDF will change regularly — menus that update quarterly, product catalogs refreshed with each release, price lists adjusted by season.
- You need scan analytics — measuring which posters or table cards actually drive downloads for a marketing campaign.
- You need password protection or expiration — internal-only documents where the QR is printed on confidential handouts and should become invalid after an event.
For a static PDF that will not change — a paid guide, a resume, a takeaway menu that has been identical for three years — paying $84 a year to host a 2 MB file is not a good trade. The self-hosted or Google Drive option is free and equally durable.
MakeQR offers dynamic QR on the Pro tier ($7 a month) when the use case actually needs it. The static PDF QR path is and will remain completely free.
Making sure the PDF looks right when it opens
A QR code is only half the user experience. The other half is what the visitor sees when the PDF loads on their phone. Three things to fix before you finalize the code.
Optimize the file size — a 20 MB PDF takes too long to download on mobile data. Export at 150 DPI for on-screen viewing, compress images, and strip unused fonts. Most PDFs with images can drop below 2 MB without visible quality loss. On Mac, Preview's "Reduce File Size" filter is a one-click option. On Windows, free tools like Smallpdf do the same.
Confirm mobile readability — open the PDF on a phone and check that the text size is legible at default zoom. A landscape page designed for desktop often requires pinch-zooming on mobile, which is friction. If possible, create a mobile-friendly version with portrait orientation and larger fonts.
Set the correct MIME type — if visitors see a broken-looking page instead of the PDF, your server is probably sending the file with the wrong Content-Type header. It should be application/pdf. Most CDNs and hosts handle this automatically; custom setups sometimes need a .htaccess or nginx adjustment.
Generate your PDF QR in two minutes
Visit makeqr.daylab.dev, leave the type as URL, and paste the link to your hosted PDF. The preview updates instantly. Customize the color or add a logo if you want, then download PNG for slide decks and posters or SVG for print materials like menus and business cards. No account, no watermark, nothing expires.
If you later change hosts — say you move a menu from Google Drive to your new website — the static QR you just printed will stop working, because a static QR encodes the URL directly. This is the main reason to confirm Method 1 or 2 is the final home for the PDF before you print at scale.
Common mistakes that break PDF QR codes
Three error patterns show up repeatedly in support threads across QR tools.
Using a preview URL instead of the direct file URL. Google Drive share links point at a preview page by default, which includes a "Download" button. For a QR code that should open the PDF immediately, swap /view for /preview in the URL. Some phones handle both gracefully; others open a blank Drive page.
Printing before confirming the link is public. A "restricted" Google Drive file requires the scanner to be logged into a Google account with explicit access. This works in your own browser but fails for customers. Test the QR in an incognito window with no Google login active — if it still loads the PDF, it is actually public.
Hosting a PDF that requires a password. Password-protected PDFs prompt for credentials when opened — an unpleasant experience for a scanner who just wanted your menu. If the file genuinely needs protection, use a dynamic QR with access control instead of a password-protected static PDF. Most of the time the password is habit rather than necessity and can simply be removed.
FAQ
Q. Can I generate a QR code that contains the PDF itself, without hosting it anywhere?
A. Technically no. The QR code standard (ISO/IEC 18004) Version 40 caps binary payload at 2,953 bytes (about 2.9 KB), which is smaller than the smallest realistic PDF. Any tool advertising "offline PDF QR codes" is compressing the PDF to a hosted URL in the background. The only truly offline options are vCard, WiFi, and text QRs, where the content is small enough to encode directly.
Q. Will a free PDF QR code stop working after some time?
A. A static QR linking to a PDF will keep working as long as the PDF stays at the same URL. Tools that host the PDF on their own servers and charge after a trial period create "expiring" QRs — not because the QR itself expires, but because they stop serving the PDF. Self-hosting on your own domain or using Google Drive eliminates this risk.
Q. Is it safe to scan a QR code that opens a PDF?
A. As safe as clicking any link on the internet. The QR itself is inert — just a pattern encoding a URL. The PDF behind it can theoretically contain malicious content (a rare but real class of attack). Most phone browsers render PDFs in a sandbox, which protects against the most common exploit paths. For sensitive documents, hosting on a recognizable domain (yourcompany.com) builds trust over a generic short-link.
Q. What is the best free way to make a QR code for a PDF?
A. Upload the PDF to Google Drive or your own website, copy the direct file URL, then paste it into a free QR generator like MakeQR. Total time: under five minutes. No subscription, no sign-up, and the QR works as long as the PDF stays at that URL.
Related guides
- How to Make a QR Code for Your Restaurant Menu (Free, 2026) — the most common PDF QR use case, handled end to end.
- How to Add a Logo to a QR Code (Free, No Sign-Up) — brand the QR that points at your PDF.
- QR Codes for Event Signage — Templates & Best Practices — for conferences and trade shows distributing PDF handouts.
- MakeQR editor — paste your PDF link and download the QR right now.
Ready to create your QR code?
Try MakeQR for free — no sign-up, no watermark.
Create QR Code Free