The quiet zone is the plain, empty border around a QR code. It looks like wasted space, so designers often trim it, place text right up against it or drop the code onto a busy photo. Then the code scans slowly or not at all. This guide explains what the quiet zone does, how big it should be, how to measure it and how to keep it intact in real designs.
What the quiet zone is
A QR code is a grid of small squares called modules. The quiet zone is the empty margin of light color that surrounds that grid on all four sides. It has no data in it, but scanners rely on it.
When a phone camera looks at a QR code, it first has to find the code in the image. The three large squares in the corners, called finder patterns, help with that. The quiet zone gives those patterns clean edges, so the scanner can tell where the code starts and stops. Without it, nearby text, lines or pictures can look like part of the code, and the scanner may misread the grid or give up.
How big should the quiet zone be?
The QR code standard calls for a quiet zone of four modules on every side for regular QR codes. (Micro QR codes, a smaller variant, use two modules, but most QR codes you will make are the regular kind.)
The key idea is that the quiet zone is measured in modules, not in a fixed size. A big code needs a bigger margin, and a small code needs a smaller one.
Quiet zone width = 4 × module size
To find the module size, divide the width of the code (without the margin) by the number of modules per side:
Module size = code width ÷ modules per side
Each QR version has a fixed number of modules per side. Version 1 has 21, and each version adds 4, so version 2 has 25, version 3 has 29 and version 4 has 33. Longer content needs more modules. Our guide to minimum QR code size has a fuller table.
Worked examples
A printed flyer
Your code is version 3 (29 modules) and will be printed 2.9 cm wide, not counting the margin.
- Module size: 2.9 cm ÷ 29 = 0.1 cm (1 mm)
- Quiet zone: 4 × 1 mm = 4 mm on each side
- Total space to reserve: 2.9 cm + 0.4 cm + 0.4 cm = 3.7 cm square
A large poster
The same version 3 code is printed 14.5 cm wide.
- Module size: 14.5 cm ÷ 29 = 0.5 cm (5 mm)
- Quiet zone: 4 × 5 mm = 2 cm on each side
- Total space: 14.5 + 2 + 2 = 18.5 cm square
The poster needs a much bigger margin, even though the content is the same. That is the most common surprise: people keep a "small border" that was fine on a business card and use it on a poster, where it is far too thin.
A screen or web page
A version 2 code (25 modules) shown 250 pixels wide.
- Module size: 250 ÷ 25 = 10 px
- Quiet zone: 4 × 10 = 40 px on each side
- Total area: 250 + 40 + 40 = 330 px square
On a web page, that means at least 40 px of plain background around the code before any text, buttons or borders.
Make a free QR code for a link, WiFi or contact card — generated in your browser.
Open the free QR code generator →Does our generator include a quiet zone?
Our generator draws a two-module border of your background color around the code, which helps when you preview and share it on screens. For print, and anywhere the code sits close to other design elements, leave more blank space around the image so the total margin reaches four modules. An easy way to do that is to place the downloaded image on a plain area of your design and keep other elements at least one more border's width away from it.
You can estimate the module size from the image itself: count the modules across the code, or zoom in and measure one small square.
What color should the quiet zone be?
The quiet zone should match the light modules of the code, which is usually your background color. It does not have to be pure white. Pale cream, light gray or a light brand color can work, as long as:
- The quiet zone is one solid, even color, not a pattern, gradient or photo.
- There is strong contrast between the dark modules and the light background.
- The quiet zone is the same color as the light modules inside the code.
If you use an inverted code (light modules on a dark background), the quiet zone should be the dark background color. Some older scanners struggle with inverted codes, so test on several phones before printing. For more on safe color choices, see QR code not scanning? common causes and fixes.
Common mistakes that break the quiet zone
These are the problems that most often cause slow or failed scans:
- Cropping the image. Trimming the white edge to make the code look neater removes the margin entirely.
- Text too close. A "Scan me" label or a web address placed right against the edge can confuse the scanner.
- Frames and borders. A decorative box drawn tight around the code breaks the margin, especially when it is dark.
- Busy backgrounds. Placing the code over a photo, texture or pattern means the "empty" border is not empty at all.
- Overlapping elements. Logos, stickers, icons or arrows that touch the code's edges.
- Edge of the page or packaging. A code placed too close to a cut edge, fold or seam can lose part of its margin in production.
Quick checklist before you print
- Count or estimate the modules per side and work out the module size.
- Reserve four modules of plain space on every side.
- Make sure the margin is a solid light color that matches the light modules.
- Keep text, frames, logos and edges outside that margin.
- Check the final print size against our QR code size for print guide.
- Test the actual proof or printout, not just the file, with more than one phone and from the distance people will really scan.
If you want to add a logo in the middle, that is a separate question from the quiet zone. A logo covers modules inside the code, so it depends on error correction, explained in our guide to QR code error correction levels.
Frequently asked questions
What is the quiet zone on a QR code?
It is the plain, light-colored margin around the QR code. It contains no data, but it helps scanners find the edges of the code and read it correctly.
How wide should a QR code quiet zone be?
For regular QR codes, the standard calls for four modules on every side. Find the width of one module by dividing the code's width by the number of modules per side, then multiply by four.
Can a QR code work without a quiet zone?
Sometimes, on a plain background, a phone may still read it. But without a proper margin, scanning becomes less reliable, especially in poor light or with older phones. It is not worth the risk on printed material.
Does the quiet zone have to be white?
No. It should be a solid light color that matches the light modules and contrasts strongly with the dark modules. Avoid patterns, gradients and photos.
Can I put text inside the quiet zone?
It is best not to. Keep labels like "Scan me" and web addresses outside the four-module margin so they do not interfere with scanning.
Make a free QR code for a link, WiFi or contact card — generated in your browser.
Open the free QR code generator →