A QR code may look complete as soon as its pattern of dark and light squares is visible. But the empty space surrounding that pattern is just as important to its design. Known as the QR code quiet zone, this border helps a reader separate the symbol from nearby text, illustrations and other visual information.
For a conventional square QR Code (Model 2), reserve at least four modules of uninterrupted light space on each of the four sides. A module is one unit of the square grid, not a fixed number of millimeters or pixels. The physical width of the border therefore changes whenever you change the size of the code.
This guide explains how to calculate that border, how to position artwork around it and how to check a final printed design before ordering a production run. It covers ordinary square QR codes used on flyers, packaging, menus, labels and signs, rather than specialized barcode formats.
What is a QR code quiet zone?
The quiet zone is the clear region immediately outside the encoded square. It surrounds the entire symbol: top, bottom, left and right, including the corners. It is not part of the encoded module grid, but it is part of the space you need to allocate to the finished QR code.
Think of a QR code placed on a busy restaurant menu. The printed letters, decorative lines and food photographs are all competing visual elements. A sufficiently clear border creates a separation between the code and that surrounding content. It gives the reading system a cleaner image from which to locate and interpret the symbol.
The large position-detection patterns near three corners of a conventional QR code are inside the symbol. They are not substitutes for its external margin. The white spaces within the module grid also do not count toward the quiet zone.
DENSO WAVE's guidance on determining QR Code area establishes a margin of four modules around the symbol. The GS1 two-dimensional barcode verification guideline independently describes the minimum for GS1 QR Code as four times the X-dimension on each side. X-dimension is the width of one module.
How wide should a QR code border be?
For the standard square format, use a minimum of four module widths on every side. Four modules on the left and four on the right add eight modules to the total width. The same applies to the height. A larger uninterrupted light border is acceptable; the four-module figure is a minimum, not a maximum.
Do not interpret the rule as four pixels, four millimeters or four percent of the image. Those measurements only become meaningful after you know the module size. A large poster and a small product label can both follow the same module-based rule while having very different physical borders.
A standard QR Code needs four clear modules on each side. Schematic illustration.
Calculate the quiet zone in modules
Let N represent the number of modules across the encoded square, and let X represent the width of one module. Use the following relationships:
- Encoded symbol width = N × X.
- Minimum quiet zone on each side = 4 × X.
- Minimum total width, including both side margins = (N + 8) × X.
For a standard Model 2 QR code, the grid width is 21 modules for Version 1 and increases by four modules per version. The relationship is N = 17 + 4 × version. You can use the DENSO WAVE outline specification to understand the range of symbol sizes. If your generator does not identify the version, inspect the original grid or obtain its module count from the software rather than estimating from the overall image dimensions.
Worked example: a 29-module QR code
Suppose you have a Version 3 symbol with 29 modules across and choose a hypothetical module width of 0.8 mm. This example illustrates the arithmetic, not a universal recommended print size.
| Component | Calculation | Physical width |
|---|---|---|
| Encoded square | 29 × 0.8 mm | 23.2 mm |
| Quiet zone per side | 4 × 0.8 mm | 3.2 mm |
| Both opposing quiet zones | 8 × 0.8 mm | 6.4 mm |
| Total square including quiet zone | 37 × 0.8 mm | 29.6 mm |
The result is a 29.6 mm square with a 23.2 mm encoded pattern centered inside it. Each of the four margins is 3.2 mm wide. If you scale the entire artwork proportionally, both the modules and the quiet zone scale together.
For a digital example, a 29-module symbol rendered at 10 pixels per module occupies 290 pixels. Add 40 pixels on each side for a total of 370 pixels. This is a mathematical example for an integer-pixel export; it is not a claim that a 370-pixel file will work at every physical size.
What if you only know the final image size?
If an image contains exactly the symbol and its minimum four-module margin, divide the total width by N + 8 to obtain X. A 37 mm image containing a 29-module symbol with precisely four modules of space on both sides has a module size of 1 mm and a 4 mm border per side.
Do not use that shortcut if the image also contains a caption, decorative frame or extra padding. Instead, measure the width of the encoded square from its grid boundaries, divide by N, and independently measure the clear distance from each side to the nearest interfering element. The narrowest side determines whether the layout meets the minimum margin requirement.
Quiet zone vs. additional print clearance
The four-module border is a symbol-design requirement. Additional clearance is a layout decision that protects the border and the code against real-world production tolerances. They should be treated separately when you prepare files for a printer.
| Space | Purpose | How to determine it |
|---|---|---|
| Quiet zone | Separates the symbol from nearby graphics | At least 4 × module width on every side |
| Extra print clearance | Protects against trimming, folds, seams and placement variations | Based on the printer's tolerances, material and application |
| Bleed | Allows artwork to extend beyond a trim line | Follow the print supplier's document specification; do not sacrifice the quiet zone |
For instance, the 29.6 mm QR code area in the previous example could be allocated an additional 2 mm of clearance on every side, producing a 33.6 mm reserved square. That additional 2 mm is purely illustrative. It is not a barcode requirement or a universal safe distance from a cutting line.
On a folded brochure, keep the whole QR code area away from the crease. On a bottle label, consider the curvature and the seam. On a sticker, account for the die-cut boundary. The design may need more room than its minimum mathematical footprint to remain practical after finishing.
Can artwork enter the QR code quiet zone?
No. For an ordinary square QR code intended to meet the standard margin guidance, keep text, logos, borders, icons, arrows, textures and decorative lines out of the required clear space. A call to action such as “Scan for details” can sit outside it, with enough separation to remain outside the minimum border even after layout changes.
DENSO WAVE's examples of reading problems identify surrounding letters and pictures, as well as distorted modules, as potential causes of difficulty. A code that happens to scan with nearby artwork on one phone has not thereby demonstrated conformity or reliable performance across other readers.
Keep surrounding artwork outside the quiet zone.
Does the border have to be pure white?
A plain light background with dark modules is a conservative choice. The margin does not necessarily have to be pure white if it is a uniform light field with sufficient contrast against the dark modules. Avoid gradients, photographs, metallic reflections and changing colors within the required border. The GS1 retail 2D barcode implementation guidance discusses contrast and barcode placement for commercial scanning environments.
Remember that a transparent image does not automatically supply a usable quiet zone. Its apparent blank space will take on the underlying artwork. Place it on a uniform light backing area that extends at least four modules beyond the encoded grid in each direction. Inspect the composited result, not just the isolated asset.
Can a frame or logo make the code easier to notice?
A surrounding frame can help people notice where to scan, but put its strokes and decorations beyond the quiet zone. A logo outside the border can provide branding without competing with the required clear space. A logo inside the encoded pattern presents a different risk because it changes the symbol itself; avoiding such modifications is the simpler conservative choice.
Error correction is designed to recover some damaged encoded information. It does not grant permission to remove the external quiet zone. Do not assume that selecting a higher error correction setting makes an undersized margin acceptable.
How to preserve the QR code border during export and printing
Start with the original generated file instead of a screenshot, especially when the design will be enlarged. Inspect whether the downloaded asset already includes a border. Some workflows trim transparent padding or automatically crop graphics to their visible content; these actions can remove the clear area you intended to keep.
Use a suitable vector asset when your layout software and printer support it, or a raster export with adequate resolution for the intended printed dimensions. Preserve the square aspect ratio. When generating a raster image, an integer number of pixels per module helps avoid uneven grid edges. Avoid stretching the symbol to fit a rectangular image box, and inspect any resampling applied during export.
Printer resolution also matters. DENSO WAVE's module-size guidance recommends considering both the printer and reader and describes using multiple printer dots per module for stable operation. A PDF proof or sharp-looking monitor preview alone does not establish that the final print can reproduce the modules clearly.
Common placement problems and practical fixes
| Problem | What to change |
|---|---|
| Caption touches the pattern | Move the caption outside the minimum border. |
| Code overlays a photograph | Add a solid light backing that covers the full symbol and margin. |
| Export crops the border | Expand the artboard or disable automatic trimming, then inspect the exported file. |
| Border looks wide on only two sides | Center the symbol and measure each side independently. |
| Code is near a fold or cut | Reposition it and reserve additional production clearance. |
| Modules look blurry or uneven | Return to the original asset and review the export resolution and scaling. |
Practical QR code scan checklist before printing
Use the following as a proposed acceptance procedure for your own artwork. It is not a report of tests performed on a specific generator or printer.
- Confirm the destination: Decode the original code and check that the exact intended URL or other content is returned.
- Measure the grid: Establish the module count and module width at the actual output size.
- Inspect every margin: Confirm at least four module widths of clear space on all sides, including around corners.
- Check the background: View the complete layout with its actual colors, image layers and any transparency applied.
- Inspect the final export: Confirm no clipping, unexpected scaling or loss of the border.
- Make a physical proof: Print at the intended dimensions on the intended material when possible.
- Try representative readers: Scan using multiple devices or the dedicated scanning equipment relevant to the application, at realistic viewing distances and angles.
- Repeat in expected conditions: Check lighting, glare, curvature and normal handling conditions relevant to the finished object.
- Verify the result: Confirm not only recognition but also the intended decoded content and destination behavior. Resolve failures before the full print run.
Keep the approved print proof and original asset together. If a later design revision changes the size, background or placement, repeat the relevant checks. Where commercial barcode specifications apply, arrange appropriate formal verification; consumer phone tests are useful but are not a substitute for barcode quality grading.
Frequently asked questions
Is a four-pixel QR code border enough?
Only if a module is exactly one pixel wide in the relevant image and the margin remains intact. The requirement is four modules per side, not four pixels. For a module rendered at six pixels, the minimum is 24 pixels per side.
Can I use a border larger than four modules?
Yes. Four modules is the minimum for the conventional square format. Extra clear space can make layout and production easier, provided the code itself remains large enough for the intended use.
Can I crop the white border to make a QR code fit?
Only crop surplus space if at least four module widths remain on every side in the finished design. If you cannot fit the symbol and its required border, reconsider the available space, data density and output size instead of simply removing the margin.
Does a QR code quiet zone need to be white?
A uniform light background with strong contrast against dark modules is preferable. Pure white is a straightforward default. A transparent or colored border must be evaluated in the completed layout, with the actual substrate and printing conditions in mind.
Is the four-module rule the same for Micro QR Code?
No. DENSO WAVE's overview of QR Code types distinguishes Micro QR Code, which uses a two-module margin, from conventional QR Code. Do not apply the Micro QR rule to an ordinary Model 2 symbol.
Does a correct quiet zone guarantee scanning?
No. It addresses one important design condition. Module size, print quality, contrast, damage, reader capabilities and the physical environment can also affect performance. Test the final artwork in its intended context.
Keep the blank border part of the design
When preparing a QR code, reserve space for the encoded square and its four-module margin before placing surrounding artwork. Then allow any additional clearance needed for printing and finishing. A border that looks generous in an isolated export can disappear when the image is cropped or placed over a photograph.
Calculate the margin from the module size, review every side of the finished layout and approve a representative physical proof before committing to a print run. Treat the quiet zone as a functional component of the QR code rather than decoration that can be removed to save space.

