Skip to content

How to make a QR code for a PDF

Updated September 2026

You've got a PDF — a menu, a brochure, a spec sheet, a resume — and you want people to open it with one scan instead of typing a URL or hunting through email. There are two genuinely free ways to do this, and which one's right depends on whether the PDF will ever change.

Method 1: host the PDF, then make a URL QR code

This is the right approach for almost everyone. Upload the PDF somewhere with a public link — Google Drive (set sharing to "anyone with the link"), Dropbox, or your own website — copy that link, and turn it into a URL QR code. Scanning opens the PDF directly in the phone's browser or PDF viewer.

The advantage: if the PDF needs updating — a new menu, a corrected spec sheet — you replace the file at the same link and the same printed QR code keeps working. Nothing to reprint.

Method 2: encode a data URI directly (rarely worth it)

It's technically possible to encode small file contents directly into a QR code without any hosting, but PDFs are almost always too large for this to work reliably — a QR code tops out around 3KB of practical capacity before it becomes too dense to scan reliably, and most real PDFs are far bigger than that. For anything beyond a tiny single-page document, hosting the file and linking to it (Method 1) is the only approach that actually works at scan reliability.

Where to host it for free

A few genuinely free, reliable options:

  • Google Drive — free, generous storage, just remember to set sharing to "anyone with the link, viewer"
  • Dropbox — same idea, free tier is plenty for a document link
  • Your own website, if you have one — most reliable long-term since you're not dependent on a third-party sharing setting staying correct

Making sure it actually opens on a phone

Test the link on an actual phone before printing anything — some file-sharing links show a preview/login page instead of opening the file directly, which defeats the point. The link the QR code encodes should go straight to the file, or a page with one obvious "open/download" action.

Static or dynamic

If the file link is stable (you'll always update the same Drive file rather than creating a new one), a static QR code is enough — it's free and never expires. Only use a dynamic code if you specifically want to swap which document the code points to without touching the file itself, or want scan analytics on how often the document is opened.

Frequently asked questions

Can I put a whole PDF directly inside a QR code?

Not realistically — a QR code holds a few kilobytes at most before it becomes too dense to scan. Host the file and link to it instead; that works for any file size.

Will the QR code still work if I update the PDF?

Yes, as long as you replace the file at the same link rather than creating a new one — the QR code just points to the link, so an updated file at that same address works automatically.

Does the person need a special app to open it?

No — scanning opens the link in their phone's browser, which opens PDFs natively on virtually every modern phone.

Is this free?

Yes — hosting on Google Drive or Dropbox's free tier and generating a static QR code both cost nothing.

What if my PDF has sensitive information?

Set the sharing link to unlisted/link-only rather than publicly searchable, and consider whether the content should be behind a password instead of a plain QR link.

Static vs dynamic QR codesPDF QR CodeURL QR Code