QR Code Size Guide: Minimum Size and Scanning Distance
By Urlzee Team · Published · 6 min read
A QR code should be at least 2 × 2 cm (about 0.8 in) for close-range scanning, and roughly one tenth of the distance it will be scanned from for anything further away. Those figures assume a short URL; the more data a code holds, the larger it must be printed.
What is the minimum size for a QR code?
About 2 cm square is a workable minimum for a code that contains a short link and will be scanned from 15 to 20 cm away, such as on a business card or product label.
That number is a rule of thumb, not part of the QR standard. What cameras actually need is for each small square in the pattern, called a module, to be large enough to resolve. A 2 cm code with few modules has big, easy squares. A 2 cm code packed with a long URL has tiny ones and may not scan at all.
So the minimum depends on two things: how many modules the code has, and how far away the phone will be.
How does scanning distance change the size you need?
Divide the scanning distance by ten to get a starting width. This 10:1 ratio is widely used by printers and designers, and it works well for codes holding a short URL.
| Where the code appears | Typical scanning distance | Suggested minimum width |
|---|---|---|
| Business card, product label | 15–20 cm | 2 cm |
| Flyer, menu, magazine page | 25–40 cm | 2.5–4 cm |
| Table tent, counter sign | 50 cm | 5 cm |
| Shop window, A3 poster | 1–2 m | 10–20 cm |
| Exhibition banner | 3 m | 30 cm |
| Billboard, building wrap | 10 m or more | 1 m or more |
Treat these as starting points and go bigger when you have room. Poor lighting, glossy surfaces, steep viewing angles and older phones all reduce the distance at which a code will read. If the code is dense, use a ratio closer to 7:1 or 8:1.
Why does the amount of data change the minimum size?
More characters mean more modules, and more modules in the same space mean smaller squares.
QR codes come in 40 versions. Version 1 is a 21 × 21 grid, and each version adds four modules per side, up to 177 × 177 at version 40. The generator picks the smallest version that fits your content at the chosen error correction level.
Here is what that looks like for URLs at medium (M) error correction:
| Content length | Example | Grid |
|---|---|---|
| Up to 26 characters | https://urlzee.com/menu | 25 × 25 (version 2) |
| Up to 42 characters | https://example.com/pages/spring-offer | 29 × 29 (version 3) |
| Up to 84 characters | A product URL with a category path | 37 × 37 (version 5) |
| Up to 122 characters | A URL with UTM parameters | 45 × 45 (version 7) |
To see what that does to print size, work out the module width. Printed at 2 cm, a 25-module code has squares 0.8 mm wide. The 45-module code at the same size has squares of about 0.44 mm, almost half. To give the second code the same 0.8 mm squares, you would have to print it at 3.6 cm.
This is the practical reason to shorten a link before encoding it. Running a long address through the URL shortener and then into the QR code generator keeps the grid small, so the code can be printed smaller or scanned from further away.
Raising the error correction level has the same effect as adding data, because the extra recovery information takes up modules. The post on QR code error correction levels covers when the trade is worth it.
How do you calculate the right size for your code?
Work from the distance, then check the module size.
- Estimate the furthest realistic scanning distance. For a poster across a corridor, that might be 2 m.
- Divide by ten. 2 m gives a 20 cm code.
- Count the modules. Generate the code and count the squares along one edge, or estimate from the table above.
- Divide the width by the module count. A 20 cm code with 29 modules has 6.9 mm modules, which is generous.
- Sanity-check small codes. For close-range print, if the modules come out much under half a millimetre, enlarge the code or shorten the content. This threshold is a practical guide rather than a published limit; fine print on smooth paper can go smaller, rough cardboard cannot.
- Add the quiet zone. Leave a blank margin of four modules on each side.
- Print a proof and scan it from the planned distance with at least two phones.
How much space does the quiet zone need?
The quiet zone is a clear margin around the code, and the QR specification calls for it to be four modules wide on all sides. It tells the scanner where the code ends and the rest of the design begins.
In layout terms, that margin is significant. A 25-module code with its quiet zone occupies 33 modules across. If the pattern is 2 cm wide, the total footprint is about 2.6 cm. Plan for the larger number so text, borders or images don't crowd the code.
The margin must be the same light colour as the code's background. Urlzee's downloads include the full four-module margin, so never crop it off, and avoid setting the image tight against a dark edge or busy artwork.
What size should a QR code be on a screen?
On screens, size is measured in pixels, and the viewer's distance still matters.
- Websites and email: 200–300 CSS pixels wide is comfortable. Remember that someone reading on their phone cannot scan their own screen, so always put a tappable link next to the code.
- Presentation slides: make the code large, around a quarter to a third of the slide height, and leave it up long enough to scan. People at the back of a room are effectively scanning a poster from several metres.
- TV and video: the same 10:1 thinking applies to the size of the code as displayed, and the code needs to stay on screen for several seconds.
For file size, download a PNG larger than you need and scale it down. Urlzee offers 512, 1024 and 2048 pixel PNGs. If you must enlarge a small PNG, the edges can blur depending on the software; the comparison of PNG and SVG for QR codes explains how to avoid that.
Can a QR code be too big?
Rarely, but yes. At very close range a huge code may not fit in the camera frame, and the person has to step back. A code that fills a whole A4 sheet on a desk is awkward to scan from 20 cm.
More often, "too big" is a design problem rather than a scanning one. Match the size to where people will actually stand, and spend any spare space on a clear line of text saying what the scan leads to.
If a correctly sized code still won't read, work through the checks in why a QR code is not scanning.
Frequently asked questions
- What is the minimum size for a QR code?
- For a short URL scanned at arm's length, about 2 × 2 cm (0.8 in) is a sensible minimum. Codes containing more data need to be larger because each square in the pattern becomes smaller.
- How far away can a QR code be scanned?
- A common rule of thumb is ten times the code's width, so a 10 cm code can be scanned from roughly 1 metre. Lighting, camera quality and how dense the pattern is all move that figure up or down.
- Does the quiet zone count towards the size of a QR code?
- The quiet zone is the blank margin around the pattern and is required in addition to it. The standard asks for a margin four modules wide on every side, so allow space for it when planning a layout.
- How many pixels should a QR code be on a screen?
- On a website or slide, around 200 to 300 CSS pixels wide is comfortable for scanning from a normal viewing distance. Start from a larger file such as 1024 pixels and scale down so it stays sharp on high-density displays.