How to make a QR code for a PDF

A QR code cannot hold a whole PDF, only a link to one. So the job has two parts: put the PDF somewhere online, then turn its link into a code. Done properly, one printed code can serve readers for years.

Upload the PDF to your website or a cloud drive, set sharing to anyone with the link, copy that link, and paste it into the QR code generator. Download the code, scan it on a phone to confirm the PDF opens, then print it.

Do it in your browser

Why you cannot put a PDF inside a QR code

A QR code is limited in how much data it can store. The largest codes hold under 3 kilobytes, and the larger the amount of data, the denser and harder to scan the pattern becomes. Even a tiny PDF is many times that, and a typical one is hundreds of kilobytes or more. So no generator can embed the file itself; any service that appears to do so is storing the file on its own server and giving you a link.

That has a practical consequence. The PDF must live at a web address, and the QR code will contain that address. Whoever scans the code opens the address in the phone's browser, which shows or downloads the PDF. The quality of the experience depends on where you host the file and what you do when the document changes.

The main decisions are where to host, whether to use a direct link or a viewer link, and how to handle updates. A brochure that is reprinted yearly needs a link that stays valid, and a menu that changes weekly needs a link whose content you can replace without making a new code.

How to make a QR code for a PDF

  1. Reduce the PDF first if it is large, because phones on mobile data open small files faster. The PDF compressor can shrink a scan-heavy document without making it unreadable.
  2. Upload the PDF. On your own website, put it in a stable folder, for example yourdomain.com/files/menu.pdf. Or use Google Drive, OneDrive or Dropbox and set sharing so that anyone with the link can view it.
  3. Copy the link. For cloud drives, use the share link, and open it in a private window or while logged out to confirm that it works for someone else.
  4. Paste the link into the QR code generator under Link (URL), and download the code as PNG, or SVG for print.
  5. Scan the code with your phone and check that the PDF opens and is readable. Try it on both iPhone and Android and on mobile data, then print.

Where to host the PDF

Your own website is the best option if you have one, because the address is under your control and does not depend on someone else's sharing rules. A page address like yourdomain.com/menu can redirect to the current file, which lets you replace the PDF without touching the printed code.

Cloud drives are convenient if you do not have a website. Each has a share setting for anyone with the link, and a view-only mode is sensible. Check how each service treats link access: some require a sign-in for certain settings, and organization accounts can block public sharing. If the PDF is behind a login, the code will fail for everyone who is not signed in.

Updating the PDF without reprinting the code

The code holds the link only. If the link stays the same and you replace the file behind it, the same code shows the new version. On your own website, overwrite the file with the same name. In some cloud drives, you can upload a new version of a file and keep the same link; others create a new link when you upload again, which would break the code. Test this with a dummy file before you print thousands of copies.

If you cannot guarantee that the link will stay, use a short redirect on your own domain, and point that at wherever the file currently is.

Make the PDF phone-friendly

People will scan on phones, so pages designed for a desktop may need pinch zooming. Use a readable font size, a single column, and keep the file small. A menu or flyer of one or two pages works well. For long documents, consider an HTML page with a link to download the PDF. If your document has several sections, bookmarks help.

If a PDF is a scan of paper, run it through a compressor and check that the text is readable at phone size, or provide a text version.

Printing and testing the code

Use the guidance in how to make a QR code for a link for size and contrast: dark squares on a light background, a white margin, and a size of about one tenth of the scanning distance. Add a short label near the code so that people know what they will get, for example Scan to view the menu, because many people hesitate to scan an unlabeled code.

Always test the printed copy, not just the screen. Scan it from the distance a visitor would use, in the lighting of the place where it hangs.

When a QR code is the wrong answer

If the readers will be on a laptop, a short link or a download page is easier than a code. If the PDF is confidential, a QR code on public material is not a good idea, because anyone who sees it can open it. If your audience has poor mobile coverage, such as in a basement venue, offer a printed copy as well. For documents you need to send to one person, attach the PDF to an email or see our guide to reducing a PDF for email.

Frequently asked questions

Can a QR code contain a PDF file?

No. A code holds a few kilobytes at most, so it stores a link to the PDF, which is hosted online.

How do I make a QR code for a PDF for free?

Upload the PDF to your website or a cloud drive, copy the share link, and paste it into the generator. The code is free, with no watermark.

Will the code still work if I replace the PDF?

Yes, if the link stays the same. Overwrite the file with the same name on your site, or use a drive that keeps links when you upload a new version.

Does the person scanning need an account?

Not if sharing is set to anyone with the link. Test the link while logged out.

Should the link open the PDF directly or a viewer?

Either works. A direct link to the file is simplest. A cloud viewer page can look nicer but needs more loading.

How big can the PDF be?

There is no limit in the code, but large files load slowly on mobile data. Compress the PDF so that it opens quickly.

Does a static QR code for a PDF expire?

The code never expires. It stops working only if the file or link is removed.

More guides

Updated Nov 20, 2026