Guide

How to Make a QR Code for a File (PDF, Image, ZIP)

Generate a free static QR code for any hosted file URL — PDF, image, or ZIP — with no sign-up and no server upload.

Last updated:

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:

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:

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:

Step 3 — Test before printing

Always scan the QR code yourself before distributing it:

When to use a static QR code for files

A static QR code — the kind this generator produces — is the right choice when:

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:

The QR code itself does not care about the file type. It stores the URL; the scanner's browser handles the rest.

Related guides

Related tools

Try these tools