← Back to articles

Aztec Codes: The Square-Spiral Format on Your Train and Concert Tickets

June 18, 2026

That square barcode with a little bullseye in the middle on your train ticket or concert pass isn't a QR code. It's an Aztec Code — a different 2D barcode built for exactly this job: holding a ticket's data in a small space and still scanning when the paper is crumpled or the screen is dim.

Here's what an Aztec Code is, how its target-shaped centre works, and why railways and event organisers reach for it instead of QR.

What an Aztec Code is

An Aztec Code is a two-dimensional matrix barcode, invented in 1995 by Andrew Longacre Jr. and Robert Hussey at Welch Allyn. The name comes from the pattern in the middle: those concentric square rings look like an Aztec pyramid seen from directly above. It's defined by the international standard ISO/IEC 24778, first published in 2008 and revised in 2024, and the symbology is in the public domain — anyone can generate or read one without a licence.

How it actually works

The bullseye in the centre is the key. Most barcodes hunt for markers near the corners; an Aztec Code is read from the inside out, starting at that central target of alternating rings. The scanner locks onto the bullseye, reads a few orientation bits right next to it, and then spirals outward to pull the data.

That inside-out design has a neat consequence: an Aztec Code needs no "quiet zone," the band of empty white space that QR codes require around their edges. Without that margin to reserve, the same data fits into a smaller footprint — handy on a cramped ticket.

Capacity tops out around 3,832 numeric digits, 3,067 alphanumeric characters, or 1,914 bytes, which is plenty for a ticket's reference number, route, and a security signature. Symbols range from a tiny 15×15 grid of modules up to 151×151. Like QR and PDF417, Aztec uses Reed-Solomon error correction, but its range is unusually wide — you can dial recovery anywhere from about 5% to 95%, so a ticket can survive a surprising amount of smudging, folding, or a cracked phone screen.

Where you'll see it

Aztec shows up most on things you scan to get somewhere. Across Europe, it's the standard barcode for rail tickets: the European Union Agency for Railways specifies Aztec in its interoperability rules, so the ticket you print at home or pull up in an app uses the same format from one operator to the next. Several US, Canadian, and New Zealand airlines use Aztec for mobile boarding passes, and plenty of concert and event tickets carry it too.

The reasons are practical. Transit barcodes get treated badly — folded in a pocket, scanned off a low-brightness phone, swiped past a reader in a second. Aztec's strong error correction and quiet-zone-free compactness make it dependable in exactly those conditions.

Aztec vs. QR and PDF417

All three are 2D barcodes, but they settled into different niches. QR codes won the everyday web link — menus, posters, payments — because phone cameras read them instantly and they're familiar. Boarding passes printed on paper and the back of your driver's license usually use PDF417, a wide rectangle; our explainer on PDF417 vs. QR code digs into why. Aztec sits between them: square like QR, but more compact thanks to the missing quiet zone, which is why ticketing systems favour it. If you want the bigger picture on when each makes sense, see our guide to QR codes versus barcodes.

Scanning an Aztec code with QRDock

Modern phone cameras can read Aztec codes, but many built-in scanners are tuned mainly for QR links and may ignore other formats. QRDock reads ten formats — including Aztec, QR, PDF417, and Data Matrix — so it'll decode the code on a rail ticket or event pass and tell you which type it found. If the code points to a web link, QRDock runs a URL safety check before you open it, and it doesn't track what you scan or show ads. To try it, open QRDock, point the camera at the bullseye, and let it read from the centre out.

FAQ

Is the barcode on my train ticket a QR code?

Often it's an Aztec Code, not a QR code — especially on European rail. You can tell them apart by the middle: Aztec has a bullseye of concentric squares in the centre, while QR has three separate squares in its corners.

Can my phone scan an Aztec code?

Yes. A phone camera can read Aztec, though some built-in scanners focus on QR links. A scanner app like QRDock reads Aztec codes directly.

Why does an Aztec code have a target in the middle?

That central bullseye is the finder pattern. The scanner locks onto it and decodes the symbol from the inside out, which is also why an Aztec code needs no quiet zone around its edge.

How much data does an Aztec code hold?

Up to roughly 3,832 digits, 3,067 alphanumeric characters, or 1,914 bytes — far more than a ticket needs, leaving room for heavy error correction.