Aztec Code Generator

Create Aztec codes for transport tickets, mobile coupons, and loyalty cards.

Any text or binary data (up to 3,832 characters)

Need a different barcode type? Browse all generators

What is an Aztec Code?

Aztec Code is a two-dimensional matrix barcode named after the resemblance of its central finder pattern to an Aztec pyramid. It can encode large amounts of data in a compact space and doesn't require a surrounding quiet zone, making it ideal for applications where space is limited. Aztec codes are commonly used in the transportation industry.

Aztec Code was invented by Andrew Longacre and Robert Hussey at Welch Allyn in 1995. Its distinctive bullseye center pattern serves as the finder, orientation, and reference grid all at once — eliminating the need for a surrounding quiet zone. This makes Aztec codes uniquely suited to environments where printing real estate is scarce, such as thermal-printed tickets and wristbands. The configurable Reed-Solomon error correction (from 5% to 95%) lets you balance data capacity against damage tolerance depending on the application.

Want to learn more about Aztec Code barcodes? Read our complete guide to Aztec Code for transportation ticketing, mobile applications, and technical specifications.

How to Use This Generator

Creating an Aztec code is straightforward:

  1. Enter your data (ticket information, coupon codes, or any text up to 3,832 characters)
  2. Click 'Generate Barcode' to create your Aztec code
  3. Select error correction level in advanced options for better reliability (optional)
  4. Download your code as SVG, PNG (multiple resolutions), or PDF

Technical Specifications

Key technical details for Aztec Code:

Data CapacityUp to 3,832 numeric, 3,067 alphanumeric, or 1,914 bytes of binary data
Character SetFull ASCII, plus extended channel interpretation (ECI) for international character sets
Symbol Size15x15 to 151x151 modules (Compact: 1-4 layers; Full Range: 1-32 layers)
Check DigitNot applicable — error correction is handled by Reed-Solomon codewords
Error CorrectionReed-Solomon, configurable from 5% to 95% of symbol capacity (default ~23%)
StandardISO/IEC 24778

Common Use Cases

Aztec codes are perfect for:

  • Train, bus, and airline tickets with boarding information
  • Mobile coupons and promotional codes for marketing
  • Loyalty cards and membership programs with encoded data
  • Hospital patient wristbands with encoded identification and allergy data
  • Government and state-issued documents requiring machine-readable data in limited space

Tips & Best Practices

Get the most out of your Aztec codes:

  • Use an error correction level of at least 23% (the default) for printed tickets that may be folded, creased, or handled roughly.
  • Even though Aztec codes don't require a quiet zone, leaving at least 1 module of white space around the symbol improves scan speed on older readers.
  • For mobile tickets displayed on phone screens, keep the data payload short to produce a smaller symbol with larger modules — this improves scanning under variable lighting.
  • Test your Aztec codes on the actual gate scanners or readers that will process them. Not all general-purpose barcode apps support Aztec decoding.

Test Your Aztec Code

After generating your Aztec code, verify it scans correctly on mobile devices before using it for tickets or coupons. Use our free barcode scanner to test your codes instantly - simply scan with your camera or upload an image to ensure proper encoding and readability. Test your Aztec code with our free scanner.

Frequently Asked Questions

What is an Aztec code used for?

Aztec codes are most commonly found on transport tickets — train, bus, and airline boarding passes. European rail operators like Deutsche Bahn, SNCF, and Trenitalia print them on mobile and paper tickets. They're also used on event tickets, mobile coupons, and healthcare wristbands. Their compact size and lack of a required quiet zone make them ideal for printing in tight spaces.

What is the difference between Aztec code and QR code?

Both are 2D matrix barcodes, but they differ in structure and typical use. Aztec codes have a central bullseye finder pattern and need no quiet zone (white border), while QR codes use corner finder squares and require a quiet zone on all four sides. QR codes hold more data (up to 7,089 digits vs. 3,832) and are more widely recognized by consumers. Aztec codes dominate in transport ticketing.

How much data can an Aztec code store?

An Aztec code can store up to 3,832 numeric characters, 3,067 alphanumeric characters, or 1,914 bytes of binary data. The actual capacity depends on the error correction level you choose — higher error correction uses more of the symbol's space, reducing room for data. For a typical transport ticket, even small Aztec symbols provide more than enough capacity.

Why do train tickets use Aztec codes?

Train operators chose Aztec codes because they don't need a quiet zone, which saves space on small tickets. They also have configurable error correction (5% to 95%), so the code remains scannable even when a ticket is creased or partially damaged. The IATA and UIC standards for electronic ticketing both specify Aztec Code, cementing its role in transport.

Is this Aztec code generator free?

Yes, entirely free. No registration, no watermarks, and no limits on how many codes you generate. Download your Aztec codes as SVG, PNG, or PDF. Everything is processed in your browser, so your data stays on your device.

Related Barcode Formats