Loading Barcode Mint…

Barcode Mint

Free Online Barcode & QR Code Generator

2D Code

Han Xin Code Generator

Generate a Han Xin Code, the 2D barcode designed to encode Chinese characters more efficiently than QR or Data Matrix.

Open the generator ↓
Preview
100%

01

Symbology

Code 128
All 106 β†’
02

Data

03

Properties

Properties

2
100
18
10
04

Bulk & batch generate

πŸ”’ Pro

Turn a CSV β€” or a numbered sequence β€” into hundreds of barcodes at once, exported as a ZIP of images or a print-ready PDF sheet. Launching with Pro.

Launching soon

Pricing β€” join the early list

The browser generator stays free forever. Paid plans are for teams who need bulk output and developers who need the REST API at scale β€” commercial license included. Tell us what you'd use; early-list members get first access and launch pricing.

For the generator

Free $0/forever

What you're using right now

  • 100+ barcode & QR symbologies
  • Live preview & customization
  • PNG & SVG export, no login
  • Copy to clipboard
Available now βœ“

For developers β€” REST API

Priced by requests. Commercial license and self-serve keys included; usage dashboard at launch.

Small $19/mo$190/yr 500 req / mo
Large $499/mo$4,990/yr 50K req / mo
Enterprise Custom Contact us

Get early access + launch pricing

Which features would you actually use? (optional β€” it helps us decide what to build first)

No spam β€” one email when it launches. The free tool isn't going anywhere.

What is a Han Xin Code?

Han Xin Code is a two-dimensional matrix barcode developed in China and standardized as GB/T 21049 (and later as ISO/IEC 20830), created specifically to address a gap that existing international symbologies didn't handle well: efficiently encoding large volumes of Chinese (Hanzi) characters. While QR code does support a Kanji mode adapted from Japanese double-byte encoding, Han Xin Code was purpose-built around GB18030, China's national character encoding standard, giving it a direct and more efficient path for representing Simplified Chinese text. A han xin code generator is most useful whenever Chinese-language content, rather than Latin text or URLs, makes up the bulk of the payload.

How Han Xin Code encodes data

Han Xin Code uses a square grid structure with finder patterns positioned to allow reliable detection and orientation, along with alignment patterns similar in spirit to QR code's, though the internal encoding tables and data-region layout are optimized differently. Reed-Solomon error correction protects the payload, with multiple selectable error correction levels available to balance data density against damage tolerance, similar in structure to other modern 2D codes. What sets it apart internally is the character encoding pipeline, which maps GB18030 code points directly rather than requiring a translation through a double-byte scheme designed for a different language; because GB18030 was built from the ground up to represent the full range of Simplified and many Traditional Chinese characters, Han Xin Code avoids the inefficiencies that come from repurposing a Japanese-oriented encoding table for Chinese text.

Technical specifications

Han Xin Code supports numeric, text, byte, and Chinese character (Hanzi) encoding modes, with symbol sizes scaling across multiple versions similar in concept to QR code's version system, from small compact grids up to larger high-capacity symbols. Its largest symbols can hold several thousand characters, with Chinese text encoded notably more compactly per character than would be possible via QR code's byte or Kanji modes for the same content, since the encoding is designed around GB18030 from the ground up rather than adapted from a different national standard. As with QR code, the encoder automatically selects the most space-efficient mode for each segment of mixed-language input, switching between numeric, text, byte, and Hanzi modes within a single symbol as needed.

Where Han Xin Code is used

Han Xin Code is used within China for applications where Chinese-language content needs to be encoded efficiently, including logistics and postal tracking, government and identity documentation, product labeling and traceability where Chinese product names or descriptions are part of the payload, and manufacturing applications where domestic Chinese standards are specified for 2D marking. Because it's a national and now also international standard, it appears wherever Chinese regulatory or industry specifications call for a GB/T 21049-compliant 2D barcode rather than a general international format like QR code or Data Matrix, particularly in sectors where the encoded data is expected to be primarily in Chinese rather than Latin script.

How to create a Han Xin Code in Barcode Mint

Select Han Xin Code from the symbology list and enter your text or Chinese-language content directly; Barcode Mint accepts UTF-8 text so Hanzi characters can be typed or pasted alongside Latin text or numbers in the same string. From there you can:

Printing and scanning best practices

Confirm your scanning hardware and decode software explicitly support Han Xin Code, since it's less universally supported by general-purpose barcode scanners outside China than QR code or Data Matrix, and a scanner without Han Xin firmware support simply won't recognize the symbol at all. Maintain the standard quiet zone and sufficient contrast between modules and background just as with other matrix codes, and choose an error correction level suited to your printing and handling environment. If your content mixes Chinese characters with Latin text or numbers, verify the generator correctly selects the most efficient encoding mode for each segment, since mixed-mode encoding affects both symbol size and decode compatibility — an inefficient mode choice can needlessly inflate the symbol size for the same content. Test with the actual scanning equipment your deployment will use, particularly if devices are sourced outside markets where Han Xin Code is common, since import scanners built for QR/Data Matrix-only markets may need a firmware update or replacement to add support.

Han Xin Code vs related codes

Han Xin Code and QR code both use square grids with alignment patterns and selectable Reed-Solomon error correction, but Han Xin Code's native GB18030 character mode encodes Chinese text more compactly than QR code's Kanji mode, which was adapted from a Japanese double-byte scheme and isn't as efficient for the full range of Simplified Chinese characters. Against Data Matrix, which has no dedicated Chinese-character encoding mode at all and treats Hanzi as generic byte data, Han Xin Code produces a smaller symbol for the same Chinese text content, though Data Matrix remains more universally supported by scanners outside China for general text and numeric payloads. The practical decision usually comes down to geography and infrastructure: within China, where scanning hardware commonly supports GB/T 21049, Han Xin Code is a strong default for Chinese-heavy content, while QR code remains the safer choice for anything that needs to scan reliably on generic international hardware.

Common uses

Frequently asked questions

Why not just use QR code for Chinese text?
QR code can encode Chinese characters through its Kanji mode, but that mode is adapted from a Japanese double-byte scheme; Han Xin Code was built natively around GB18030, China's own character encoding standard, giving it a more direct and often more compact encoding path for Chinese text.
Is Han Xin Code an international standard?
Yes, it originated as the Chinese national standard GB/T 21049 and was later also adopted as ISO/IEC 20830, giving it international standard status alongside its domestic origin.
Can a regular QR code scanner read Han Xin Code?
Not necessarily; Han Xin Code uses a different internal structure and encoding tables from QR code, so scanning hardware and software need explicit support for it, which is less universal outside China.
What data can Han Xin Code encode besides Chinese characters?
It also supports numeric, general text, and byte data modes, so it can encode the same types of content as other 2D matrix codes in addition to its optimized Chinese character mode.
Where is Han Xin Code most commonly required?
It's most often specified in Chinese domestic applications such as logistics, government documentation, and product labeling where compliance with GB/T 21049 or efficient native Chinese text encoding is a requirement.
Does a han xin code generator support mixed Chinese and English text?
Yes, a proper han xin code generator switches encoding modes automatically within one symbol, so Chinese characters, Latin text, and numbers can be combined in a single Han Xin Code without manually splitting the content.

Related barcode types

Browse all 106 barcode & QR types β†’