Han Xin Code Generator
Generate Han Xin codes, the Chinese 2D matrix symbology of GB/T 21049 and ISO/IEC 20830, which encodes Chinese characters especially efficiently. Enter any text, including Chinese, and download a PNG or SVG.
Frequently asked questions
What is Han Xin code?
A 2D matrix barcode developed in China and standardized as GB/T 21049 and ISO/IEC 20830. Its encoding modes store Chinese characters more compactly than QR codes.
Where is it used?
Mostly in China, for example in logistics, government documents, tickets and product tracking.
Can it encode other languages?
Yes. Text in any language is encoded, though Chinese characters benefit most from its special modes.
How large can the code get?
Up to 84 versions of 23 to 189 modules per side; the encoder picks the size that fits.
PNG or SVG?
PNG works everywhere, from documents to label printers. SVG is a vector file that stays sharp at any size, which suits print layouts and design tools.
How do I test the code?
Scan it with a phone camera or a scanner app, or upload the image to the Barcode Reader.