2D Barcodes2D MatrixIntroduced 1995

Aztec Code

A compact matrix code with a bullseye finder and no quiet zone — popular on rail tickets.

Aztec Code Specification

Character setNumeric, alphanumeric (upper and lower case), byte, and digit-pair compaction modes
Data lengthUp to 3,832 numeric / 3,067 alphanumeric / 1,914 bytes (full range)
Check digitNo check digit; Reed-Solomon correction selectable in 23 steps (~5%-95%)
DensityComparable to QR Code at equal size; higher usable density due to zero quiet zone
Module width (X-dimension)0.30-0.50 mm typical for print; excellent performance on screens
Print ratioSquare grid of uniform modules
MagnificationCompact symbols from 15×15; full-range up to 151×151 modules
Quiet zoneNone required — the only major symbology with a true zero quiet zone
StandardISO/IEC 24778; AIM USS Aztec Code
OriginAndrew Longacre Jr., Welch Allyn, 1995
Sample dataThis is Aztec Code

Try It: Generate a Aztec Code Barcode

This live generator is preconfigured for Aztec Code. Adjust size, colors, and text — then download as PNG or SVG. Free, no signup, all encoding happens in your browser.

Open the full Aztec Code generator →

What Is Aztec Code?

Aztec Code, standardized as ISO/IEC 24778, is a 2D matrix symbology built around a square bullseye finder at the center with data spiraling outward. The distinctive design eliminates the quiet zone entirely — the finder pattern and orientation marks are internal — and the grid starts as small as 15×15 modules (compact mode). Full-range symbols scale up to 151×151 modules carrying up to 3,832 digits or 1,914 bytes.

Error correction is unusually tunable: 23 selectable levels from roughly 5% to 95% of the symbol, so an implementer can trade capacity for robustness precisely. Aztec found its home in rail and transit ticketing (SNCF, Deutsche Bahn, and many national railways print it on tickets and phone screens), government registration documents, and tickets scanned from backlit displays — where its lack of quiet-zone margins and tolerance for low contrast shine.

Common Applications

  • Railway and transit tickets (print and mobile screen)
  • Government vehicle registration and permits
  • Airline crew and airline industry documentation
  • Tickets scanned from backlit phone displays

Aztec Code FAQ

Why does Aztec Code need no quiet zone?

The central bullseye and the mode message ring around it are self-locating: a decoder finds the target, reads orientation and layer count from the ring, and then samples outward. Because locating does not depend on detecting an empty margin, the symbol can butt directly against other print — a real advantage on crowded tickets.

What is the difference between compact and full-range Aztec?

Compact Aztec (1-2 data layers around the bullseye, up to ~108 bytes) is for short strings and is instantly recognizable as a tight spiral. Full-range Aztec adds a grid of reference patterns every 16 modules, scaling to 32 layers and thousands of characters. Most ticket data falls in between, using mid-size full-range symbols.