What is a QR code quiet zone?
A QR code isn't just the black squares you see. It also includes a blank border around the outer edge — and that border has a name: the quiet zone. It acts as a buffer between the code itself and anything else around it, like text, logos, or other graphics. Think of it as the white frame you'd put around a picture on a wall: it gives the eye somewhere to rest and makes the main subject easier to focus on.
The technical name for this blank space is quiet zone because it has to stay quiet — no patterns, no colors, no text. Just clean space. Scanners use this area to detect the edges of the code and orient themselves before they start reading the data inside.
Why the quiet zone matters for scanning
Every scanner, whether it's a phone camera or a dedicated handheld reader, looks for a clear rectangular boundary before it tries to decode the pattern. If another shape, color, or piece of text sits too close to the code, the scanner can mistake it for part of the QR code itself. The result is usually a failed scan, an error message, or a long delay while the camera tries to make sense of what's in front of it.
That matters because most people won't try twice. If your flyer, menu, or business card doesn't scan on the first attempt, you've lost that connection. A properly sized quiet zone is one of the simplest ways to make sure your QR code works the way it should, every time.
How big should the quiet zone be?
The official QR code spec recommends a quiet zone of at least four modules on every side. A module is just one of the tiny black or white squares inside the QR code pattern. In practical terms, the blank border should be roughly the width of four of those squares on each side of the code.
If counting modules feels too technical, a handy rule of thumb is to leave a margin of about 10% of the total code width on each side. For example, if your printed QR code is 2 inches wide, aim for a blank border of roughly 0.2 inches (about half a centimeter) on every edge. A little more is fine. A little less is where problems start.
Common mistakes that break the quiet zone
The quiet zone gets broken more often than you'd think, usually by accident. Here are the usual suspects:
- Placing the QR code directly against surrounding text or images
- Cropping the margin off when resizing or trimming an image
- Printing the code flush with the edge of a sticker, card, or page
- Putting a colored background or pattern right up against the code
- Squeezing text or icons into the corners around the code
One subtle offender is a logo placed too close to the edge of the code. A logo in the center is generally fine and can even strengthen your brand, but the outer margin still needs room to breathe. If you're designing a branded QR code, our guide on QR codes with logos walks through the do's and don'ts in more detail.
How to set the right margin when generating a QR code
When you generate a QR code, look for a setting labeled "margin," "padding," or "quiet zone." Most free generators expose this as a simple slider or numeric field. The default usually works, but if you've had scanning trouble in the past, bumping it up slightly is a safe move.
If you're placing a downloaded QR code into a design tool like Canva, Illustrator, or Photoshop, you'll need to set the margin manually. Just leave blank space around the code and resist the urge to crop the image too tightly. When in doubt, give it more space rather than less.
Code size and margin go hand in hand. A tiny code on a giant poster still needs a careful margin, while a generously sized code on a business card has more breathing room to spare. Our QR code size guide covers how to pick the right dimensions for whatever surface you're printing on.
Quick checklist before you print or publish
Before you send your QR code out into the world, run through this short list:
- Is there blank space equal to at least four modules on all four sides?
- Does the code contrast clearly with its background?
- Have you tested it with at least two different phone cameras?
- Is the code not touching any text, image, or page edge?
If the answer to all four is yes, you're good to go. A few seconds of margin-checking upfront can save you from reprinting materials or losing scans later. Read on for more practical tips on getting every detail right.
Ready to create your own QR code?