Han Xin Code

Han Xin Code is a Chinese national 2D matrix symbology, standardized as ISO/IEC 20830, purpose-built to encode Chinese (Hanzi/GB2312/GB18030) characters more efficiently than QR Code or Data Matrix, making it a natural fit for Chinese-language product marking, government documentation, and industrial traceability.

Why China Developed Its Own Matrix Code

QR Code and Data Matrix, both covered elsewhere on this site, are general-purpose international symbologies capable of encoding Chinese text, but they do so by treating Chinese characters as multi-byte sequences within their existing byte-mode or Kanji-mode encoding schemes — workable, but not optimized specifically for the character sets and character distribution statistics of modern Chinese text. Han Xin Code was developed in China with a data compression mode specifically tuned to GB2312 and GB18030 Chinese character encoding, allowing more Chinese text to fit in a given symbol size than a generic 2D code achieves with its general byte-mode Chinese-text handling.

Structure and Encoding

A Han Xin Code symbol is a square matrix of dark and light modules with a distinctive circular finder pattern near the center of the symbol — a visibly different look from QR Code's three corner squares or Data Matrix's solid-border "L" — making it easy to distinguish visually even before decoding. The symbol supports multiple sizes and four selectable levels of Reed-Solomon error correction, similar in principle to QR Code, letting the amount of built-in redundancy be tuned to the expected print and handling conditions. It supports numeric, alphanumeric, byte, and Chinese-character encoding modes, automatically selecting the most efficient mode for each data segment to minimize symbol size.

Use Cases
  • Product identification and traceability within Chinese domestic supply chains, particularly where Chinese-language content needs to be embedded directly.
  • Government and public-service documentation, ticketing, and certificate verification within China.
  • Industrial parts marking and logistics labeling for manufacturers serving the Chinese domestic market.
  • Mobile payment and information-retrieval codes in contexts where Chinese-language payloads dominate.
Han Xin Code — central circular finder pattern
Comparison to QR Code and Data Matrix

Han Xin Code sits alongside QR Code and Data Matrix, both covered elsewhere on this site, as a general-purpose 2D matrix symbology with error correction, but distinguishes itself with a visually distinct circular central finder pattern and a Chinese-character-optimized compression mode. Where QR Code has become the global default for consumer-facing mobile scanning, Han Xin Code has seen its strongest adoption specifically within Chinese domestic standards and government-driven traceability systems, and international scanner and library support, while present, is less universal than for QR Code or Data Matrix.

Standards and Practical Considerations

Han Xin Code is standardized internationally as ISO/IEC 20830 and domestically within Chinese national standards (GB/T), giving it formal recognition beyond a purely proprietary scheme. Reading Han Xin Code reliably requires imaging-based 2D scanners or mobile decoding libraries with explicit Han Xin support — not all barcode scanning SDKs include it by default, so organizations working with Chinese suppliers or documentation using this symbology should verify their scanning stack's decoder library explicitly lists Han Xin Code support before relying on it in production.