Free QR code generator

PDF to QR code, free and permanent

A QR code can't hold a PDF itself; it holds a link to it. Upload the PDF to Google Drive, Dropbox or OneDrive, set sharing to anyone with the link, then paste that link into the generator above. The code is free and never expires, and nobody can switch it off, because there's no middleman.

01Details

02Theme

03Logo

Optional

How to do it

  1. 1

    Upload your PDF

    Put it in Google Drive, Dropbox, OneDrive or on your own website. Anywhere that gives you a stable link works.

  2. 2

    Turn on link sharing

    In Google Drive: Share → General access → Anyone with the link. In Dropbox or OneDrive, create a view link anyone can open. Copy it.

  3. 3

    Paste it into the generator

    Paste your file's link over the example. Take the SVG to a printer; use the PNG for email or a website.

  4. 4

    Scan it signed out

    Use a phone that isn't logged in to your account. If it asks for access, the sharing setting is wrong.

Where your PDF lives decides how long the code works

Every PDF QR code, ours or anyone's, holds a link. The largest QR code stores 2,953 bytes, and even a one-page menu PDF is many times that. So the real question is who controls the link.

Most "PDF QR code" sites upload your file to their servers and give you a dynamic code that runs through their redirect. When the trial ends or you cancel, the code stops opening your PDF, usually after the flyers are printed. Do QR codes expire? shows how that happens. Host the file yourself and the code points straight at it; there's no plan to lapse.

Google Drive covers the usual reason people want an editable PDF code, an updated menu or price list, without one. Counting scans, or sending a printed code to a different file entirely, takes a dynamic code, which we don't make yet.

A Google Drive share link looks like this (the file ID is made up, but the length is real):

https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view?usp=sharing

That's 82 characters, a version 5 code, 37 squares across. We tried trimming ?usp=sharing off the end: the code stayed at version 5, so it isn't worth the bother. A PDF on your own site, like https://example.com/menu.pdf, makes a version 3 code, 29 squares across. On a table read from 40 cm, our size calculator puts the Drive code at 5.9 cm minimum and the short one at 4.6 cm.

Picking a host

ServiceHow to get a public linkReplace the file, keep the link?
Google DriveShare → General access → Anyone with the link → Copy linkYes: Manage versions → Upload new version
DropboxShare → Copy linkOften, if you overwrite the file in place; test it
OneDriveShare → Anyone with the link → CopySometimes, if you overwrite the same file; test it
Your own websiteUpload the PDF and copy its addressYes, with the same file name and path

Use Google Drive. Its Manage versions option uploads a new copy over the old one while the link stays the same, so a printed restaurant menu code shows next month's menu. It only works from Drive in a web browser.

Work and school accounts sometimes block "anyone with the link" sharing. If the option is greyed out, use a personal account or ask your IT team.

Anyone who scans the code, or is sent the link, can open the PDF. Keep anything confidential out of it. The file never passes through our servers; the code is made in your browser.

Make the PDF readable on a phone

People open it on a small screen, often on mobile data. Compress big photos before exporting, because a few megabytes opens quickly and 50 MB doesn't. A portrait page with large text reads better than a wide spread, and the information people scanned for belongs on page one.

Under the printed code, say what's behind it: "Scan for the menu (PDF)". For a restaurant table, QR codes for restaurant menus covers placement and size.

Last updated