Generator
WhatsApp QR Code WiFi QR Code vCard QR Code PDF QR Code Menu QR Code Event QR Code QR Phone Cover Batch QR Code QR Code Checker QR Code Size Guide Static vs Dynamic How to Scan a QR Code QR Code Not Working
Designs Smart Logo Fit FAQ Make a QR code →
Guide

QR Code Quiet Zone: How Much Margin Does a QR Code Need?

The clear space nobody notices, until it's missing.

A QR code needs a border of empty space to be readable at all. Crop it away and a perfectly valid code can stop scanning — here's exactly how much space it needs and why.

Quick answer: a QR code should normally have a clear quiet zone at least four modules wide on every side. A module is one small square in the QR grid — this means four QR modules, not four pixels. How wide that is in real measurements depends on how large each module is printed.

Quiet zone — keep the dashed area clear of text, borders, logos and background graphics.

What is a QR code quiet zone?

The quiet zone is the empty area surrounding the QR symbol — the region immediately outside the pattern of black and white squares. It helps a scanner distinguish the QR code from whatever sits nearby: text, images, borders, other patterns, or other graphics.

It's worth being precise about what this is not: the quiet zone is outside the QR modules, not the white squares that already exist inside the pattern itself. Those internal white areas are part of the encoded data and can't be touched; the quiet zone is the separate clear border around the whole symbol.

How much quiet zone does a QR code need?

The standard is a clear margin of at least four modules on every side, where a module is one small square in the QR grid — the same unit used to build the pattern itself. If one module is 0.5 mm wide, for example:

4 modules × 0.5 mm = 2 mm

So the clear margin in that case should be at least about 2 mm on each side. That number only applies to a code with 0.5 mm modules, though — a denser code, or the same code printed larger or smaller, has a different module size and therefore a different physical quiet-zone measurement. There's no single fixed millimeter or inch value that's correct for every QR code; what's fixed is the four-module proportion, not a specific physical size.

Important: four modules does not mean four pixels. A high-resolution QR code exported for print — say at 2400×2400px — can have individual modules that are dozens of pixels wide. The quiet zone has to scale with the module size, not stay fixed at a handful of pixels. Measuring the margin in pixels only makes sense once you know how many pixels make up one module in that specific export.

How do I measure a QR code quiet zone?

  1. Identify the width of one module — one small square in the QR grid.
  2. Multiply that width by four.
  3. Keep at least that much clear space on every side of the code.

If measuring the exact module size is difficult — for example when working from an exported PNG rather than the original vector — the safer approach is to preserve the margin the QR generator already included around the code, rather than cropping the image tightly to the visible pattern. Most generators, including Frame, export with a sensible quiet zone already built in.

What can break a QR code quiet zone?

Does the QR code quiet zone have to be white?

Not necessarily pure white. What actually matters is that the surrounding area clearly separates the QR symbol from nearby visual content. For reliable scanning, a light, plain background with strong contrast against the QR's dark modules is usually the safest choice. Complex patterns, busy textures, or colors close in brightness to the code's modules make that separation harder for a scanner to detect, even if the quiet zone is technically the right size. It would be inaccurate to say the quiet zone must always be white — but it does need to read as clearly distinct from the code.

Can I put a frame or text around a QR code?

Yes, but the required clear space around the actual QR symbol needs to stay intact. CTA text such as "Scan me," "Scan to view menu," or "Scan to contact us" should sit outside the protected quiet zone rather than inside it. Decorative frame elements — borders, ribbons, caption boxes — shouldn't cover the code's edge modules or its required clear margin, even when they're designed to sit close to the code.

Why quiet zones matter when printing QR codes

A quiet zone that looks fine on screen can get reduced or removed entirely during layout and printing, in ways that are easy to miss until a code stops scanning:

A QR code that scans reliably on screen can fail after layout or printing purely because its margin was reduced somewhere in that process — the encoded data doesn't need to change for a code to stop working. See the QR code size guide for how quiet zone fits into overall print sizing.

Does the quiet zone count toward QR code size?

It's worth distinguishing two different measurements: the QR symbol size (the black-and-white pattern itself) and the overall artwork size, which includes the quiet zone around it. When planning space on a business card, poster or package, you need room for both — a "3 cm QR code" usually refers to the symbol alone, with the quiet zone as extra space your layout has to leave room for on top of that. There's no single universal printer measurement that covers every layout; the size guide covers broader physical sizing in more detail.

These are two separate design considerations. A center logo affects the modules inside the QR pattern — it covers part of the encoded data, which is why error correction and logo size matter. Quiet zone problems happen around the outside edge of the code instead, and have nothing to do with whether a logo is present.

Both can affect scanning reliability if handled poorly, and it's possible for a code to get both wrong at once — a large logo eating into the pattern, and a cropped margin around the outside. Frame's customization tools account for the logo side of this automatically, but the quiet zone is a layout decision that's on you to preserve when placing the exported code into a design. See the QR code logo size guide for how much a logo can safely cover.

Check your QR code before printing

Frame's existing QR code checker can inspect a QR image for issues including quiet-zone problems, contrast and resolution, before you commit to a print run. It's a useful early check on the image itself — it doesn't guarantee every real-world scan, since lighting, camera quality and print conditions still vary, but it catches the most common image-level causes of scan failure.

Can a missing quiet zone stop a QR code from scanning?

Yes. A missing or cluttered quiet zone can make detection genuinely harder for a scanner, especially after printing, or when the surrounding artwork is visually busy. If a code still fails to scan after fixing the margin, the next things to check are size, contrast, resolution, physical damage, and the conditions the camera is scanning under. The QR code not working guide walks through those causes in more detail, and how to scan a QR code covers the scanning side if the problem might be the camera rather than the code.

Quiet zone examples in real designs

Create a print-ready QR code. Generate your code, customize it, then check it before printing. Start with the free generator →

Questions

Frequently asked questions

What is the quiet zone around a QR code?+

The quiet zone is the empty area surrounding the QR symbol, outside the pattern itself. It helps a scanner tell where the QR code starts and stops, separating it from nearby text, images, borders or other graphics.

How much white space does a QR code need?+

A clear quiet zone at least four modules wide on every side, where a module is one small square in the QR grid — not four pixels. The exact physical measurement depends on how large each module is printed.

Is the QR code quiet zone 4 pixels?+

No. The rule is four QR modules, not four pixels. A high-resolution QR code exported for print can have modules that are many pixels wide, so the quiet zone needs to scale with the module size, not stay fixed at four pixels.

Does a QR code quiet zone have to be white?+

Not necessarily pure white. What matters is that the surrounding area clearly separates the QR symbol from nearby visual content. A light, plain background with strong contrast against the QR modules is the safest choice; busy patterns or colors close in brightness to the code are risky.

Can I crop the white border around a QR code?+

Cropping too close to the QR symbol is one of the most common causes of a printed code failing to scan. Keep the generator's original margin intact rather than tightly cropping the exported image.

Can text be placed next to a QR code?+

Yes, as long as the text sits outside the required quiet zone rather than inside it. A caption like "Scan me" placed too close to the code's edge can interfere with detection.

Can a frame overlap the quiet zone?+

A decorative frame or caption can surround a QR code, but it shouldn't cover the code's edge modules or the clear margin the scanner needs. Keep the protected quiet zone intact even when adding a frame.

Does the quiet zone count toward QR code size?+

The QR symbol size and the overall artwork size are different measurements. The quiet zone sits outside the symbol itself, so when planning print space, you need room for both the code and its surrounding margin, not just the code alone.

Can a missing quiet zone make a QR code not scan?+

Yes. A missing or cluttered quiet zone can make it harder for a scanner to detect the code at all, especially after printing or when surrounding artwork is visually busy. If a code still fails after fixing the margin, check size, contrast, resolution, damage and camera conditions too.

How can I test a QR code's quiet zone?+

Frame's QR code checker can inspect an image for quiet-zone, contrast and resolution issues before you print. It doesn't guarantee every real-world scan, but it catches the most common image-level problems early.