1. Home
  2. Blog
  3. Work & study

PDF to QR code: how to make a QR code that opens your PDF on any phone

SEditorial team·Updated: ·5 min read
Quick answer

A QR code cannot hold a PDF file; it holds a link that opens the file. Upload the PDF to Google Drive, OneDrive, iCloud Drive or Dropbox, set sharing to anyone with the link (view only), paste that link into the PDF to QR code tool, press Create QR code and download the image as PNG or SVG.

You want guests to scan a code on the table and see the menu, or you want a code on a wedding card that opens the schedule. Most generators make a code that works on your own phone, then everyone else gets a "request access" page. The fix is in how the file is shared, not in the generator.

How a PDF QR code works

A QR code stores a link, and the PDF stays in cloud storage. The code is far too small to carry a whole document, so the process has two parts: share the file with a public link, then turn that link into a code.

Anyone can open it with the phone camera; iPhone and most Android phones read QR codes without an extra app. If the file is large, run it through Compress PDF first so it opens quickly on mobile data.

Step 1: get a public share link

The link must be open to anyone who has it. Labels below are the English ones; they appear translated if your device is set to another language.

Google Drive

  1. Upload the PDF to Google Drive.
  2. On a computer, right-click the file and choose Share. In the phone app, tap the three dots next to the file, then Manage access.
  3. Under General access, change Restricted to Anyone with the link and keep the role as Viewer.
  4. Tap Copy link.

OneDrive

  1. Select the file and choose Share.
  2. Open the link settings (the gear icon or the "who can access" option) and choose Anyone.
  3. Set it to view only, then Apply.
  4. Choose Copy link.

Work and school accounts sometimes block the Anyone option. Use a personal account if it is missing.

iCloud Drive on iPhone

  1. In the Files app, touch and hold the file, then tap Share.
  2. Choose to collaborate rather than send a copy, then open Share Options.
  3. Pick Anyone with the link and set permission to View only.
  4. Tap Copy Link.

Wording varies a little between iOS versions. Apple notes that moving a shared file to another folder stops its link from working.

Dropbox

  1. On dropbox.com, hover over the file and click Share.
  2. Choose Can view.
  3. Click Create if no link exists yet, or Copy link if one does.

Recipients do not need a Dropbox account to open a view-only link.

Service Where the setting is Viewer needs an account? Watch out for
Google Drive Share or Manage access, then General access No Company accounts may block public links
OneDrive Share, then link settings No Pick Anyone, not specific people
iCloud Drive Share, then Share Options No, for a single file Moving the file breaks the link
Dropbox Share, then Can view No One view-only link per file
PDF to QR codeFree, no sign-up, and the file never leaves your device.
Use the tool

Step 2: create the QR code

Once you have the link, making the code takes under a minute, and your file is never uploaded to our site because the tool only works with the link.

  1. Open PDF to QR code.
  2. Paste the share link.
  3. Pick colours and size, and add a label under the code if you like, such as "Scan for the menu".
  4. Press Create QR code.
  5. Download PNG for screens and quick use, or SVG for printing at any size.
  6. Optional: use the option to add the QR code to a PDF to stamp it on a page, such as a flyer or cover page.

Where PDF QR codes are useful

A QR code helps whenever many people need the same file and you do not want to send it one by one.

  • Restaurant and café menus on tables, windows and delivery bags.
  • Event invitations and conference agendas with the location and programme.
  • CVs, with a small code that opens your portfolio, as covered in CV in PDF format.
  • School notices, exam timetables and parent letters on a notice board.

For a menu whose prices change, keep the same link. In Google Drive on a computer you can upload a new version of the same file through Manage versions, which keeps the link and the printed code working. Uploading a separate new file gives you a new link and a new code.

Testing, link life and print size

Always test from a phone that is not signed in to your account before printing anything. That catches restricted sharing straight away. Try an iPhone and an Android phone, from the distance people will really scan.

Keep the link alive: do not delete the file, switch sharing back to restricted, or move it in iCloud Drive. A OneDrive link with an expiry date will stop on that date.

For size, a common rule is code width of about one tenth of the scanning distance, with a floor of roughly 2.5 cm.

Placement Typical scan distance Suggested code width
Business card or CV 15–25 cm 2.5–3 cm
Restaurant table card 30–40 cm 3–4 cm
A4 notice 50 cm – 1 m 5–10 cm
Roll-up banner 2–3 m 20–30 cm

Print dark on light, leave a white margin around the code, and avoid busy photo backgrounds. SVG keeps the edges sharp when a print shop enlarges it.

Public codes and private files

A public QR code is not for confidential files: anyone who photographs the code can open and forward the PDF. Use it for menus, invitations and notices, not bank statements or ID copies.

If you must share something sensitive this way, protect it with a password first, as explained in how to password protect a PDF, and send the password only to the right people through another channel. Some storage services cannot preview a protected file, so viewers may need to download it first.

If the code opens slowly, the file is probably heavy. See compressing a PDF for WhatsApp and email, then upload the smaller version in a way that keeps the same link.

Frequently asked questions

Can I turn a PDF into a QR code without uploading it anywhere?

No. A QR code only holds a small amount of data, far less than a PDF, so the code has to point to a link where the file is stored online.

Why does my QR code ask people to request access or sign in?

The file is still restricted to your account. Change sharing to anyone with the link with view-only permission, then test the code from a phone that is not signed in to your account.

Do PDF QR codes expire?

The code itself does not expire, but it stops working if you delete the file, turn off link sharing, set a link expiry date, or move the file in iCloud Drive.

How do I make a QR code for a PDF on my phone?

Share the file from the Google Drive, Files, OneDrive or Dropbox app with anyone who has the link, copy the link, then open the PDF to QR code tool in your phone browser, paste it and tap Create QR code.

What size should a printed QR code be?

At least about 2.5 cm for close scanning. For longer distances, make the code roughly one tenth of the scanning distance, for example 20 cm for a banner read from 2 metres.

Related articles