QR Meadow
English

The QR code quiet zone: why four modules, and what happens with less

A QR code needs a clear margin four modules wide on every side, with nothing printed in it. For a 2 cm version 2 code that is 3.2 mm per side. Here is the rule in millimetres, where designs lose it, and what the screen observations and separate decoder tests found with less.

The rule in millimetres

DENSO WAVE, the inventor of QR Code, states that the symbol “requires a four-module wide margin at all sides”, a clear area “where nothing is printed”. In its worked example, a version 3 code of 7.366 mm becomes a 9.398 mm square once the margin is added. Because the margin is counted in modules, it scales with the code:

Code width (without margin)Version 2 (25 modules)Version 3 (29)Version 8 (49)
2 cm3.2 mm per side2.8 mm1.6 mm
3 cm4.8 mm4.1 mm2.4 mm
5 cm8.0 mm6.9 mm4.1 mm

Quiet zone per side = 4 × code width ÷ modules. A 2 cm version 2 code: 4 × 20 ÷ 25 = 3.2 mm.

Micro QR Code, a smaller relative of QR Code, needs only 2 modules (DENSO WAVE); standard QR codes, the kind phones scan everywhere, need 4.

Test: 0 to 4 modules against a busy background

The margin tells a decoder where the code ends. The hardest case is a background that looks like more code, so each code was surrounded by 0 to 4 modules of white, then 6 modules of random dark squares, and decoded on 40 random backgrounds per width:

Four QR codes surrounded by random dark squares, with quiet zones of 0, 1, 2 and 4 modules
One of the 40 backgrounds at each width. With no quiet zone the code almost never decoded.
Quiet zone (modules)01234
Short link, 6 px/module, sharp2 of 4040404040
Short link, 3 px/module, slight blur2 of 4040404040
Contact card (version 11), 6 px/module, sharp0 of 4040404040
Short link and contact card, solid black surroundnot decodeddecoded

Test: 40 random backgrounds per quiet-zone width, 6 modules of random dark squares outside the margin. The contact card at 3 px per module with blur is left out: that is below what it needs to decode at all, whatever the margin. Decoder jsQR 1.4.0 on synthetic images, not phone photos; how the tests work.

What real phones did

The same four widths, 0, 1, 2 and 4 modules on a busy background, were shown on a screen and scanned with an iPhone and an Android phone, each with its built-in camera app, scanning a computer screen from about 20 cm. Both phones read all four, including the code with no quiet zone at all.

Phone test: a 25 mm version 2 code, one background. One session, one distance, codes shown on a screen rather than printed; details.

What a separate camera-model test adds

One fixed cluttered background; correct decodes across all 12 model conditions, 3 repeats each
Rebuilt sampleApple VisionZXing-C++
B1: no quiet zone36/360/36
B4: four-module quiet zone36/3636/36

Vision read the rebuilt no-margin sample in every condition; ZXing-C++ never did. A reader that can find one borderless code does not remove the margin requirement for other readers. The experiment used a single fixed background, and these were not the phone-session files.

Separate synthetic-image study, QM-LAB-20261028, not a phone or physical-print test. Distances are projections under assumed camera settings, not measured scan ranges. Method, limits and downloadable results.

Why still design for four

The phone session and the original jsQR image test disagree: the two phones found the code even with no margin, while jsQR, the open-source decoder behind QR Meadow’s own in-browser scan check, almost never did. You do not control which reader your audience uses, and a print adds ink spread, glare and tilt that neither test had. Four modules is the figure in DENSO WAVE’s guidance; it gives readers and lighting you have not tested more margin. Neither the screen session nor the synthetic experiments guarantee a scan in the worst conditions.

Where designs lose the quiet zone

  • Cropping. The white border looks like wasted space and gets trimmed in a design tool. QR Meadow’s PNG, SVG and PDF downloads include it.
  • Frames drawn too close. A border or “Scan me” banner belongs outside the margin; the generator draws its frames there:
QR Meadow preview with a frame and SCAN ME label drawn outside the white quiet zone
The white band between the code and the frame is the four-module quiet zone.
  • Busy or dark backgrounds. A code placed on a photo or pattern needs a light panel at least four modules wider than the code on every side.
  • Stickers cut at the code’s edge. Include the margin in the sticker; the sticker size guide has the numbers.
  • Captions and icons nearby. They count as printed. Keep them outside the margin.

Checking a finished design

  1. Export the artwork and open it in the QR code scanner. A design that fails on screen is unlikely to do better in print.
  2. Measure the margin on the final layout: at least 4 × the module width on every side.
  3. Scan a printed proof on the final material with several phones.

Questions

Does the quiet zone have to be white?

It has to be clear and much lighter than the code, with no print or pattern in it. A light colour works if the contrast with the dark modules stays high.

Is the quiet zone included in the QR code size?

Plan for it as part of the footprint: a 2 cm version 2 code needs a 2.64 cm square with its margin (20 × 33 ÷ 25 mm).

Sources

  1. DENSO WAVE, “Point for determining the code area” (quiet zone and module size)
  2. DENSO WAVE, “Micro QR Code”
  3. jsQR, the decoder used in the tests (GitHub)

Tools used in this guide

More guides