How-to Guide 5 min read

How to Make a QR Code for a PDF (Menu, Brochure or Certificate)

A QR code can't hold a PDF, only a link to it. Upload the PDF, set sharing to anyone with the link, test it, then turn the link into a QR code.

qr code for pdfhow to make a qr code for a pdfpdf to qr codeqr code for menu pdfqr code google drive pdf

The short answer

A QR code cannot hold a PDF file. It holds a short piece of text, usually a web link. To make a QR code for a PDF, upload the PDF somewhere people can open it (for example Google Drive with "Anyone with the link" access), copy the link, and paste it into the URL option of the QR Code Generator. Anyone who scans the code opens the PDF in their browser.

Why you need a link, not the file

A QR code is a pattern of squares that encodes characters. Even the largest QR codes hold only a few kilobytes of data, while a typical PDF menu, brochure or certificate is hundreds of kilobytes or more. So the QR code stores the address of the PDF, and the phone downloads the file from that address when someone scans it.

This has two practical consequences:

  • The PDF must stay online. If the file is deleted, moved or made private, the printed QR code stops working.
  • The link must be public enough. If the link requires signing in, people who scan it will hit a login page.

Step 1: put the PDF online

Use any place that gives you a stable, shareable link: your own website, a cloud drive, or a document service.

Using Google Drive

Google's help describes the steps for sharing a file by link:

  • Upload the PDF to Google Drive.
  • Select the file and click Share.
  • Under General access, open the dropdown and choose Anyone with the link.
  • Set the role to Viewer so people can read but not edit.
  • Click Copy link, then Done.
  • Google notes that with "Anyone with the link", people can open the file without signing in. It also shows your name and email to people who open it as the file's owner, so use an appropriate account for business documents.

    Using your own website

    If you have a website, upload the PDF to it and copy the full address, starting with https://. A link on your own domain looks more trustworthy when people see it after scanning, and you control whether it stays online.

    Step 2: test the link before making the QR code

    Open the link in a private or incognito browser window, where you are not signed in. If the PDF opens, the link will work for strangers. If you see a login page or "You need access", fix the sharing setting first. Also try it on a phone, since that is how people will open it.

    Step 3: create the QR code

  • Open the QR Code Generator.
  • Choose the URL type.
  • Paste the full link into the content box.
  • Set the size with the slider, from 128 × 128 to 512 × 512 pixels.
  • Optionally change the foreground and background colours. Keep a dark code on a light background with strong contrast, or some scanners will fail.
  • Click Download PNG. The file is saved as qrcode_lazyblink.png.
  • The code updates as you type. Note that the image is generated by an external QR image service (api.qrserver.com), so the link you enter is sent to that service to create the picture. For a public PDF link that is normally not a concern, but do not put private information into the content box.

    Step 4: scan it yourself

    Before printing anything, scan the downloaded image with your phone's camera, and with the QR Code Scanner as a second check. Confirm it opens the right PDF, not an older version or a login page.

    Printing: how big should it be?

    The largest download is 512 × 512 pixels. Printed at 300 dots per inch, that is about 4.3 cm square; at 150 dots per inch it is about 8.7 cm. If you need a larger printed code, stretching a small image can make the edges blurry, though QR codes are made of square blocks and often still scan well. Always test a printed sample.

    Long links create denser codes with smaller squares, which are harder to scan when printed small or viewed from a distance. A short link on your own domain helps. For distance and size guidance, see what size a printed QR code should be.

    Updating the PDF later

    The QR code only knows the link. If the PDF changes, for example a new price list, you have two options:

    • Keep the same link. Check whether your storage service lets you replace the file while keeping the address. If it does, the old QR code keeps working and shows the new PDF.
    • Make a new QR code. If uploading a new file creates a new link, you must generate and print a new code.

    Decide this before you print hundreds of flyers. A link on your own website is usually easiest to keep stable: upload the new file under the same file name.

    Making the PDF phone-friendly

    Most people will open the PDF on a phone over mobile data, so a smaller file opens faster. Before uploading:

    • Compress large PDFs with the Compress PDF tool.
    • Use a single-column layout and readable font sizes if you are designing the document.
    • Put the most important information on the first page.

    Common mistakes

    • Sharing as Restricted. The default sharing on many cloud drives is private, so scanners see "Request access".
    • Linking to the folder, not the file. People then have to hunt for the PDF.
    • Deleting the file after the event. Printed codes on posters and business cards live much longer than you expect.
    • Low-contrast colours. Light grey on white, or a code over a busy photo, often fails to scan.
    • Not testing on a phone. A link that works on your signed-in laptop may not work for anyone else.

    To learn how the squares encode data and why error correction lets slightly damaged codes still scan, see how QR codes work.

    Frequently asked questions

    Can a QR code store a PDF file?

    No. QR codes hold only a small amount of text, so they store a link to the PDF, which the phone opens when scanned.

    How do I share a PDF from Google Drive for a QR code?

    Click Share, set General access to 'Anyone with the link', choose Viewer, copy the link, and paste it into the URL option of the QR generator.

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

    Only if the link stays the same. If replacing the file creates a new link, you need a new QR code.

    How big can the QR code image be?

    The generator downloads PNGs up to 512 × 512 pixels, which is about 4.3 cm square at 300 dpi.

    Try this tool on Lazyblink

    Put this guide into practice with our free online tool — no signup required.

    Open tool