---
title: "Han Xin Code Generator – Free Chinese 2D Barcode"
description: "Free Han Xin code generator. Create the Chinese 2D barcode standard that encodes Chinese characters efficiently. Download PNG, SVG, JPG or PDF instantly."
url: https://barcodejar.com/han-xin-code-generator
source: BarcodeJar (free barcode tools)
---

# Han Xin Code Generator

Create a Han Xin code, the Chinese 2D barcode built to store Chinese characters compactly. Type text in Chinese, English or numbers and download it free.

_Interactive tool: open https://barcodejar.com/han-xin-code-generator to use it in your browser. It is free with no sign-up._

## How to create a Han Xin Code barcode

1.  Enter your data in the box above. Any text, including Chinese characters (UTF-8), letters, digits and symbols. The version (size) is chosen automatically.
2.  The barcode updates live as you type. Open **Customize** to change the bar height, colors, rotation or quiet zone.
3.  Click **Download PNG** for labels and documents, or **SVG / PDF** for print and packaging design.
4.  Test it with our [online barcode scanner](https://barcodejar.com/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](https://barcodejar.com/qr-code-generator) 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](https://barcodejar.com/qr-code-generator) 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.

## Related free tools

[**QR Code Generator**Free static QR codes with colors and logo. No sign-up.](https://barcodejar.com/qr-code-generator)[![Data Matrix Generator example](/thumbs/datamatrix.svg)**Data Matrix Generator**Create Data Matrix barcodes free. PNG, SVG, PDF.](https://barcodejar.com/data-matrix-generator)[![Aztec Code Generator example](/thumbs/azteccode.svg)**Aztec Code Generator**Create Aztec Code barcodes free. PNG, SVG, PDF.](https://barcodejar.com/aztec-code-generator)[![DotCode Generator example](/thumbs/dotcode.svg)**DotCode Generator**Create DotCode barcodes free. PNG, SVG, PDF.](https://barcodejar.com/dotcode-generator)[![Code One Generator example](/thumbs/codeone.svg)**Code One Generator**Create Code One barcodes free. PNG, SVG, PDF.](https://barcodejar.com/code-one-generator)[**Online Barcode Scanner**Scan any barcode with your phone or webcam camera.](https://barcodejar.com/barcode-scanner)[**QR Code vs Barcode**1D vs 2D codes and which to choose.](https://barcodejar.com/guides/qr-code-vs-barcode)
