← Feocey Blog

Engineering Notes

Why a Longer QR Code Can Be Harder for an Access Control Reader to Scan

QR code size affects what an access control reader can resolve. See how a longer payload can shrink each square in the same space, and compare versions before settling on a pass layout.

Two equally sized illustrative QR patterns with coarse and fine modules.

Before you choose

Key takeaways.

  • Check the actual QR version and module count as well as the outside width.
  • Keep four clear module widths on every side and inspect the artwork after delivery or print.
  • Validate the densest expected pass with the selected reader and the real layout.

An access control reader can see two QR codes with the same outside width and have a harder time reading the one with more squares. Each square is a module. If a longer payload pushes the generator to a higher QR version, the grid gains rows and columns. Fit that grid into the same pass layout and each module occupies less space in the reader's image. Project Nayuki's QR generator documentation

The badge size can stay fixed while the squares get smaller

Start with the version and module count from the generated symbol. The amount of data, its encoding mode, and the error correction level all affect which version fits. A few extra characters may fit in the same version. A change that crosses a version boundary will add four modules per side for standard Model 2 QR codes. Project Nayuki's QR generation procedure

Count the quiet zone in the space you allocate

The quiet zone is the clear margin around the symbol. Standard QR codes need at least four module widths of clear space on each side. That margin helps the reader locate the code. Keep it part of the artwork so a badge border, email background, or mobile app theme cannot fill it. GS1 barcode implementation guideline

Suppose a layout allocates a 36 mm square to the entire image, including exactly four modules of quiet zone on each side. Divide 36 mm by the grid width plus eight to calculate the module pitch, which is the width of one square. The table uses example versions and calculated dimensions for that layout.

Two equal-width module grids with four-module quiet zones and different module sizes.
The same 36 mm footprint gives fewer millimeters per module when the symbol has more modules.
Calculated module widths for two QR versions in the same 36 mm square
QR versionGrid per sideModule widths across full imageWidth per moduleQuiet zone per edge
Version 22533About 1.09 mmAbout 4.36 mm
Version 74553About 0.68 mmAbout 2.72 mm

Why the smaller squares are harder to resolve

The Version 7 modules in this example are about 38% narrower. Matching the module pitch of Version 2 would take a separate Version 7 layout about 58 mm wide, quiet zone included. At the same presentation distance and angle, smaller squares take up less room in the captured image. With fewer image pixels representing each square, blur or uneven render edges can make adjacent light and dark modules harder to distinguish. A published study with several software decoders found that sampling and blur affected decoding, with performance varying by decoder and test conditions. Performance of QR Code Detectors near Nyquist Limits

Error correction can recover some damaged information after the reader locates and samples the grid. Higher correction levels reserve more space for recovery data, which can require a larger version for the same payload. Hold the error correction setting steady during a density comparison so you can see what changes as the grid grows. Project Nayuki on QR generation and error correction

Check the image a visitor actually receives

A good export can turn into a soft image when an email template scales it down or a print driver fits it to a badge. Inspect the final phone view or printed proof. Check that square modules retain crisp edges and that all four sides have a clear margin. Use print artwork with clean vector edges where the print workflow supports it. For a bitmap at a known output size, generate it at a whole number of output pixels per module and check the final rendering for resampling. Project Nayuki's bitmap scaling controls

If the denser version is marginal, reserve more space for the whole image, including the quiet zone, or correct any unwanted rescaling. Where the credential format is still being designed, ask the credential owner which encoded fields are essential. Keep the fields and error correction required for that design.

Compare versions before approving the pass layout

For an isolated comparison, generate two QR symbols from the same inert test string. Set a higher minimum version for the second symbol, and check that the generator reports the same error correction level for both. Render the two at the same total size with their quiet zones intact. A project using phone and paper passes can run this check with a reader such as the FC7735, which supports both media. FC7735 user manual

  1. Present the two versions to the same reader under matched conditions. Use the planned reading positions and one time window chosen before testing. Record which presentations decode on the first attempt and which require a retry.
  2. Render the denser version at a larger size and repeat. If extra space helps under matched conditions, use that result to adjust the layout for the selected reader.
  3. Finally, repeat with non-operational fixtures representative of the shortest and densest passes the issuance workflow can produce. Check the actual message, app, or print path used to deliver them.

Choose the layout and reader together

Record the smallest print layout or on-screen size that meets your own project criteria under the tested conditions. If the layout is fixed, put those same sample formats into the hardware evaluation. Compare reading formats and mounting options across the FC7735 configurations you plan to test. Once the symbol reads reliably, verify the payload the host actually receives.

References

  1. Project Nayuki's QR generator documentation
  2. GS1 barcode implementation guideline
  3. Performance of QR Code Detectors near Nyquist Limits
  4. FC7735 user manual

Put the guide to work

Find the reference for your model.

Compare each device with your requirements. Confirm configuration and compatibility for the complete installation.

Discuss your project ↗

Interested in this guide?

Tell us the model and quantity.