The complete QR code guide: creation, sizing, printing and scanning
Everything that decides whether a QR code works: versions, error correction, quiet zones, minimum print size, colours, logos and the mistakes that cause failed scans.
A QR code is a two-dimensional matrix that stores text, a URL or structured data such as a Wi-Fi login or a contact card. A phone camera finds three square finder patterns, works out the orientation, reads the grid and decodes the payload — no app required, no server involved.
That is the theory. In practice, most broken QR codes fail for mundane reasons: too small, too little contrast, no white margin, glossy paper, or a logo that covers more modules than the error correction can rebuild. This guide walks through each of those decisions in the order they actually matter.
How a QR code stores data
The matrix is built from modules — the black and white squares. Data is split into blocks, interleaved and encoded with Reed–Solomon error correction. That interleaving is why a QR code with a scratch or a logo still works: the decoder rebuilds missing modules from the parity data it can still read.
Four properties determine how much fits:
- Version — 40 sizes, from 21 × 21 modules (version 1) up to 177 × 177 (version 40).
- Error correction level — L (7 % recovery), M (15 %), Q (25 %), H (30 %). Higher levels add redundancy, which means a denser matrix for the same content.
- Encoding mode — numeric, alphanumeric, byte (UTF-8) or kanji. Numeric mode packs three digits into ten bits, so a pure number is far more compact than the same length of text.
- Mask pattern — chosen automatically to avoid large blocks of identical modules that confuse scanners.
A short URL such as https://qrify.ir fits in a version 2 or 3 code — 25 × 25 or 29 × 29 modules. A 500-character paragraph with level H can push you to version 20 and beyond, which at 2 cm wide is unreadable. If a code is too dense, shorten the content before you shrink the print.
Which error-correction level should you use?
Level M is the right default: it survives normal handling and keeps the code compact. Move up only when you need to:
| Situation | Level | Why |
|---|---|---|
| Screen display, clean digital use | L | Smallest matrix, fastest scan |
| Default print, business cards, menus | M | Good balance of size and resilience |
| Logo in the centre, or rough handling | Q | Rebuilds the covered area |
| Stickers, packaging, outdoor labels | H | Survives scuffs, folds and dirt |
Adding a logo costs modules, so it is not a free aesthetic choice. A logo covering roughly 10 % of the area needs Q; anything larger needs H and a test scan.
Quiet zone: the margin people forget
Every QR code needs a blank border — the quiet zone — of at least four modules on all sides. At a 0.5 mm module that is 2 mm; at a 1 mm module it is 4 mm. Designers routinely crop it out to make the code "fit", and scanners then fail to find the edges.
In practice: never place a QR code closer than 4 mm to any other element, never put it on a dark background without a white plate behind it, and never crop the export. QRify keeps a four-module quiet zone by default and lets you increase it.
Minimum print size
The rule that matters: the code should be at least one tenth of the scanning distance.
| Scanning distance | Minimum QR width |
|---|---|
| 20 cm (phone, close) | 2 cm |
| 50 cm (poster at arm's length) | 5 cm |
| 1 m (shop window) | 10 cm |
| 3 m (billboard, station) | 30 cm |
| 10 m (building signage) | 1 m |
For packaging where space is tight, 1.5 cm is possible with a very short URL at level L — but test it on the actual material before ordering 10,000 units. Print size and module size are not the same thing: a 5 cm code with 60 modules has smaller modules than a 3 cm code with 25 modules, and small modules are what fail on textured paper.
Colour, contrast and inverted codes
Scanners look for dark modules on a light background. The contrast ratio between the two should be at least 3:1, ideally 7:1 or better. Black on white is 21:1; dark blue on cream is fine; orange on yellow is not.
Two warnings:
- Inverted codes (light modules on a dark background) are read by most modern phone cameras but rejected by many dedicated 2D scanners and older POS hardware. If the code has to work on industrial equipment, keep it dark-on-light.
- Glossy lamination creates a specular highlight that can wash out half the code under shop lighting. Matte lamination or a spot-varnish-free area over the code is safer.
Testing before you print a run
The cheapest test is a phone at the real distance under the real lighting. Do it on a proof print, not on screen — screens are self-illuminated and flattering.
A five-minute checklist:
- Print at final size on the final material.
- Scan with two different phones, at the intended distance, in the intended light.
- Scan one copy that has been handled, folded or stuck to a curved surface.
- Verify the decoded content, not just that a scanner beeped — a link that opens the wrong page is worse than no code.
- Keep the export file. Re-downloading a "slightly better" version later usually means re-testing everything.
You can generate a test code and compare levels on the QR code generator in a few seconds.
Dynamic vs static QR codes
A static code contains the data itself. It never expires and cannot be edited — change the URL and you must reprint. A dynamic code contains a short redirect; the destination lives on a server, so it can be edited and tracked, but it dies when the service dies or the subscription lapses.
QRify generates static codes only. That is a deliberate privacy decision: there is no redirect server that could log every scan, and no subscription that could expire and turn your packaging into a dead link.
Common failure modes and their fixes
- "It scans on my screen but not in print." The print resolution is too low or the module size dropped below the printer's ability to resolve. Export SVG, not a screenshot.
- "It works on iPhone but not on the Android scanner." Usually an inverted or very low-contrast code, or an unusual character encoding. Keep the payload UTF-8 and the code dark.
- "It worked for a month, then stopped." The destination URL changed or the shortener expired. With static codes, check the URL itself.
- "Half the phone cameras refuse it." A logo is too large or the code is too dense. Drop to level Q or H, shrink the logo, or shorten the content.
What to do next
- Choose a format on the barcode types page if you need a retail or industrial symbology rather than a QR code.
- Read the QR code size and print resolution guide before sending artwork to a printer.
- If the code will carry Wi-Fi credentials, use the built-in Wi-Fi builder so the payload is escaped correctly.
Frequently asked questions
Do QR codes expire?
Can I put a logo in the middle of a QR code?
What is the smallest QR code I can print?
Why does my QR code open the wrong page?
In this series — The complete QR code guide: creation, sizing, printing and scanning
- QR code menus for restaurants: a setup that guests actually use 3 min read
- QR codes in marketing: what actually gets scanned (and what gets ignored) 4 min read
- Data Matrix vs QR code: which 2D code fits your label 4 min read
- Code 128: the shipping-label barcode that never fails 4 min read
- EAN-13 vs UPC-A: which retail barcode your product needs 4 min read
- QR code won't scan? A 10-step diagnosis that finds the cause 5 min read
- vCard QR codes: a contact card that opens in one scan 4 min read
- Wi-Fi QR codes: the correct payload format (and the mistakes that break it) 4 min read
- Designing QR codes: colours, logos and gradients that still scan 5 min read
- QR code size and print resolution: the numbers that decide whether it scans 5 min read