# Grid Matrix

> Source: https://docs.barcoder.ai/docs/standards/grid-matrix
> research date 2026-06-03 · extracted at 2026-10-03
> Publisher: Barcoder — encyclopedia of QR, barcode and payment-code standards

Specifications:
- [Grid Matrix — BarTender Barcode Guide (Seagull Scientific)](https://barcodeguide.seagullscientific.com/Content/Symbologies/Grid_Matrix.htm)
- [TBarcode2D Grid Matrix specification (Han-soft)](https://www.han-soft.com/releases/barcode2d/documents/b_gridmatrix.html)

## 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" <sup>[1][1]</sup>. 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 <sup>[1][1]</sup> <sup>[2][2]</sup>.

## History

Grid Matrix was invented by **Shenzhen Syscan Technology Co., Ltd.** of China, with development attributed to Dr. Xuchuan Fan of Syscan <sup>[2][2]</sup> <sup>[3][3]</sup>. 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 <sup>[3][3]</sup>. 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 <sup>[1][1]</sup> <sup>[2][2]</sup> <sup>[3][3]</sup>.

## 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 <sup>[1][1]</sup>. A minimum quiet zone of six modules is required on all sides <sup>[1][1]</sup>.

Sources differ on the size range. Seagull's BarTender guide states symbols range from **3×3 to 27×27 macromodules** <sup>[1][1]</sup>, while the Han-soft specification describes **thirteen versions (1–13)** spanning 18×18 modules (version 1) to 162×162 modules (version 13) <sup>[2][2]</sup> — 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 <sup>[1][1]</sup>, while Han-soft cites **GB 18030** Chinese characters <sup>[2][2]</sup> (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 <sup>[2][2]</sup>; at the maximum level a symbol can survive damage to up to about 50% of its codewords <sup>[1][1]</sup>. 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** <sup>[1][1]</sup> <sup>[3][3]</sup>.

## 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 <sup>[3][3]</sup>, 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 <sup>[5][5]</sup> <sup>[6][6]</sup>.
- **BarTender / Seagull Scientific** — commercial label software documents Grid Matrix as a supported symbology <sup>[1][1]</sup>.
- **Han-soft TBarcode2D** — commercial component documents a full Grid Matrix implementation including version and ECC-level detail <sup>[2][2]</sup>.

## 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) <sup>[4][4]</sup>, whereas Grid Matrix remained an AIM specification. Both were designed expressly to encode the GB Chinese character set natively <sup>[2][2]</sup> <sup>[4][4]</sup>.
- **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 <sup>[1][1]</sup> <sup>[2][2]</sup>.

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 <sup>[1][1]</sup> <sup>[2][2]</sup>.

## 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 <sup>[3][3]</sup>.
- Visually the alternating dark/light macromodule frames make a finished symbol resemble a miniature chessboard, which is how several barcode references describe it <sup>[1][1]</sup>.

## Status

Niche / specialist. Grid Matrix is a published AIM symbology with multiple software implementations (Zint, BarTender, Han-soft) <sup>[1][1]</sup> <sup>[2][2]</sup> <sup>[5][5]</sup>, 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 <sup>[4][4]</sup>. 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](https://barcodeguide.seagullscientific.com/Content/Symbologies/Grid_Matrix.htm) — Seagull Scientific.
[2] [TBarcode2D Grid Matrix specification](https://www.han-soft.com/releases/barcode2d/documents/b_gridmatrix.html) — Han-soft.
[3] [AIM Global announces availability of Grid Matrix Code, for Chinese](https://www.controleng.com/articles/aim-global-announces-availability-of-grid-matrix-code-for-chinese/) — Control Engineering, 2008.
[4] [Han Xin code](https://en.wikipedia.org/wiki/Han_Xin_code) — Wikipedia.
[5] [zint/zint barcode encoding library](https://github.com/zint/zint) — GitHub.
[6] [Zint Manual — symbology appendix](https://zint.org.uk/manual/appendix/B) — Zint project.
[7] [Grid Matrix Code](http://fileformats.archiveteam.org/wiki/Grid_Matrix_Code) — Just Solve the File Format Problem (Archive Team).

[1]: https://barcodeguide.seagullscientific.com/Content/Symbologies/Grid_Matrix.htm
[2]: https://www.han-soft.com/releases/barcode2d/documents/b_gridmatrix.html
[3]: https://www.controleng.com/articles/aim-global-announces-availability-of-grid-matrix-code-for-chinese/
[4]: https://en.wikipedia.org/wiki/Han_Xin_code
[5]: https://github.com/zint/zint
[6]: https://zint.org.uk/manual/appendix/B
[7]: http://fileformats.archiveteam.org/wiki/Grid_Matrix_Code

## Deployments

_No country reports mention this standard by name._
