How to create a Han Xin Code barcode
- Enter your data in the box above. Any text, including Chinese characters (UTF-8), letters, digits and symbols. The version (size) is chosen automatically.
- The barcode updates live as you type. Open Customize to change the bar height, colors, rotation or quiet zone.
- Click Download PNG for labels and documents, or SVG / PDF for print and packaging design.
- Test it with our online barcode scanner before you print a large run.
What is a Han Xin Code barcode?
Han Xin code is a square 2D matrix barcode developed in China by the Article Numbering Center of China. It is designed to encode Chinese characters efficiently, using dedicated modes for the GB 18030 character set, while also handling numbers, Latin text and binary data.
It has 84 versions, from 23 × 23 to 189 × 189 modules, and four error correction levels. Han Xin is a Chinese national standard (GB/T 21049) and an international standard, ISO/IEC 20830.
Where Han Xin Code is used
- Product and logistics labels in China
- Government and official documents with Chinese text
- Industrial and healthcare labelling in China
- Any 2D code that must hold many Chinese characters
Han Xin Code specifications
| Type | 2D matrix |
|---|---|
| Characters | GB 18030 Chinese, ASCII, numeric and binary data |
| Versions | 84, from 23 × 23 to 189 × 189 modules |
| Error correction | 4 levels (L1–L4), about 8% to 30% |
| Standard | ISO/IEC 20830, GB/T 21049 |
Tips for a barcode that scans first time
- Check that your scanner reads Han Xin. Support is common in China but less so elsewhere.
- For codes read mainly outside China, a QR code is safer, since QR also supports UTF-8 Chinese text.
- Leave a quiet zone of a few modules around the symbol.
Frequently asked questions
What is a Han Xin code?
A 2D barcode developed in China and standardised as ISO/IEC 20830. It stores Chinese characters more compactly than most other 2D codes.
Han Xin vs QR code: which should I use?
Use Han Xin when a Chinese customer, regulation or system asks for it. For general use, a QR code is read by far more phones and scanners worldwide.
Can Han Xin code hold English text and numbers?
Yes. It has modes for numbers, Latin text and binary data as well as Chinese characters.
How big can a Han Xin code be?
There are 84 versions, from 23 × 23 modules up to 189 × 189 modules, and the largest holds several thousand characters.
Can phones read Han Xin codes?
Some scanning apps can, especially those popular in China. Most built-in camera apps outside China do not.
What error correction does Han Xin use?
Reed-Solomon, with four levels from about 8% (L1) to about 30% (L4) recovery.