Skip to content
barcoder

Standards/grid-matrix

Grid Matrix

Type2D Matrix
PrimaryCN
Completeness71%medium

Overview

Grid Matrix is a square, variable-size two-dimensional matrix barcode symbology designed primarily for the efficient encoding of Chinese characters alongside ASCII and binary data. It is defined by AIM specification AIMD014, "Information technology — Automatic identification and data capture techniques — Bar code symbology specification — Grid Matrix" 1. The symbol is built from dark- and light-framed "macromodules" arranged in an alternating checkerboard pattern that doubles as the finder structure, giving the code the appearance of a tiny chessboard 1 2.

History

Grid Matrix was invented by Shenzhen Syscan Technology Co., Ltd. of China, with development attributed to Dr. Xuchuan Fan of Syscan 2 3. AIM Global announced the public availability of the International Symbology Specification — Grid Matrix in 2008; it was notable as the first international symbology specification to originate from China 3. Its motivating purpose was to provide a native, space-efficient way to encode Chinese characters (the GB character set) at a time when the dominant matrix codes — QR Code and Data Matrix — were optimised around Latin and (for QR) Japanese Kanji rather than the Chinese national character standard 1 2 3.

Technical specification

The symbol is assembled from macromodules, each a 6×6 module unit that carries a layer ID number and two seven-bit codewords; macromodules have either a black or a white frame and alternate throughout the symbol, forming a grid that serves as a robust finder pattern, with the four corners always black-framed 1. A minimum quiet zone of six modules is required on all sides 1.

Sources differ on the size range. Seagull's BarTender guide states symbols range from 3×3 to 27×27 macromodules 1, while the Han-soft specification describes thirteen versions (1–13) spanning 18×18 modules (version 1) to 162×162 modules (version 13) 2 — figures that are consistent once expressed in macromodules versus individual modules.

Supported data types include all numeric digits, all seven-bit ASCII characters, 8-bit binary data, and Chinese characters. Sources vary on which national character set: Seagull cites the GB 2312-1980 set 1, while Han-soft cites GB 18030 Chinese characters 2 (GB 18030 is a superset of GB 2312).

Error correction uses the Reed-Solomon algorithm, with five user-selectable levels. The Han-soft specification gives the levels as roughly 10%, 20%, 30%, 40% and 50% of total capacity 2; at the maximum level a symbol can survive damage to up to about 50% of its codewords 1. With maximum error correction, capacity ranges from 3 to 391 Chinese characters, 5 to 634 bytes, 10 to 1,018 Latin characters, or 12 to 1,524 numerals 1 3.

Use cases

Documented real-world deployment is thin. Grid Matrix was positioned for the Chinese domestic market as a sovereign Chinese alternative for encoding Chinese-language data 3, but the public sources reviewed do not identify specific large-scale production deployments, and the symbology is far less visible in practice than QR Code or Han Xin Code in China. It should be regarded as a niche/specialist symbology pending stronger evidence of field use.

Implementations

  • Zint (github.com/zint/zint) — open-source C barcode encoding library; its symbology list and manual confirm Grid Matrix support 5 6.
  • BarTender / Seagull Scientific — commercial label software documents Grid Matrix as a supported symbology 1.
  • Han-soft TBarcode2D — commercial component documents a full Grid Matrix implementation including version and ECC-level detail 2.

Comparison

Grid Matrix competes most directly with two other Chinese-oriented matrix codes:

  • vs. Han Xin Code — Han Xin (汉信码, invented 2007 by the Article Numbering Center of China) is the better-known Chinese national 2D code, with four corner finder patterns, Reed-Solomon error correction at four levels (8–30% recovery), and much higher capacity (up to ~2,174 Chinese characters / ~7,827 numerals). Han Xin was later adopted as an international standard (ISO/IEC 20830:2021) 4, whereas Grid Matrix remained an AIM specification. Both were designed expressly to encode the GB Chinese character set natively 2 4.
  • vs. QR Code — like QR, Grid Matrix is a square matrix code with Reed-Solomon error correction, but QR's native CJK support targets Shift-JIS Kanji rather than the Chinese GB standard; Grid Matrix's distinctive macromodule/checkerboard finder differs sharply from QR's three corner position-detection squares 1 2.

Grid Matrix's most cited structural distinction is its alternating black/white macromodule grid acting as a distributed finder pattern, rather than the discrete corner finders used by QR and Han Xin 1 2.

Fun facts

  • Grid Matrix is frequently cited as the first international barcode symbology specification to come out of China, predating Han Xin's international adoption 3.
  • Visually the alternating dark/light macromodule frames make a finished symbol resemble a miniature chessboard, which is how several barcode references describe it 1.

Status

Niche / specialist. Grid Matrix is a published AIM symbology with multiple software implementations (Zint, BarTender, Han-soft) 1 2 5, but it never achieved the visibility of QR Code, and within China it has been largely overshadowed by Han Xin Code, which carries national-standard and ISO status 4. Confidence here is medium: the technical specification is well-documented but independent evidence of production deployment is sparse, and primary AIM-Global history pages were inaccessible during research (some returned HTTP 403), so historical details rely on secondary trade-press reporting.

Sources

1 Grid Matrix — BarTender Barcode Guide — Seagull Scientific. 2 TBarcode2D Grid Matrix specification — Han-soft. 3 AIM Global announces availability of Grid Matrix Code, for Chinese — Control Engineering, 2008. 4 Han Xin code — Wikipedia. 5 zint/zint barcode encoding library — GitHub. 6 Zint Manual — symbology appendix — Zint project. 7 Grid Matrix Code — Just Solve the File Format Problem (Archive Team).

Deployments

No country reports mention this standard by name.

source · content/standards/grid-matrix/index.md