What size should a QR code be?
Print a QR code at least 2 cm (about 0.8 in) wide, and at least a tenth of the distance people will scan it from: 10 cm wide for 1 metre away, 30 cm for 3 metres. Leave a plain border of 4 modules (the small squares) around it, and keep the content short if the code has to be small.
Updated
The 10:1 rule
The most widely used rule of thumb is that a QR code should be at least one tenth as wide as the distance it's scanned from. Measure how far away people will stand, divide by 10, and that's the smallest width to print. It's a rule of thumb rather than a standard: phone cameras vary, so round up, especially for codes that hold a lot of data, use artistic styles or sit in poor light.
| Where it goes | Typical scan distance | Minimum width |
|---|---|---|
| Business card or label | 15 to 20 cm | 2 cm |
| Flyer, menu or packaging | 25 to 30 cm | 2.5 to 3 cm |
| Table tent or counter sign | 50 cm | 5 cm |
| Poster on a wall | 1 to 2 m | 10 to 20 cm |
| Shop window | 3 m | 30 cm |
| Banner or billboard | 10 m | 1 m |
The distances are typical, not measured. If you can, stand where your audience will stand and measure.
Why 2 cm is the floor
Below about 2 cm, phones have to get very close to fill the frame, many struggle to focus, and each module becomes tiny. How tiny depends on what's in the code. A short link like https://scandalous.codes makes a 25 by 25 module code at the default error correction level, so at 2 cm wide each module is about 0.8 mm across. A 105-character link full of tracking parameters, at the highest error correction level, needs 57 by 57 modules, which shrinks each one to about 0.35 mm at the same width. The first scans easily; the second is hard work for a lot of phones.
More data means a bigger code
QR codes come in 40 versions, from 21 by 21 modules up to 177 by 177. Every extra character, and every step up in error correction, can push the code up a version, adding 4 modules to each side. These are real module counts from the Scandalous encoder:
| Content | L | M | Q | H |
|---|---|---|---|---|
https://scandalous.codes (24 characters) | 25 | 25 | 29 | 29 |
| Wi-Fi network with a 21-character password | 29 | 33 | 37 | 41 |
| 105-character link with tracking parameters | 37 | 41 | 49 | 57 |
If your code has to be small, make the content smaller:
- Use a short link instead of the long one. Scandalous does this for you: a URL code holds a short link like
https://scndl.co/r/ab12cd34, however long the destination is. - Use error correction M unless you're adding a logo or expect damage.
- For Wi-Fi codes, a shorter network name and password make a smaller code.
Leave a quiet zone
The QR code standard (ISO/IEC 18004) asks for a blank margin, called the quiet zone, at least 4 modules wide on every side. Scanners use it to find where the code starts. Scandalous adds a 4-module quiet zone by default, and you can set it anywhere from 0 to 8. Treat it as extra to the sizes above: size the pattern itself, then keep the space around it plain and light.
Many phones cope with less, but codes printed edge to edge against a busy photo or a dark border are a common reason for failed scans.
Export at the right resolution
For print, use an SVG QR code. It's vector, so it stays sharp at any size, from a sticker to a billboard. If you need a PNG, a common rule of thumb for print is 300 pixels per inch. Scandalous PNGs come in three sizes:
| PNG size | Largest print at 300 ppi |
|---|---|
| 512 px | About 4.3 cm |
| 1024 px | About 8.7 cm |
| 2048 px | About 17 cm |
Don't stretch a code to fit a space. Keep it square, and scale it as one piece.
Work out the size for your code
Measure the scan distance
Find how far away people will be when they scan it.
Divide by 10
That's your minimum width. Never go below 2 cm.
Check the content
If the code holds a long link or has a logo, round up or shorten the content.
Keep the quiet zone
Leave a plain, light border 4 modules wide around the pattern.
Test a real print
Print one at full size on the real material and scan it with two or three different phones from the real distance.
Common questions
- What is the smallest QR code that will scan?
- There's no fixed minimum, because it depends on how much data the code holds and on the phone. As a rule of thumb, 2 cm (0.8 in) is the smallest size most phones read reliably for a short link. Test carefully if you go smaller.
- How big should a QR code be on a poster?
- Use the 10:1 rule: a poster read from 2 metres away needs a code at least 20 cm wide. Go bigger if people will see it from across a room.
- Does the quiet zone count towards the size?
- Treat it as extra. Size the pattern itself with the 10:1 rule, then leave a plain border 4 modules wide around it.
- Can a QR code be too big?
- Rarely. Very close up, a huge code might not fit in the camera frame, but people naturally step back until it does.
Make one with Scandalous
Standard codes are free, with scan analytics on every link.