What size should a printed QR code be?

How content, error correction, scanning distance and print resolution decide the size of a QR code, with tables for quick answers.

A printed QR code needs to be big enough that each of its small squares, the modules, is clearly visible to a phone camera from where people stand. A common rule of thumb is a code width of about one tenth of the scanning distance, with a clear margin of four modules around it.

Modules, versions and error correction

A QR code is a grid of square modules. The smallest grid, version 1, is 21 × 21 modules, and each version adds four modules per side, up to version 40 at 177 × 177. A generator picks the smallest version that fits your content, so more content means more modules, and at the same printed width, smaller modules.

Error correction adds extra data so a code still reads when part of it is dirty or damaged. There are four levels: L (about 7% of the code can be restored), M (about 15%), Q (about 25%) and H (about 30%). Higher levels also add modules.

Here’s how the grid grows with content length (counted in bytes; plain letters, digits and punctuation are one byte each):

Content up to Level M Level H
14 characters 21 × 21 25 × 25
26 characters 25 × 25 33 × 33
42 characters 29 × 29 37 × 37
62 characters 33 × 33 45 × 45
84 characters 37 × 37 49 × 49
106 characters 41 × 41 57 × 57
213 characters 57 × 57 77 × 77

A link like https://example.com/menu (24 characters) fits in 25 × 25 at level M. The same site with tracking parameters added can easily need 37 × 37 or more.

For clean prints on paper, level M (the default in the generator) is a good balance. Choose Q or H for codes that will get scuffed, sit outdoors, or have a logo placed over them by another tool.

The quiet zone

The quiet zone is the empty margin around the code. ISO/IEC 18004 asks for four modules on every side. Scanners use it to find where the code begins, so text, borders or a busy background pushed up against the code can stop it reading. The generator adds a quiet zone of 4 modules by default; keep it, and don’t trim it off in a layout program.

Distance: the 10-to-1 rule of thumb

For a first estimate, make the code about one tenth as wide as the distance it will be scanned from. This isn’t part of any standard, and it assumes a short link, good light and dark-on-light printing, but it’s a useful starting point.

Scanning distance Code width (rule of thumb) Typical use
30 cm (1 ft) 3 cm (1.2 in) Table cards, flyers, packaging
1 m (3 ft) 10 cm (4 in) Counter signs, posters at eye level
3 m (10 ft) 30 cm (12 in) Wall posters, shop windows

Longer content needs more than this, because the modules shrink. Size up for dim places, glossy surfaces and codes people will scan at an angle.

How small is too small?

The module size matters more than the overall width. A 25 × 25 code printed 2.5 cm wide has modules of 1 mm, which phones read easily. Squeeze 57 × 57 modules into the same width and each one is under 0.5 mm. As a practical floor, QR App’s label printing warns when a module comes out under 0.33 mm and won’t print one under 0.25 mm. Treat anything near that range as something to test carefully.

Pixels and resolution

Printers work in dots per inch (dpi). For sharp print, aim for 300 pixels per inch of printed width:

  • Inches: width in inches × 300
  • Centimeters: width in cm ÷ 2.54 × 300 (about 118 pixels per cm)
Printed width Pixels at 300 dpi
2.5 cm (1 in) 295 to 300
5 cm (2 in) 590 to 600
10 cm (4 in) 1,180 to 1,200
20 cm (8 in) 2,360 to 2,400
30 cm (12 in) 3,540 to 3,600

The generator’s PNG sizes cover this range: 512 px is enough for about 4.3 cm (1.7 in) at 300 dpi, 1024 px for about 8.7 cm, 2048 px for about 17 cm and 4096 px for about 35 cm. Pick a size at least as large as you need; don’t enlarge a small PNG, because the edges of the modules blur.

Prefer SVG for print. An SVG is drawn from shapes, not pixels, so it stays sharp at any size. Most design and layout programs accept it.

Contrast and colors

  • Dark modules on a light background. Black on white is the most dependable. Colors work if the contrast stays high; the generator warns when the contrast between your two colors is below 4.5:1.
  • Avoid light-on-dark. Inverted codes look good, but some scanners don’t read them.
  • Plain background. Don’t print a code over a photo or a pattern.
  • Watch the finish. Glossy paper, foil and laminate reflect light. Matte surfaces scan more easily.

Test before the print run

Print one copy at actual size (not “fit to page”), put it where it will hang, and scan it from the real distance with a few different phones, in the light people will have. Check that the link opens the right page, too. A code from the generator is static: the content is inside it, so a typo can’t be fixed after printing. The guide to static vs dynamic QR codes explains the trade-off, and the label printing guide covers small codes on label sheets.

Questions and answers

What is the smallest size for a printed QR code?

It depends on how much the code holds and how it's printed. A short link printed about 2 to 3 cm wide, with dark modules on a light background, reads well from a phone held close. Longer content needs a bigger code, because each module gets smaller.

How many pixels does a QR code need for print?

At 300 dpi, multiply the printed width in inches by 300, or the width in centimeters by about 118. A 5 cm code needs about 590 pixels. An SVG avoids the question, because it scales to any size without blurring.

Does a higher error correction level make a code easier to scan?

It makes a code more tolerant of damage and dirt, but it also adds modules, so at the same printed width each module is smaller. For most clean prints, level M is a good balance.

Can I put a QR code on a dark background?

Put it on a light patch with a clear margin around it. Light-on-dark codes look striking, but some scanners don't read them.

Sources