Skip to content
ScanHatch

Aztec Code Generator

Aztec codes are square 2D codes read from a bullseye in the centre, so they need no blank margin. Enter your text and download.

Choose a barcode format

Need a QR code? Use the QR Code Generator, which adds styling and logos.

Enter the text to encode.

Read the Aztec guide for data rules, common mistakes and printing advice.

Checking an existing number? Barcode Validator

Privacy: Codes are created in your browser. What you type isn't sent to ScanHatch or stored by us. Privacy policy

How to use it

  1. Enter the text to encode.
  2. Set the printed width. A margin is optional for Aztec, but don't let artwork touch the code.
  3. Download and test with the ticket reader or app that will scan it.

The bullseye

An Aztec code grows outwards from a central finder pattern of concentric squares. Scanners locate the bullseye first and read the data in layers around it. Because it doesn't depend on the edges, an Aztec code needs no quiet zone and can sit closer to other printed content than a QR code or Data Matrix.

Small codes use the compact form (up to 27 × 27 modules); larger ones use the full-range form, which can hold around 3,000 characters of text. Reed-Solomon error correction lets damaged codes still be read.

Where Aztec is used

  • Rail tickets. European rail operators use the UIC 918.3 standard, which is based on Aztec.
  • Mobile boarding passes and event tickets, where the code is shown on a phone screen.
  • Transport and ticketing systems in general, where the reader hardware is controlled.

Things to know

  • Don't cover the central bullseye with a logo or design. Scanners need it to find the code.
  • Built-in phone cameras mostly look for QR codes, so for codes that the public will scan with their own phones, QR is the safer choice.
  • ScanHatch's Aztec generator accepts standard English characters (ASCII).

Frequently asked questions

Does an Aztec code need a white border?

No, that's one of its advantages. A small margin doesn't hurt, but it isn't required.

Aztec or QR code?

QR codes are recognised by more phone cameras, so they're better for the public. Aztec suits ticketing systems where you control the scanner.

Related formats

Further reading

Need another format? The full Barcode Generator supports 15 barcode and 2D code types.