Skip to content
StylQR home

Han Xin Code Generator

Create Han Xin Codes, the Chinese national 2D barcode built to encode Chinese characters efficiently. Enter text and download a print-ready symbol in vector or high-resolution formats.

  • Free & unlimited
  • Validated live
  • Print-ready SVG, PDF & PNG
  • Nothing uploaded
1

Enter your data

Checked live against the official rules for this barcode type.

Any text.

2

Design your barcode

Pick a label template or adjust size, text, colors and style.

Start from a template

One click styles the label. Your data and size stay as they are.

Check your data

Tap to preview

Preview & download

Loading barcode engine…

Format

Resolution

Print labels

A vector PDF filled with your barcode — print on label stock, stickers or plain paper.

Square cells with dashed cut guides; choose 2–6 columns.

Labels per row

What is Han Xin Code?

Han Xin Code is a 2D matrix symbology developed in China and published as the national standard GB/T 21049, then internationally as ISO/IEC 20830. It has a finder pattern in each of its four corners, so it can be located and oriented quickly.

It comes in 84 versions, from 23 × 23 to 189 × 189 modules. Besides numeric, text and byte modes, it has dedicated modes for Chinese characters from GB 18030, so a symbol holds up to about 2,174 common Chinese characters, 4,350 text characters or 7,827 digits.

Reed–Solomon error correction has four levels, L1 to L4, recovering roughly 8%, 15%, 23% and 30% of the symbol — similar to the levels of QR code.

Specification

Han Xin Code at a glance

Type
2D matrix with four corner finder patterns
Characters
Digits, text, bytes and GB 18030 Chinese characters
Capacity
Up to 7,827 digits, 4,350 text characters or 2,174 Chinese characters
Sizes
84 versions, 23 × 23 to 189 × 189 modules
Error correction
Reed–Solomon, levels L1–L4 (about 8–30%)
Nominal module size
0.5 mm default
Quiet zone
3 modules on all sides
Standard
GB/T 21049, ISO/IEC 20830

How to create a Han Xin Code barcode

Four steps from data to a print-ready file.

  1. 1

    Step 1

    Enter your Han Xin Code data. Any text.

  2. 2

    Step 2

    Check the live validation — check digits are added for you and any problem is explained in plain words.

  3. 3

    Step 3

    Pick a label template or adjust bar width, height, text, colours and style. The printed size updates as you go.

  4. 4

    Step 4

    Download a PNG at up to 1200 DPI, vector SVG or PDF — or print it on label sheets — and test it with your scanner.

Built for people who print barcodes

Details most barcode generators charge for — all free in the studio above.

  • Check digits, fixed for you

    Type 12 digits and the EAN-13 check digit is added. Type a wrong one and you get the correct digit with a one-click fix.

  • Frames & label templates

    Banners, tickets, hang tags, shelf prices, coupons and more — ready-made labels that never cover the bars.

  • Sized in millimetres

    Set the bar width and height and see the finished printed size update live, in mm or inches.

  • Crisp at any DPI

    PNG at 300, 600 or 1200 DPI with every bar a whole number of pixels, plus vector SVG and exact-size PDF.

  • Scanner-safe colours

    Warnings for red bars laser scanners cannot see, low contrast, thin bars and tight quiet zones.

  • GS1 helper

    Insert Application Identifiers like GTIN, expiry, batch and serial with one click — validated by the official rules.

  • Avery label sheets

    Fill Avery 5160, L7160 and 22805 sheets, sticker sheets or a label grid with one click.

  • Save, open & share

    Keep a barcode as a design file, reopen it later, share a link, and undo or redo any change.

Where Han Xin Code is used

Real-world applications for this symbology.

  • Chinese-language labels

    Product, address and logistics data written in Chinese characters.

  • Government documents

    Certificates and official forms in China carrying their data in a 2D code.

  • Logistics

    Shipping and tracking labels for domestic Chinese supply chains.

  • Product traceability

    Origin and batch information printed on packaging.

Printing Han Xin Code that scans first time

Small details that make the difference between a code people ignore and one they scan.

  • Choose error correction with eclevel=L1 to L4 in the advanced options; L3 or L4 suits labels that may get damaged.

  • Fix the symbol size with version=1 to 84 if every label in a series must match.

  • Keep a quiet zone of 3 modules around the code.

  • Confirm your scanner supports Han Xin before rolling it out — it is less widely supported than QR code, and the in-browser Test scan does not read it.

Han Xin Code questions, answered

Why use Han Xin instead of a QR code?

Han Xin encodes Chinese characters more compactly and covers the full GB 18030 character set, which matters for Chinese-language data. QR code is better supported by phones.

Is Han Xin an international standard?

Yes. It started as Chinese national standard GB/T 21049 and was published as ISO/IEC 20830 in 2021.

Can phones scan Han Xin Code?

Some Chinese apps and industrial scanners can, but most standard phone camera apps cannot.

How much data can Han Xin hold?

Up to about 2,174 Chinese characters, 4,350 text characters or 7,827 digits at the lowest error correction level.

Every other barcode type

Retail, logistics, 2D, healthcare and postal symbologies — validated with the official rules and ready to print.

The barcodes people make most.