Aztec codes

A page of Aztec codes, drawn as squares.

A page of Aztec codes drawn as squares. Aztec is the code on rail and airline tickets in Europe, and what sets it apart is the bullseye at its centre: a scanner finds it without a white margin around the code, so an Aztec code fits where nothing else would.

The codes on this page are still set apart from each other, so that one code's squares are not read as another's, but none of them carries the margin a QR code needs. Each is captioned with what it says, and a code reader is run over the finished page to prove the reading.

What this example shows

  • Aztec codes drawn line by line, square by square.
  • No white margin needed around it, thanks to the bullseye at the centre.
  • Each code captioned, and read back by a code reader.

The code, in full

The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.

The document itself

The same document is written in each of these languages. Open the one you want to look at.

Open the document in English Open the document in French

Read the Rust source Read the Python source

First page of Aztec codes

What this document weighs

This document weighs 42,856 bytes.

The team has since put a heading and two lines at the top of this page saying what the codes are for, so the earlier figure was taken on a document this one is no longer. See every document measured.

Examples near this one

QR codes

A page of QR codes, drawn as squares.

PDF417 codes

A page of PDF417 codes, drawn as stacked bars.

Links and marks on placed text

Links and marks hung on text the engine has already placed: a band behind a line, an underline, a boxed cell — every rectangle taken from what the layout and the table report afterwards, none of it measured by hand.

Every example, by subject

Glossary

QR Code
The square of black and white dots you point a telephone at: on a poster, on a restaurant table, at the foot of a bill. It carries a web address, or the exact details of a payment, so nobody has to type anything in. On an invoice it turns paying into one tap.
Aztec
The code with a little target in the middle, the one on a train ticket or on a boarding pass held up on a telephone screen. It was made to be read off a lit screen and through a scratched window, and it takes less room than the others for the same text.