A QR code needs a clear margin around it, called the quiet zone, so a scanner can find where the code starts and ends. An AI-generated design can place text, a border, or a background pattern right up against the code, and the scanner then fails to read it. A QR code is a pattern designed for optical scanners, and the ZXing wiki documents that the usual payloads are URLs, mailto links, telephone numbers and Wi-Fi configuration. Check the quiet zone before the design is printed.
What you need
- The AI-generated design with the QR code
- The QR code size in the design
- A ruler or measuring tool in the editor
Step 1: Measure the clear margin on all four sides
Measure the clear space between the edge of the QR code and the nearest text, border, image or background change, on all four sides. Note the smallest margin.
Step 2: Compare the margin with the module size
Compare the smallest margin with the size of one module, the small square that makes up the code. The quiet zone should be at least four modules wide on every side.
Step 3: Clear the margin or enlarge the code
If the margin is too small, move the nearby elements away, or enlarge the code so the margin grows. Scan the code again after the fix and check it reads.
Worked example: synthetic quiet-zone check of one QR code
The table below is a synthetic example. It shows the expected result of checking one QR code in a poster; no poster was printed.
| Side | Clear margin | Modules wide | Verdict |
|---|---|---|---|
| Top | 8 mm | 5 | Pass |
| Right | 8 mm | 5 | Pass |
| Bottom | 2 mm | 1 | Fail |
| Left | 8 mm | 5 | Pass |
Expected result (UNTESTED). 3 of 4 sides have a quiet zone of 5 modules, and the bottom side has only 1 module, so the text below the code must be moved away before the poster is printed. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A quiet zone that is wide enough on screen can be too narrow in print if the code is printed smaller, so measure at the printed size.
- A background pattern that touches the code counts as breaking the quiet zone, even if it is light in colour.
- The quiet zone is a minimum, not a target: a wider margin scans more reliably.
- A code that scans with a narrow quiet zone on one phone can fail on another, so test with more than one scanner.
