Skip to content

Quiet zone

The quiet zone is the blank margin around a QR code. The specification requires it to be at least four modules wide on every side, and it is not decoration or padding — it is part of the symbol.

It is also the single most commonly destroyed feature of a printed code, because it looks like empty space to anyone laying out a page.

What it is for

A scanner has to find the code before it can read it. It does that by looking for the finder patterns — the three squares in the corners — and their defining property is a specific ratio of dark and light bands. That ratio only holds if there is light space around the symbol.

Without a margin, the first dark thing outside the code merges into the pattern and the ratio breaks. The decoder does not see a damaged code; it sees no code at all, and reports nothing rather than an error.

How wide, in real units

Four modules, which means the width depends on how large the code is printed. A 2cm code with a 25-module grid has modules of 0.8mm, so the quiet zone is about 3.2mm. A 20cm code on a board has modules of 8mm, so its quiet zone is 3.2cm.

This catches people out when scaling artwork: the margin has to scale with the code. A fixed 5mm border that was generous at business card size is inadequate on a poster.

How it gets destroyed

Cropping to fit a layout. Butting the code against a coloured panel, a photograph or a rule. Placing it in the corner of a dark background. Putting a caption immediately beneath it. All of these leave the code itself intact and make it hard or impossible to find.

The symptom is distinctive: the code works when photographed close up in good light, and fails at a normal distance or a slight angle. That is a margin problem almost every time, not a size or contrast problem.

When you can use less

Micro QR codes specify a two-module quiet zone, and some scanners are more forgiving than the standard requires. Neither is a reason to design below four modules for print, because you do not control which scanner is used and you cannot fix a print run.

On a screen, where scanning happens close up and the image is crisp, a smaller margin often works. On paper, at distance, in bad light, the full four modules are what makes the difference between a code that works and one that intermittently does not.

Common questions

How wide should a QR code quiet zone be?
Four modules on every side, which scales with the printed size. A 2cm code needs roughly 3.2mm of margin; a 20cm code needs about 3.2cm. A fixed border that suited a business card is not enough on a poster.
Can I remove the white border around a QR code?
No. Scanners locate the code by the light-dark ratio of the finder patterns, and that ratio only holds with clear space around the symbol. Without it the decoder finds no code at all rather than reporting an error.
Can the quiet zone be a colour other than white?
It can be any light colour that keeps strong contrast with the dark modules, so a pale background is fine. What breaks it is a dark or busy background, or a photograph running right up to the edge of the symbol.
Why does my code scan close up but not from a distance?
That pattern almost always means an inadequate quiet zone. Close up the camera resolves enough detail to cope; at distance or at an angle, the finder patterns can no longer be distinguished from whatever surrounds them.

Related terms

Quiet Zone — QR Code Glossary