QR code for PDF files: host it, then link it
Make a QR code for PDF menus, manuals, brochures and forms. A QR code cannot hold the file itself, so you host the PDF first and the code carries its link. That link is static, so the code never expires and no third-party server sits in between. It is free with no sign-up, made entirely in your browser, and verified by a real scanner before you download it.
Content: Link to your hosted PDF
A QR code cannot hold a PDF. Host the file first (your site, Google Drive, Dropbox) and paste its share link.
Style
PNG, JPG or SVG up to 2 MB. It stays on your device.
Your codes on this device
Off by default. When on, each downloaded code (type, content, style) is saved in this browser only, never uploaded. You can delete them at any time.
How to make a QR code for PDF files
- Upload the PDF somewhere public: your own website (note the file's address, such as yoursite.com/brochure.pdf), or Google Drive, Dropbox or OneDrive with sharing set to 'Anyone with the link'. Copy the link.
- If the file may change, link to a page on your site that always holds the current version, or keep the file name and replace the file in place; the printed code cannot change, but what is behind the link can.
- Paste the address into Link to your hosted PDF and press Test link. Open it in a private browser window: if it asks for a login, so will everyone who scans.
- Style it if you wish and watch the capacity line: a long drive link makes a denser code than a short address on your own domain.
- Wait for Verified: scans as URL, then Download PDF at the printed size or Download SVG for the print shop.
QR code for PDF details
A QR code stores text, up to 2,953 bytes at the lowest error correction level. A PDF starts at tens of kilobytes and often runs to several megabytes, so it can never fit; what fits is the address of the file. The generator encodes that address; a phone that scans the code shows the link and opens the PDF in its browser or viewer. The file’s size, content and how often it changes all live on the host, not in the code.
Hosting the file
On your own website, upload the PDF and note the address, for example https://yoursite.com/brochure.pdf. That is the ideal case: short link, small code, and you can overwrite the file without touching the address. In Google Drive, right-click the file, choose Share, set access to ‘Anyone with the link’ and copy the link; Dropbox and OneDrive offer the same. Open the link in a private window before pasting to confirm it needs no login. If the file will change, point the code at a page that always holds the current version, or keep the file name and overwrite the file; a new upload gets a new link that the printed code cannot follow.
Link length and code size
The address is the payload, so its length sets the code size. A 25-character address on your domain fits a 29 × 29 module code at error correction M; a Drive link of 80–90 characters needs 41 × 41. Both scan; the bigger one needs a larger print and cleaner contrast.
Common mistakes
- Sharing restricted to your organisation. Set access to anyone with the link.
- Preview pages that need an app. Test on a phone without office apps installed.
- Huge files. Compress to under 2 MB so it opens on mobile data.
For how this differs from paid dynamic codes, read static vs dynamic QR codes.
This code never expires
The code stores the link to your hosted PDF, so it keeps working for as long as that file or page stays online. This is a static QR code: the data is written into the pattern, so scanning it needs no server, no account and no subscription. There is nothing to renew and no redirect that can be switched off, which is why a code made here keeps working for as long as the printed copy exists. The trade-off is honest: a static code cannot be edited after printing and does not count scans. If you need either, encode a link to a page you control. Read how static and dynamic codes differ, and if a code you already have has stopped working, see why QR codes expire.
Styling, formats and print size
Every code can be styled in the Style panel: six dot shapes, corner shapes, solid or gradient colours, a transparent background, a quiet zone of 0–8 modules, and your own logo up to 30 percent of the width. A contrast checker warns below 3:1 and blocks downloads below 1.5:1, and after each change the preview is decoded again so the badge tells you whether the styled code still scans.
| Output | Best for | Notes |
|---|---|---|
| PNG | Web, documents, quick prints | 256 to 4096 px; transparent background supported |
| SVG | Designers and print shops | Vector, scales without limit; logo embedded |
| Printing at an exact size | Vector modules at a chosen width in mm or inches, optional caption | |
| JPG | Platforms that reject PNG | White background; no transparency |
| EPS | Legacy print workflows | Vector from the module matrix, no logo |
| Copy / Print | Pasting into a document; a quick paper test | PNG to the clipboard; print view with caption |
Print size: as a rule of thumb the code should be at least one tenth of the scanning distance wide, with the quiet zone included.
| Scan distance | Minimum width |
|---|---|
| 0.5 m (arm's length) | 5 cm |
| 1 m | 10 cm |
| 2 m | 20 cm |
| 5 m | 50 cm |
Drive share links make 41 × 41 module codes, so print them at 3 cm or more; a short link on your own domain fits 29 × 29 and is comfortable at 2 cm.
The QR code size guide has a calculator for module size, DPI and distance.
Frequently asked questions
Can a QR code contain a PDF file?
No. A QR code holds at most 2,953 bytes of data; a one-page PDF is rarely under 50 kilobytes and a brochure runs to megabytes. The code can only hold a link to where the file lives. Host the PDF on your website or a file service and encode that link; the phone opens it and shows the file.
Does a QR code for PDF links expire?
No. The code stores the link as plain text and the phone opens it directly. No shortener or redirect service is involved, so nothing can lapse. The code stops working only if the file is deleted or moved, so keep the address stable or link to a page you control.
Where should I host the PDF?
Your own website is best: the address is short, you control it, and you can replace the file without changing the link. Google Drive, Dropbox and OneDrive work well too, once sharing is set to anyone with the link. Avoid hosts that show adverts or a download wait; people scanning on a phone give up quickly.
How do I update the PDF after printing the code?
Keep the link the same and change what is behind it. On your site, overwrite the file under the same name. In Google Drive, open the file, choose Manage versions and upload the new version; the link stays the same. Uploading a separate new file creates a new link, which the printed code cannot follow.
Why is my code so dense?
Because the link is long. A Google Drive share link is 80–90 characters and produces a 41 × 41 module code, while yoursite.com/menu.pdf is about 25 characters and fits 29 × 29. The dense code still scans, but it needs a larger print and more care with contrast. A short address on your own domain is the fix.
Related
Last updated . QR Code is a registered trademark of DENSO WAVE INCORPORATED. Open-source engines are listed on the how it works page.