Skip to content

Aztec Code (ISO 24778) - Barcode Type

Invented by Andrew Longacre at Welch Allyn Inc in 1995, the Aztec Code symbol is a matrix symbol with a distinctive bulls-eye finder pattern. Zint can generate Compact Aztec Code (sometimes called Small Aztec Code) as well as "full-range" Aztec Code symbols. By default, it will automatically select the symbol type and size based on the length of the data to be encoded. Error correction codewords will normally be generated to fill at least 23% of the symbol.

Two options are available to change this behavior: the size of the symbol can be specified to a value between 1 and 36 according to the following table. The symbols marked with an asterisk (*) in the table below are "compact" symbols, meaning they have a smaller bulls-eye pattern at the center of the symbol.

Input Symbol Size
1 15 x 15*
2 19 x 19*
3 23 x 23*
4 27 x 27*
5 19 x 19
6 23 x 23
7 27 x 27
8 31 x 31
9 37 x 37
10 41 x 41
11 45 x 45
12 49 x 49
13 53 x 53
14 57 x 57
15 61 x 61
16 67 x 67
17 71 x 71
18 75 x 75
19 79 x 79
20 83 x 83
21 87 x 87
22 91 x 91
23 95 x 95
24 101 x 101
25 105 x 105
26 109 x 109
27 113 x 113
28 117 x 117
29 121 x 121
30 125 x 125
31 131 x 131
32 135 x 135
33 139 x 139
34 143 x 143
35 147 x 147
36 151 x 151

Note that in symbols which have a specified size, the amount of error correction is dependent on the length of the data input, and Zint will allow error correction capacities as low as 3 codewords. Alternatively, the amount of error correction data can be specified by using one of the values from the following table:

Mode Error Correction Capacity
1 >10% + 3 codewords
2 >23% + 3 codewords
3 >36% + 3 codewords
4 >50% + 3 codewords

It is not possible to select both symbol size and error correction capacity for the same symbol. If both options are selected, then the error correction capacity selection will be ignored. Aztec Code is capable of encoding any extended ASCII character data up to a maximum length of approximately 3823 numeric or 3067 alphabetic characters or 1914 bytes of data. A separate symbology ID can be used to encode Health Industry Barcode (HIBC) data, which adds a leading '+' character and a modulo-49 check digit to the encoded data.