What this guide covers
This guide walks through the steps to create a QR code that opens a file — a PDF document, an image, a ZIP archive, or any other downloadable file. The approach works for event handouts, product packaging inserts, printed manuals, training materials, and any situation where someone needs to scan a code and get a file on their device.
How QR codes and files work together
A QR code is a container for text. Most QR codes hold a URL. When a phone camera or QR scanner reads the code, it opens that URL in a browser.
Files cannot be embedded directly inside a QR code. The data capacity of a standard QR code tops out at roughly 2,950 bytes — far smaller than even a single-page PDF. Instead, the QR code holds the address of the file: a URL that points to where the file is hosted online.
The workflow is two steps:
- Host the file at a stable URL that anyone with the link can access.
- Generate a QR code that contains that URL.
When someone scans the code, their device opens the URL and either displays the file inline (common for PDFs and images) or prompts a download (common for ZIPs and other archives).
Step 1 — Prepare and host your file
Before generating the QR code, the file needs to be reachable at a public URL. A few options:
- Cloud storage with a share link. Google Drive, Dropbox, and OneDrive all let you create a shareable link to a file. Make sure the link is set to "Anyone with the link can view" — a restricted link will ask the scanner to sign in, which defeats the purpose of a quick scan.
- Your own website or server. Upload the file to a directory on your domain. The URL is permanent as long as you keep the file there.
- A file-hosting service. GitHub Releases (for versioned downloads) or similar permanent-link services work well. Avoid temporary transfer services (links that expire after a set number of days or downloads) — a printed QR code outlasts a temporary link, and the result is a code that scans but leads nowhere.
Your hosting provider may add its own download page or analytics; the QR code itself is just a static link. Choose a host whose URLs stay live for as long as the QR code will be in circulation.
If the file is a large PDF, consider compressing it first. Smaller files load faster on mobile connections, which matters when someone is scanning a QR code at an event or in a store.
If you have multiple pages or documents to share as a single file, merge them into one PDF before hosting. One URL, one QR code, one scan — simpler for the person on the other end.
Step 2 — Generate the QR code
Once the file is hosted and you have the URL:
- Open the QR Code Generator.
- Paste the file URL into the content field. The preview updates as you type.
- Adjust settings if needed: error correction level (higher levels tolerate more damage to the printed code), foreground and background colours, quiet-zone margin.
- If the QR code will appear on branded materials, upload a logo. The generator auto-promotes error correction to H (30% redundancy) when a logo is loaded, so the code remains scannable even with the centre partially obscured.
- Download the result as PNG (for screens and print) or SVG (for vector-quality print at any size).
Step 3 — Test before printing
Always scan the QR code yourself before distributing it:
- Scan with at least two different phones (iOS and Android) to confirm the URL opens correctly.
- Verify the file loads — not just the QR scan, but the actual file download or display.
- If the code will be printed at a small size, test scanning from the intended viewing distance. Codes printed below roughly 2 cm (0.8 in) per side are harder to scan reliably, especially with a logo overlay.
When to use a static QR code for files
A static QR code — the kind this generator produces — is the right choice when:
- The file will not change after the QR code is printed.
- You do not need to track how many times the code is scanned.
- You want zero ongoing cost and zero account dependencies.
If you need to swap the file behind the code after printing (for example, updating a menu PDF every week), you would need a dynamic QR code service that lets you redirect the URL. That is a different product category and is not what this tool provides today.
File types that work
Any file type works as long as it is reachable at a URL. The most common use cases:
- PDF — event programmes, menus, instruction manuals, spec sheets, ticket receipts.
- Images (JPEG, PNG, WebP) — product photos, maps, infographics, posters.
- ZIP archives — bundled downloads, multi-file packages, firmware updates.
- Audio and video — MP3 files, short video clips hosted on a CDN or cloud storage.
The QR code itself does not care about the file type. It stores the URL; the scanner's browser handles the rest.
Related guides
- How to Create a QR Code for a Website URL — if you are linking to a web page rather than a downloadable file.
- QR Codes for Small Business — practical use cases for menus, business cards, packaging, and review links.