Repository navigation
Aztec Code
Terry Burton edited this page Oct 12, 2026
·
30 revisions
Aztec Code is a 2D matrix-style barcode symbology. It can encode full 256-character extended-ASCII.
Uses:
- Mobile airline boarding passes (IATA Bar Coded Boarding Pass).
- European rail tickets (UIC Flexible Content Barcode).
Variants:
- Compact Aztec Code is a reduced form of Aztec Code used in applications where the space for the symbol is restricted.
- Aztec Runes are a set of small barcode symbols that are used for special applications.
Standards: ISO/IEC 24778, ANSI/AIM BC13 - ISS Aztec Code.
- The data field can contain any extended ASCII data. The default interpretation of data by readers is in accordance with ISO/IEC 8859-1. When supported by the receiver, characters from other code pages can be encoded using Extended Channel Interpretation (ECI).
- When the parse option is specified, any instances of
^NNNin the data field are replaced with their equivalent ASCII value, useful for specifying unprintable characters. - When the parsefnc option is specified, non-data function characters can be specified by escape sequences:
-
^FNC1: FNC1 -
^ECI000000to^ECI999999: ECI indicators -
^FNC@: FNC1 in second position, written before an AIM application indicator of one letter or two digits at the start of the data, e.g.^FNC@T...or^FNC@99.... See FNC1 in second position. - ECIs are not available with FNC1 in first or second position.
-
- The eclevel option is used to specify the percentage of error correction to be applied when expanding the data, from
5to95, by default23. - The ecaddchars option is used to specify how many additional error correction characters to add after applying the eclevel percentage,
3or more, by default3. - The layers option is used to specify a particular number of layers in which to encode the data, between
1and32. By default the encoder will create a symbol with the minimal number of layers to encode the given data. - The readerinit option denotes that the symbol is used for programming the barcode reader. Reader programming is only compatible with 1- to 22-layer full-range Aztec Code symbols, so layers must also be given, from
1to22. - The raw option denotes that the data field is providing the input as a pre-encoded bitstream suitable for direct low-level encoding.
-
Deprecated: Consider Compact Aztec Code instead. The format option can also be used to create Compact Aztec Code symbols, using
format=compact. -
Deprecated: Consider Aztec Runes instead. The format option can also be used to create Aztec Code "runes", using
format=rune. In this case the rune symbol number should be given in the data field. - The sampos, samtotal and samid options make the symbol one of a Structured Append sequence of 2 to 26 symbols, which a reader reassembles into a single message. sampos and samtotal are required:
- sampos is the position of the symbol in the sequence, from 1 to samtotal.
- samtotal is the number of symbols in the sequence.
- samid is an optional message ID, which is the same in every symbol of the sequence and must not contain spaces. Uppercase letters encode most compactly.
- Structured Append is not available for Aztec Runes, reader initialisation symbols or with the raw option.
A symbol with a fixed number of layers:
Data: ABC123
Options: layers=3
Encoder: azteccode
A symbol with additional error correction characters:
Data: TEST
Options: ecaddchars=20 layers=4
Encoder: azteccode
Home | Download | Documentation (PDF) | Source | Support | Issues | Online Barcode Generator
Point of Sale
GS1 DataBar
- GS1 DataBar Omnidirectional
- GS1 DataBar Stacked Omnidirectional
- GS1 DataBar Expanded
- GS1 DataBar Expanded Stacked
- GS1 DataBar Truncated
- GS1 DataBar Stacked
- GS1 DataBar Limited
- GS1 North American Coupon Code
Supply Chain
- EAN-14
- ITF-14
- SSCC-18
- GS1-128
- GS1 DataMatrix
- GS1 QR Code
- GS1 Digital Link Data Matrix
- GS1 Digital Link QR Code
- GS1 DotCode
Two-dimensional Symbols
- Aztec Code
- Compact Aztec Code
- Aztec Runes
- Data Matrix
- Data Matrix Rectangular
- Data Matrix Rectangular Extension
- DotCode
- Han Xin Code
- PDF417
- Compact PDF417
- MicroPDF417
- QR Code
- Micro QR Code
- Rectangular Micro QR Code
- Swiss QR Code
- EPC QR Code
- EMV QR Code
One-dimensional Symbols
Postal Symbols
- Australia Post
- Canada Post PostBar
- CEPNet
- DPD Parcel Label
- Deutsche Post Identcode
- Deutsche Post Leitcode
- Japan Post
- Korea Post
- MaxiCode
- UPS MaxiCode
- Royal Mail
- Royal Mail Mailmark
- Royal Mail Mailmark 4-state
- Royal TNT Post
- UPU S10
- USPS Intelligent Mail
- USPS POSTNET
- USPS PLANET
- USPS FIM symbols
Pharmaceutical Symbols
- Italian Pharmacode
- Pharmacode
- Two-track Pharmacode
- PZN
- PPN-Code
- HIBC Code 39
- HIBC Code 128
- HIBC PDF417
- HIBC MicroPDF417
- HIBC QR Code
- HIBC Data Matrix
- HIBC Data Matrix Rectangular
- HIBC Codablock F
- HIBC Aztec Code
Less-used Symbols
- BC412
- Channel Code
- Codabar
- Codablock F
- Codablock A
- Code 11
- Code 16K
- Code 25
- Ultracode
- IATA 2 of 5
- Marks & Spencer
- Matrix 2 of 5
- Datalogic 2 of 5
- COOP 2 of 5
- Code 49
- Code One
- Grid Matrix
- Datastrip 2D
- MSI Plessey
- Plessey
- Anker Code
- PosiCode
- Telepen
- Telepen Numeric
- Kodak Patch Codes
- VIN
- LOGMARS
- DX Film Edge
- EAN-13 Composite
- EAN-8 Composite
- UPC-A Composite
- UPC-E Composite
- GS1 DataBar Omnidirectional Composite
- GS1 DataBar Stacked Omnidirectional Composite
- GS1 DataBar Expanded Composite
- GS1 DataBar Expanded Stacked Composite
- GS1 DataBar Truncated Composite
- GS1 DataBar Stacked Composite
- GS1 DataBar Limited Composite
- GS1-128 Composite
Raw Symbols
Partial Symbols