Standards/aztec-rune
Aztec Rune
Overview
An Aztec Rune is a fixed 11 × 11-module symbol that carries one value from 0 to 255 79. It is the core of a compact Aztec Code symbol (the bull's-eye finder, the orientation marks and the ring around them) with no data layers. The 8-bit value and its Reed–Solomon check words sit in the ring where a normal Aztec symbol puts its mode message 1216. Every other bit of that ring is inverted, so a reader can tell a rune from an ordinary compact Aztec symbol 16. There are exactly 256 runes 810.
Runes are specified in Annex A (normative), "Aztec Runes", of ISO/IEC 24778, the Aztec Code standard. The annex is in both the 2008 edition and the 2024 second edition 23. Aspose names augmented-reality object tracking and the marking of very small items as intended uses 7.
History
Aztec Code. The Aztec Code was invented by Andrew Longacre, Jr. and Robert Hussey, and AIM, Inc. published it in 1997 4. Their US patent 5,591,956, "Two dimensional data encoding structure and symbology for use with optical readers", was filed by Welch Allyn on 15 May 1995 and published on 7 January 1997 5. Wikipedia reports that the patent was dedicated to the public 4. The patent text on Google Patents does not use the word "rune" 5.
Standardisation. BWIPP lists two standards for Aztec Runes: ISO/IEC 24778 and ANSI/AIM BC13, "ISS Aztec Code" 6. The tables of contents of ISO/IEC 24778:2008-02 and ISO/IEC 24778:2024-04 both contain "Annex A (normative) Aztec Runes", on page 24 and page 26 respectively 23. The second edition was published on 9 April 2024 by ISO/IEC JTC 1/SC 31. It runs to 48 pages 1.
No public source found names the designer of the rune format. None says when runes were added to the AIM specification, or why.
Open-source reading (2024). Java ZXing's Aztec detector has no rune handling 23. Rune support reached the zxing-cpp project in a pull request opened on 10 April 2024 and merged on 16 April 2024. The pull request cites "Annex A of ISO/IEC 24778:2008" 16. It shipped in zxing-cpp v2.3.0 on 1 January 2025 as "Add support for detecting and reading Aztec Runes" 21.
Technical specification
The ISO text is paywalled 1. The rules below come from vendor documentation and from four independent open-source implementations. Zint, BWIPP and OkapiBarcode encode runes, and zxing-cpp decodes them. All four agree on every point below 12131517.
Geometry. Every rune is 11 × 11 modules, with no size variants 79.
- Finder. A bull's-eye of four alternating one-module rings around a one-module centre square 8.
- Orientation marks. The next ring out holds three-module chevron marks in each corner 8:
| Corner | Orientation pattern |
|---|---|
| Upper left | 3 black modules |
| Upper right | 1 white, then 2 black |
| Lower right | 1 black, then 2 white |
| Lower left | 3 white |
- Quiet zone. None is needed, because a rune is read from the centre outwards 789.
- White on black. Printing white on black is an option 8.
Message ring. In a compact Aztec symbol, the outer ring of the 11 × 11 core holds the 28-bit mode message, laid clockwise from the top-left corner in four 7-bit pieces between the orientation marks 4. The rune puts its own 28 bits in the same places 1215. Aspose describes this ring as "an 8-bit mode message protected by error correction" 7. Han-soft calls it "a numerically distinct mode message which in this case conveys 8 bits of actual data" 9. Seagull and Aspose instead call it "one data layer" read clockwise 78.
Encoding steps.
| Step | Rule | Sources |
|---|---|---|
| 1. Input | 1–3 decimal digits, value 0–255; anything else is rejected | 121315 |
| 2. Split | value → two 4-bit data words: high nibble, low nibble (e.g. 123 = 0111 1011 → 7, 11) | 1213 |
| 3. Check words | 5 Reed–Solomon check words over GF(16), field polynomial x⁴ + x + 1, giving 7 words = 28 bits | 12134 |
| 4. Invert | XOR each 4-bit word with 1010 (every other bit inverted) | 121316 |
| 5. Place | 28 bits in the mode-message ring, clockwise from the top-left | 415 |
Steps 2 and 3 are the same as for a compact Aztec mode message, which is protected by a (7,2) Reed–Solomon code over GF(16) 4.
Why it is distinct. The inversion keeps a rune from passing as a valid compact mode message. zxing-cpp first tries to decode the ring as a normal mode message. If that fails on a compact-sized core, it XORs each word with 1010 and tries again. If the second attempt succeeds, the symbol is a rune 1617.
Example (value 0). BWIPP's test suite copies the standard's Figure A.1 runes (0, 25, 125, 255) as module matrices; 1 = dark 14:
1 1 1 0 1 0 1 0 1 0 1
1 1 1 1 1 1 1 1 1 1 1
0 1 0 0 0 0 0 0 0 1 0
1 1 0 1 1 1 1 1 0 1 1
0 1 0 1 0 0 0 1 0 1 0
1 1 0 1 0 1 0 1 0 1 1
0 1 0 1 0 0 0 1 0 1 0
1 1 0 1 1 1 1 1 0 1 1
0 1 0 0 0 0 0 0 0 1 0
0 1 1 1 1 1 1 1 1 1 1
0 0 1 0 1 0 1 0 1 0 0
Decoded output. zxing-cpp returns the value as a three-digit, zero-padded string. Its source comments "Bizarrely, this is what it says to do in the spec" 18. It also reports the symbology identifier ]zC, with a comment that runes cannot carry ECI 18. Han-soft's component has a FixedLength property that adds the leading zeros when encoding 9.
Restrictions. BWIPP rejects a layer count, reader initialisation and Structured Append for runes 1314. Zint says its rune encoder does not support Structured Append 11.
Conflicting vendor text. Seagull's guide says Aztec Rune "supports all 255 ASCII characters (digits 0-9, text, and binary data)". It also says the character encodation "is the same as for the compact version of Aztec Code" 8. That contradicts every implementation above, all of which accept only a number from 0 to 255.
Use cases
- Augmented reality. Aspose names "object tracking in Augmented Reality systems" as an intended application 7.
- Very small items. The same page names "marking of very small items", where the message can be limited to 3 digits 7.
No public source found documents a named deployment of Aztec Runes in production. Searches for runes in AR and fiducial-marker literature found only the Aspose description.
Implementations
Encoders.
- BWIPP / bwip-js. BWIPP has an
aztecruneencoder. It is a wrapper that callsazteccodewithformat=rune13. The data is "the rune number 0 to 255" 6. Errors are raised for non-numeric input (aztecRuneNotNumeric), a value over 255 (aztecRuneInvalid), a layer count,readerinit, and Structured Append 1314. bwip-js, the JavaScript port that renders this site's playground, listsaztecruneas "Aztec Runes" 24. - Zint (C).
BARCODE_AZRUNEis symbology 128 11. The encoder accepts at most 3 digits with a value of 0 to 255 12. The manual describes runes as "a truncated version of compact Aztec Code for encoding whole integers between 0 and 255, as defined in ISO/IEC 24778 Annex A" 11. - OkapiBarcode (Java). The
AztecRuneclass accepts 1–3 digits up to 255, and places bits from a fixed 11 × 11 map 15. - Commercial.
Decoders.
- zxing-cpp (C++) has an
AztecRunebarcode format. It is flagged as readable but not writable through its own writer 1920. The reader looks for runes only when that format is enabled 17. Its detector notes that the smallest possible Aztec symbol is a rune, so it searches down to that size 17. - Java ZXing has no rune handling in its Aztec detector 23.
- Aspose states that Aztec Rune barcodes "can be detected and decoded by Aztec Code scanners" 7. No scanner vendor's support list found confirms that for hardware readers.
Accusoft's ImageGear .NET barcode documentation lists "Rune" as one of three Aztec code sizes: 256 symbols, 11 × 11 modules, numeric capacity 3 digits 10.
Comparison
| Feature | Aztec Rune | Compact Aztec | Full Aztec |
|---|---|---|---|
| Size | 11 × 11 only | 15 × 15 to 27 × 27 (1–4 layers) | 19 × 19 to 151 × 151 |
| Symbols | 256 | 4 sizes | 40 sizes |
| Capacity | one value 0–255 (3 digits) | up to 110 digits / 89 characters / 53 bytes | up to 3,832 digits / 3,067 characters / 1,914 bytes |
| Data layers | none | 1–4 | up to 32 |
| Ring around the bull's-eye | 8-bit value + 5 RS words, alternate bits inverted | mode message (layers + data-word count) | mode message, 40 bits |
| Reference grid | no | no | yes |
A rune trades all capacity for the smallest symbol in the Aztec family. The smallest compact Aztec symbol, with one data layer, is 15 × 15 4. The rune is four modules narrower and has no quiet zone 7. It reuses the Aztec finder, so it suits systems that already scan Aztec Code and need only one of 256 identifiers 89.
Fun facts
- Runes 68 and 223 have no dark modules on their bottom row. zxing-cpp's detector therefore allows a smallest symbol dimension of 10 rather than 11 17.
- A rune encoding 7 decodes as "007". zxing-cpp's source calls this zero-padding bizarre but says it follows the spec 18.
Status
Aztec Runes are current. Annex A of ISO/IEC 24778:2024, the edition in force, still specifies them 13. Zint's manual of July 2026 cites ISO/IEC 24778:2024 11. Open-source support was still being maintained in 2026: zxing-cpp added error-count (UEC) reporting for runes on 30 September 2026 22. No successor format is known.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal