Free tool

QR code size calculator

Enter how far away people will scan your code and how much is in it. The calculator gives the smallest width that should still scan, in centimetres and inches, plus the white border and the pixels you need at 300 dpi. It starts from the 10:1 rule and adjusts for denser codes.

How far away will people scan it?
What's in the code?

A short link is about 25 to 40. A Wi-Fi login is about 40 to 60. A contact card is often 150 or more.

Error correction

Our generator uses Medium, and switches to Max when you add a logo.

Scanning conditions

The same code at other distances

Version 3 (29 squares across), good light, straight on.

Scanned fromMinimum code widthWith white border
20 cm (7.9 in)2.3 cm · 0.9 in3.0 cm · 1.2 in
50 cm (20 in)5.8 cm · 2.3 in7.4 cm · 2.9 in
1 m (3.3 ft)12 cm · 4.6 in15 cm · 5.8 in
2 m (6.6 ft)23 cm · 9.1 in30 cm · 12 in
3 m (9.8 ft)35 cm · 14 in44 cm · 17 in
5 m (16 ft)58 cm · 23 in74 cm · 29 in
10 m (33 ft)116 cm · 46 in148 cm · 58 in

How the calculator works

Most print guides use one rule of thumb: a QR code should be at least one tenth as wide as the distance it's scanned from. Scanned from 30 cm, that's 3 cm wide; from 2 metres, 20 cm.

The rule ignores what the camera has to resolve, which is the small squares, called modules. A long link or a contact card packs more modules into the code, so each one is smaller. The calculator corrects for that in five steps:

  1. Work out the grid. From the amount of data and the error correction level, it finds the QR version your code needs and how many modules wide it is.
  2. Size each module for the distance. We read the 10:1 rule as describing a 25-module code (version 2, enough for a short link), so each module needs to be at least 1/250 of the scanning distance. From 1 metre, that's 4 mm per module.
  3. Multiply. Code width = modules × module size. A 25-module code lands exactly on the 10:1 rule; a 49-module code needs almost twice the room.
  4. Add the margin. The QR standard (ISO/IEC 18004) asks for a blank quiet zone four modules wide on every side. The result shows the size with and without it.
  5. Stop at 2 cm. However close people hold it, we don't suggest anything under 2 cm (about 0.8 inches) wide. Smaller codes are hard to aim a camera at.

The scanning conditions option adds 25% for dim light, glare or a code seen at an angle, and 50% for outdoor signs, moving people or codes placed well above eye level. That headroom is our own suggestion; no standard sets it.

What different content needs

These are real codes from our encoder at Medium error correction, the generator's default, sized by the same math as the calculator:

What's in the codeCharactersGridFrom 30 cmFrom 1 mFrom 2 m
https://example.com/menu2425 × 25 (version 2)3.0 cm10 cm20 cm
A Wi-Fi login (WIFI:T:WPA;S:Cafe Guest;P:coffee-and-cake;;)4329 × 29 (version 3)3.5 cm12 cm23 cm
A menu link with three UTM tags8641 × 41 (version 6)4.9 cm16 cm33 cm
A contact card with name, company, job title, mobile, email and website18553 × 53 (version 9)6.4 cm21 cm42 cm

A logo raises the error correction to the highest level, and the grid grows with it. The same contact card with a logo is 73 × 73 modules (version 14) and needs 8.8 cm from 30 cm, or 29 cm from 1 metre. Pick Max / logo in the calculator to see your own code with a logo.

Put less in the code to print it smaller

When the result is bigger than the space you have, shorten what's inside before you shrink the print. The UTM link in the table is https://www.example.com/spring-menu plus ?utm_source=qr&utm_medium=print&utm_campaign=spring. Without the tags it's 35 characters, a 29-module grid, and 12 cm from 1 metre instead of 16 cm. Linking to a short page on your own site does the same job.

Lower error correction saves a little too, but keep Medium or higher for anything printed, and Max if there's a logo. The error correction guide explains the trade-off, and versions and capacity shows how fast the grid grows.

When to go bigger than the result

The numbers assume a recent smartphone camera, a dark code on a light background, and a flat, matte surface. Add room for:

  • Low contrast. Pale or bright colors are harder to read. Check them with the contrast checker.
  • Curved or shiny surfaces, like bottles, cups or glossy laminate.
  • Older phones, which focus less well up close and see less detail far away.
  • A trimmed margin. If the design crops the quiet zone, no size will save it (quiet zone guide).

Then test it for real: print one copy at the planned size, put it where it will go, and scan it from where people will stand with two or three different phones.

Download the SVG from the generator for anything printed. It's made of shapes, not pixels, so it has no resolution to run out of. If you can only use PNG, make sure it has at least as many pixels as the calculator's "Image at 300 dpi" line. More in what size should a QR code be?.

Last updated