The quiet zone around a QR code

The quiet zone is the empty border around the pattern — and it's part of the code, not decoration. A scanner uses it to find where the code begins; crop it and many readers can't locate the code at all. The standard minimum is four modules wide on every side.

  1. 1

    Keep at least four modules of clear space

    A module is one of the small squares in the grid. If the pattern's smallest square is 1 mm, the margin must be at least 4 mm. In this generator, the margin control sets exactly this — default is four.

  2. 2

    Keep it the same tone as the background

    The quiet zone must be light (matching the code's background colour) and free of anything else — text, logos, borders, imagery.

  3. 3

    Never place text or artwork inside it

    'Scan me' labels, keylines and photo edges all belong outside the margin. If space is tight, shrink the pattern — never the quiet zone.

Try it now

Send anyone straight to a web page with a single scan.

Fill in the fields to encode your own content

Waiting for content

Free, no sign-up, no watermark. Your code never leaves this browser.

Why scanners need the emptiness

A reader finds a QR code by locating the three large corner markers, and it finds those by scanning for their distinctive 1:1:3:1:1 dark-light pattern. Other dark shapes touching the code — text, borders, image detail — confuse that search. The quiet zone guarantees the markers sit in clean space where nothing else can impersonate or obscure them.

This is why a code cropped flush to the pattern often fails completely, while a code with a generous margin scans from further away and at worse angles.

How designers break it

The most common mistake in professional print: the layout looks tidier with the 'white box' trimmed, so someone crops to the pattern edge. The code looked identical to the eye and fails for half the phones that try it. Second place: placing the code on a coloured panel smaller than the pattern plus margin — the panel edge becomes a contrast boundary that eats the quiet zone.

Rule of thumb for handoffs: the exported file already includes the correct margin. Place the whole file; don't crop it.

When more than four is right

On visually busy surfaces — retail packaging, magazine pages, vehicle wraps — increase the margin beyond the minimum. Four modules is the floor for clean layouts; eight is cheap insurance on cluttered ones. The margin costs almost nothing in space and buys a measurable jump in first-try scans.

Mistakes to avoid

  • Don't crop downloaded files to the pattern edge.
  • Coloured panels under the code must extend past the full margin.
  • Borders drawn tight around the code violate the quiet zone just as much as text does.

Common questions

Can I remove the white border?

Not safely. Without a quiet zone many scanners can't locate the code. You can reduce it to four modules, never to zero.

Does the quiet zone have to be white?

It must match the code's background and stay light — cream or a pale brand tint is fine if the code itself stays dark.

How do I know what four modules is in mm?

Divide the code's total width by its module count (shown implicitly by density; roughly 25–45). For most URL codes at 3 cm, the margin works out around 3–5 mm.

My designer cropped it and it still scans on my phone — is it fine?

Your phone is forgiving; many aren't. Restore the margin before printing.