Guide

Aztec code vs QR code

An Aztec code is a square 2D barcode with a bullseye in the middle instead of squares in the corners. It needs no blank margin and reads well from phone screens, which is why many boarding passes and rail tickets use it. For anything the public scans with a phone camera, like links, menus and Wi-Fi, use a QR code.

The eye in the middle

If the target is in the centre, it's Aztec. If there are three big squares in the corners, it's a QR code.

Andrew Longacre Jr. and Robert Hussey designed the Aztec code at Welch Allyn, a US scanner maker, and filed the patent in 1995. The name comes from the centre, which looks like an Aztec pyramid seen from above. The data spirals outward from it in layers. It's standardised as ISO/IEC 24778 and free to use.

Why the finder's position matters

A QR code scanner finds the three corner squares first, works out the grid from them, and reads inward. Anything printed tight against the code can be mistaken for part of it, so a QR code needs a blank quiet zone.

An Aztec scanner finds the bullseye and reads outward. The standard doesn't require a margin, so an Aztec code can sit close to other print, though some scanners still like a little space.

The IATA boarding pass guide gives one more reason for the centre finder: on a phone screen, the middle of the code is "less likely to be affected by a lens than the edge" (IATA BCBP guide).

How the two compare

Aztec codeQR code
FinderOne bullseye in the centreThree squares in the corners
MarginNot required4 modules
Sizes15 × 15 to 151 × 151 modules21 × 21 to 177 × 177 modules
Largest capacityAbout 3,832 digits or 1,914 bytes7,089 digits or 2,953 bytes
Error correctionReed–Solomon, set as a percentageReed–Solomon, four levels
StandardISO/IEC 24778ISO/IEC 18004
Phone cameraSome apps and Google Lens; variesBuilt into iPhone and Android cameras
Common usesBoarding passes, rail and transit ticketsLinks, menus, Wi-Fi, payments, marketing

Aztec capacities are for the largest symbol and vary with the data, so read them as upper limits.

What boarding passes actually use

Many paper passes carry PDF417, the wide stacked barcode, and many phone passes carry Aztec, so it's easy to assume that's the rule. IATA's implementation guide is broader. Its bar-coded boarding pass standard allows PDF417, Aztec, Data Matrix and QR code on printed passes, and Aztec, Data Matrix or QR code on mobile passes. IATA says it has no preference among the three matrix codes, and that airlines choose by region and habit, for example "QR in Asia". Gate scanners are meant to read all three.

The same guide gives a sense of scale: an 83 × 83 Aztec code holds 900 alphanumeric characters, more than a boarding pass needs.

Which to use

For tickets, the issuing platform decides. Ticketing and wallet systems generate the Aztec or QR code for you, and the reader at the gate is the operator's. We don't make Aztec codes.

For everything else, use a QR code. A ticket only has to talk to one company's scanners; a poster has to talk to every phone, and every modern iPhone and Android camera reads QR codes out of the box. They also know what to do with common QR contents like web links, Wi-Fi logins and contact cards.

Written by Last updated