QR Code Quiet Zone: The Empty Margin That Decides Whether a Code Is Found

by KoloQR TeamBasics

A round black-and-white QR code inside a dashed cut-line ring on a magenta background, with a lime circle holding a printer icon overlapping its lower right edge.

The quiet zone is the empty margin around a QR code that lets a scanner detect where the symbol begins and ends, and the standard specifies four modules on every side. It is not decoration and it is not padding a designer can trade away for space: a scanner has to find the symbol before it can decode anything, and the margin is what makes the edge findable. A code with a cropped quiet zone has every module intact and still fails to read.

Key points

  • The quiet zone is the empty margin around a QR code that lets a scanner detect where the symbol begins and ends, and ISO/IEC 18004 specifies four modules on every side.
  • Four modules is a relative measurement, not a fixed one. At the 0.4 mm module floor for coated stock it is 1.6 mm; on a 10 cm poster code it can be nearly 1 cm.
  • The margin has to match the reflectance of the code's light modules, not merely be empty. A pale grey band or a photograph showing through a transparent export is not a quiet zone.
  • Error correction cannot replace a missing quiet zone. Recovery works on the data area after the symbol has been located, and a symbol that is never located never reaches the decoder.
  • A cropped quiet zone is invisible on screen and expensive in print, because a bright, high-contrast display lets decoders find the symbol on far less margin than paper does.

What is a quiet zone on a QR code?

The quiet zone is the empty margin around a QR code that lets a scanner detect where the symbol begins and ends, and the standard specifies four modules on every side. It belongs to the code rather than to the page: a QR code is the dark modules plus the clear border around them, and any measurement or placement that covers only the dark part is describing something smaller than the code.

The mechanism is worth knowing, because it explains which fixes work. A decoder first reduces the camera image to black and white, then hunts for the three finder patterns by the 1:1:3:1:1 ratio of dark and light runs that crosses each of them, and from those three points works out the symbol's boundary, its rotation and the grid its modules sit on. A finder pattern is one of the three concentric squares in a QR code's corners that a scanner uses to locate the symbol and work out its rotation.

Every step of that runs before decoding starts. When artwork touches the outermost modules, a dark module on the edge of the symbol merges with whatever is next to it, the run measurement at that edge changes, and the boundary the decoder estimates moves with it. The data inside is untouched and irrelevant - nothing has decided yet that there is a symbol there to decode.

This is also why the failure is so confusing in practice. A QR code with no quiet zone is not a degraded code that reads badly. It is usually a code the scanner never reports at all, which reads to the person holding the phone as though nothing is there.

How big does the quiet zone have to be?

Four modules on all four sides, for every QR code, at every symbol version. ISO/IEC 18004 states the requirement in modules rather than in millimetres, so the physical width of the margin changes with the printed size of the code and with how much data it carries, while the count never does.

SymbolQuiet zone requiredWhere you meet it
QR Code (model 2)4 modules on all four sidesThe ordinary QR code, and everything else on this page
Micro QR Code2 modules on all four sidesSmall parts marking, where the whole symbol is a few millimetres wide
Both figures are from ISO/IEC 18004. A generator that offers a margin setting is setting this number, whatever it calls it.

Two modules is a Micro QR allowance, not a shortcut for a normal code. Micro QR is a different symbol with a different structure, a single finder pattern and a much smaller capacity, and its relaxed margin does not transfer to the model 2 code that a phone camera reads off a menu.

Many decoders manage on two modules in good conditions, which is exactly why a short margin so rarely shows up during design and so often shows up after the print run. The four-module figure is not the point at which codes start working; it is the point at which they stop depending on the conditions being good.

What four modules works out to in millimetres

Quiet zone in millimetres = 4 x the module size, and the module size is the printed width divided by the number of modules across the whole footprint. Since the footprint is the symbol plus four modules on each side, the arithmetic is: quiet zone = 4 x printed width / (modules per side + 8).

The module count per side comes from the symbol version: a version V code is 4V + 17 modules across. Version 1 is 21, version 4 is 33, version 10 is 57. A version 4 symbol therefore occupies 41 modules including its quiet zone, and at a 20 mm printed width each of those is 0.49 mm, so the margin is about 2 mm per side.

Symbol versionModules (symbol)Quiet zone at 2 cmQuiet zone at 3 cmQuiet zone at 5 cmQuiet zone at 10 cm
225 × 252.4 mm3.6 mm6.1 mm12.1 mm
329 × 292.2 mm3.2 mm5.4 mm10.8 mm
433 × 332.0 mm2.9 mm4.9 mm9.8 mm
641 × 411.6 mm2.4 mm4.1 mm8.2 mm
1057 × 571.2 mm1.8 mm3.1 mm6.2 mm
Printed width is the whole footprint, symbol plus margin. The version 10 row at 2 cm is arithmetic rather than advice: its modules are 0.31 mm, below the print floor, so that code needs to be larger for reasons that have nothing to do with its margin.

Read down a column and the useful shape appears: at a fixed printed size, the denser the code, the narrower its quiet zone. A long URL raises the symbol version, which shrinks every module, which shrinks the margin - so the code that most needs help detecting its edge is the one that gets the least of it.

There is a practical floor underneath all of this. Printed modules should be 0.4 mm or larger on coated stock and 0.5 mm or larger on uncoated, which puts the smallest quiet zone on a properly sized printed code at 1.6 mm and 2 mm respectively. If a layout leaves less clear space than that around a code, the code is either too small or too tight, and both are worth checking before the file goes out. The minimum size for print guide takes the sizing half of that question end to end.

Why a percentage margin in a template gets it wrong

A quiet zone specified as a percentage of the code drifts as soon as the payload changes, because four modules is a different share of every symbol version. On a version 4 code the four-module margin is about 12% of the symbol's width; on a version 10 code it is 7%. A template that reserves 10% around the code is generous for one and short for the other.

The same effect is larger in area terms than most people expect. A version 4 code with its quiet zone covers 41 × 41 module cells, of which the symbol itself is 33 × 33 - so the margin is about 35% of the printed footprint. On a version 10 code it is 23%. That is the answer to why a code always looks bigger in a layout than the designer planned for.

Specify the clear space in modules or in millimetres, not in percent. If a brand guideline has to carry one number, make it millimetres at a stated printed size, and restate it whenever the size changes.

Does the quiet zone have to be white?

It has to match the light modules of the code, which on an ordinary black-on-white QR code means white, and on a coloured code means the code's own light colour. The standard describes the requirement in terms of reflectance rather than colour: the margin has to read as light to a scanner in the same way the light modules do, and the boundary between the two must be invisible to the decoder.

What that rules out in practice:

  • A margin in a different colour from the code's background. A white code background on a cream card leaves a visible rectangle, and its edge is a contour the decoder has to discard before it finds the real one.
  • A photograph or a pattern behind the code. Detail in the margin produces dark runs at the symbol's edge that look like modules. This is the single most common cause of a code that scans in the mock-up and not on the printed poster.
  • A gradient running under the code. A gradient that is light at the top of the margin and mid-tone at the bottom gives the binarisation step two different thresholds to reconcile across one symbol.
  • A transparent PNG dropped on a dark surface. Transparency is not white. A transparent export placed on a dark background has a dark quiet zone, which is no quiet zone at all - see SVG vs PNG for what each export format carries.
  • An inverted code with a light margin. Light modules on a dark background need a dark quiet zone to match them, and several native cameras do not reliably read inverted codes in the first place.

A tinted quiet zone is allowed, and it is often the better design answer. A code with a pale background colour and a margin in that same pale colour, running to the edge of the panel, keeps the brand and keeps the margin. What breaks is any boundary inside the four modules, whatever colour it is.

Why error correction cannot replace the quiet zone

Error correction repairs damaged modules inside the data area after the symbol has been located, so it has no bearing on a symbol that is never located. Raising a code from level M to level H adds recovery capacity that a detection failure never gets to spend, and it makes the situation slightly worse: the higher level pushes the code up a symbol version, the modules get smaller, and the four-module margin gets narrower with them.

The order the two things happen in is the whole explanation. Detection comes first and uses the quiet zone; decoding comes second and uses error correction. There is no path by which the second compensates for the first.

This is the same reason the finder patterns, the timing patterns and the quiet zone are all outside the reach of Reed-Solomon recovery: they are the scaffolding the decoder needs before it has anything to recover. Error correction levels L, M, Q and H covers what recovery does protect, and how much of it a logo consumes.

Where layouts quietly eat the quiet zone

Almost every missing quiet zone is a placement decision rather than an export setting. The code left the generator with its margin intact and then met a layout that needed the space, and because the symbol itself is untouched the file still looks correct at every stage of approval.

The recurring cases, in rough order of how often they reach print:

  • The code placed hard against a rule, a box or a panel edge. A keyline drawn to tidy up a corner sits inside the margin and gives the decoder a contour of its own.
  • A 'Scan me' label tucked under the code. Type set close enough to read as one unit with the symbol is type inside the quiet zone. Move it four modules clear and it still reads as a caption.
  • A code cropped to its symbol in the export, then placed. Some tools trim the margin on export. Once trimmed, the layout has to supply it, and nobody told the layout that.
  • The trim edge of a printed piece. A code near a cut line loses margin to cutting tolerance, and a stack cut a millimetre out takes it from the same side on every copy.
  • A fold or a spine crossing the margin. The crease shadows the code and the two halves stop being coplanar. Keep the whole footprint clear of the fold by at least 5 mm.
  • A background image bleeding under the code. Common on menus and event posters, where the code is placed last onto a photographic panel.
  • A sticker or label die-cut close to the symbol. The cut edge, the substrate underneath and the shadow at the edge all land in the margin.
  • A code on the edge of a screen or a slide. The bezel or the dark slide background becomes the margin, which on a projected slide is usually fatal.

The check that catches all of them takes one sentence: measure the clear space in the placed layout, not in the exported file. A file's margin only survives if the page around it leaves the margin alone.

Frames, circles and custom shapes around a QR code

A frame around a QR code is fine as long as it starts outside the quiet zone, which means the frame's inner edge sits at least four modules clear of the symbol on every side. The mistake is not the frame; it is a frame drawn to the symbol and the margin then measured from the frame.

Shape-specific points worth checking:

  • A circular frame around a square symbol. The corners are the tight spots. Measure the clear space diagonally from the corner modules, not horizontally from the sides, or the four corners will each be short.
  • A frame with a tab or a banner. A 'Scan for the menu' strip attached to the frame is outside the margin only if the frame itself was outside it.
  • Decorative module shapes. Rounded and circular modules put less ink in each cell than square ones, so the symbol's outer edge is already softer than a plain code's and the margin is doing more work, not less.
  • A code inside a product shape or a logo lockup. Treat the four modules as part of the code's bounding box in the lockup, and give the lockup its own clear space on top of that.
  • Cut lines on round stickers. A die-cut circle around a round layout leaves the least room exactly where the finder patterns are.

KoloQR, a free QR code generator with circular and custom-shaped QR codes, includes the four-module quiet zone in its plain and round exports, so the margin is in the file before it reaches a layout. Styling never improves scan performance - a decorated code needs the margin at least as much as a plain one, and usually a little more. Whatever generator produced the file, measure the margin on a framed or shaped export rather than assuming it, and see round QR codes and QR code shapes for what that looks like in a real layout.

How to check the quiet zone on a QR code file

Measure the margin in modules rather than judging it by eye, because the eye compares the margin to the code and the decoder compares it to one module. The procedure below takes about ten minutes and works on a file you were sent with no source and no notes.

  1. Open the file at high zoom. Large enough that a single module is comfortably visible. On an SVG, zoom in the design tool rather than exporting a preview.
  2. Count the modules along the top edge of the symbol. Count the dark and light cells across one full side, excluding the margin. The number will be 21, 25, 29, 33 and so on - it is always 4V + 17 for version V.
  3. Measure the margin on its worst side, in modules. Compare the clear space to the width of one module at the same zoom. Check all four sides and take the smallest; a code trimmed on one side only is a common export result.
  4. Convert to millimetres at the placed size. Divide the placed width by the module count including the margin, then multiply by four. Under 1.6 mm on coated stock or 2 mm on uncoated, the code is too small, too tight, or both.
  5. Check the layout, not just the artwork. Look at what sits within four modules of the symbol in the actual page: rules, type, image edges, panel boundaries, the trim line.
  6. Run the file through a validator. The QR code validator measures the margin the file carries outward from each edge and reports the worst side, along with contrast and module size.
  7. Proof it on the real stock and scan it. One sheet at final size, on the material the job runs on, scanned with an iOS and an Android phone under the lighting the code will actually be read in.

If the margin is short and the artwork cannot be changed, regenerate the code rather than pasting white space around the existing file. Padding an exported raster leaves the symbol's own soft edge where it was, and a regenerated code costs nothing.

Quiet zones on screen, in PDFs and in design files

A screen forgives a short quiet zone and print does not, which is why the fault survives every review that happens on a monitor. A display gives the decoder even illumination, a high contrast ratio and hard pixel edges, so detection succeeds on margins that paper, ink spread and shop lighting would defeat.

Screen: keep the four modules anyway. A code shown on a phone for someone else to scan is being read off a glossy, angled, reflective surface, and the margin is the cheapest defence there is. Avoid placing the code at the edge of a slide or a web section where the surrounding background becomes the margin.

PDF: the margin travels with the artwork, but the placement does not travel with the approval. Codes in PDFs are routinely repositioned during production, and the margin is the first thing a reflow takes. State the clear space in the artwork spec in millimetres, in the same place the bleed is stated.

Design files: place the code as a vector with its margin included and lock the group. In Figma, a frame drawn to the symbol rather than to the footprint is the usual way the margin disappears between the design file and the export - the copy a QR code into Figma guide covers the placement side of that.

Export: keep the code vector wherever the destination accepts it, and where it has to be raster, export at a size that leaves whole pixels per module. A margin that is 3.5 pixels wide is a margin with an anti-aliased fringe on its inner edge, which is a soft boundary exactly where the decoder wants a hard one. Resolution and DPI has the arithmetic. The quiet zone is the fifth of nine checks; the print checklist has the sequence they run in.

How to tell a quiet zone fault from the other scan failures

A quiet zone fault fails completely rather than intermittently: the scanner shows nothing at all, on every attempt, from every distance. Contrast and size faults behave differently - they read sometimes, closer, in better light, on one phone but not another - and that difference is usually enough to identify the fault before measuring anything.

What you seeMost likely causeFirst thing to check
Nothing detected at all, at any distance, every timeQuiet zone, or a covered finder patternClear space on all four sides in the placed layout
Reads up close, fails at the intended distancePhysical sizeCode width against the 1 cm per 10 cm of distance rule
Reads on paper, fails under the shop lightingContrast or finishThe colour pair, and whether the laminate is gloss
Reads on one phone, fails on anotherModule size, or an inverted colour schemeModule width in millimetres; whether the code is light-on-dark
Read fine yesterday, fails today on the same printNeither - check the destinationThe URL itself, in a browser

The first row is the one worth internalising. Total, repeatable silence points at detection, and detection points at the margin and the corners - not at the error correction level, the resolution, or the generator that made the file.

Common mistakes with the quiet zone

The most common quiet zone mistake is treating the margin as whitespace in the design rather than as part of the code. Once it is whitespace, every later decision - tightening a panel, adding a keyline, nudging the code away from a fold - is allowed to take some of it, and none of those decisions look like they touch the QR code at all.

DoWhy
Measure the code as symbol plus marginThe footprint is what has to fit the layout and what the size rules are stated against
Specify the clear space in millimetres at a stated sizeFour modules is a different number of millimetres on every code, and percentages drift with the payload
Keep the margin the same colour as the code's light modulesThe requirement is reflectance, not emptiness - a boundary inside the margin is a boundary the decoder has to reject
Keep the whole footprint clear of trims, folds and spinesCutting tolerance and creases take margin from the same side on every copy in the run
Check the placed layout rather than the exported fileThe margin is almost always lost after export, in a page that never touched the artwork
Don'tWhy
Trim the margin to fit a tight panelA code that is not detected is worth less than the space it was shrunk to save
Raise the error correction level after a detection failureRecovery runs after the symbol is found, and the higher level narrows the margin further
Place a transparent PNG over a dark or patterned backgroundTransparency inherits whatever is underneath, and a dark margin is not a quiet zone
Pad an exported raster with white space to fake a marginIt leaves the symbol's soft outer edge where it was; regenerating the code is faster and exact
Assume two modules is enough because the sample scannedIt scanned on a screen in good light, which is the one condition the print run will not have

Make Your QR Code

Free, with no account and no watermark. Choose a shape, add a logo, check the contrast, and export SVG, PDF, EPS or PNG - a static code with no subscription behind it.

Generate QR Code

Questions? Answered

There is no fixed millimetre figure, because the requirement is four modules and a module's width depends on the code. On a properly sized printed code the margin lands at 1.6 mm at the smallest, since printed modules should be 0.4 mm or larger on coated stock. On a 3 cm menu code it is closer to 3 mm.

A short quiet zone is the usual answer. Screens give a decoder even light, high contrast and hard pixel edges, so detection succeeds on a margin that paper cannot support. Measure the clear space in the placed layout in modules, and check whether a rule, a caption or the trim edge moved into it after the artwork was approved.

Only if the code carries its own flat panel that extends at least four modules past the symbol on every side. Detail in the margin creates dark runs at the symbol's edge that look like modules to a decoder. A rounded light panel behind the code solves it and usually looks deliberate rather than apologetic.

It has the space but not the margin. Transparency shows whatever is underneath, so the quiet zone becomes the background colour of wherever the file is placed. On a dark or patterned surface that is no quiet zone at all. Export on a solid light background unless the placement is confirmed to be light and flat.

No. ISO/IEC 18004 specifies two modules for Micro QR Code against four for the ordinary model 2 QR code. Micro QR is a different symbol with one finder pattern and much smaller capacity, used mostly for marking small parts, so its allowance does not transfer to the codes phones read off print.

Not within the four modules. Beyond that, anything is fine - a caption, a logo, a frame, a call to action. The practical test is to imagine one module's width and count four of them out from the symbol on each side; everything inside that ring belongs to the code, and everything outside it belongs to the design.

Yes. The 2 cm floor for a printed QR code is measured across the whole footprint, symbol plus margin. On a version 4 code that margin is about 35% of the printed area, so a layout that reserves 2 cm for the dark artwork alone is reserving roughly 2.5 cm of real estate whether it planned to or not.

Because trimming to the symbol makes the file easier to position, and the tool assumes the layout will supply the margin. That assumption is usually wrong. Check any file you did not generate yourself before placing it, and if the margin was trimmed, regenerate rather than padding the raster afterwards.

In modules, yes - four on every side, at every symbol version. In millimetres, no. A denser code has smaller modules, so a long URL printed at the same width as a short one gets a narrower margin. That is the opposite of what it needs, which is why shortening the destination helps detection as well as decoding.

Why KoloQR?

  • Create QR codes for websites, menus, Wi-Fi, PDFs, and business cards
  • Customize colors, logos, and unique shapes
  • Download high-quality PNG and SVG files
  • Built for both print and digital
Generate QR Code
A plain black QR code beside the same code restyled as a circle with brand colors