Aztec Code Scanner
Read Aztec — the compact 2D code used on rail and airline tickets, including phone screens.
Scan a code with your camera, drop in an image, or paste one with Ctrl + V.
How to use the Aztec Code Scanner
- Point your camera at the code, drop in a photo, or paste one with Ctrl + V.
- Aztec needs no blank margin, so a screenshot cropped tight to the code still reads.
- The decoded contents appear, with the raw text one click away.
About the Aztec Code Scanner
Aztec is the 2D code you meet at a railway barrier or an airport gate. It is named for the stepped square at its centre, which resembles an Aztec pyramid seen from above, and that central finder pattern is the key to its practical advantage: because the reference point is in the middle rather than at the corners, a reader can lock on without seeing the code's outer edges.
That matters more than it sounds. It means an Aztec code needs no quiet zone — no blank margin around it — where a QR code does. On a printed ticket that saves space; on a phone screen held against a gate reader it is the difference between a code that scans and one that does not, because the surrounding interface is right up against it.
Aztec is also efficient at small data sizes, which suits a ticket carrying a reference number and a few fields rather than a long payload. Rail operators across Europe standardised on it for exactly that combination: compact, no margin needed, and reliable off a screen at an odd angle in poor light.
Read one with your camera, from an image, or by pasting. Everything decodes locally and nothing is uploaded — worth noting, since a ticket barcode is a credential. For the code used on licences and boarding passes see the PDF417 scanner.
Frequently asked questions
Why do train tickets use Aztec rather than QR?
Because Aztec needs no quiet zone around it and locks on from a central pattern, so it scans reliably off a phone screen where the surrounding interface leaves no margin.
What is the square in the middle?
The finder pattern. Having it at the centre rather than the corners is what lets a reader orient the code without seeing its outer edges.
Is a ticket barcode sensitive?
Treat it as a credential. It usually encodes a booking reference that can be used to view or alter the booking, so avoid posting photographs of tickets publicly.
Does it work from a screenshot?
Yes, and better than most symbologies, precisely because it does not need a blank margin. A screenshot cropped tightly to the code still decodes.

