Skip to content
UniKit

Chinese telegraph code converter

Convert Chinese telegraph codes (Chinese Commercial Code, four digits) to Chinese characters and back with 7,078 mainland and 9,026 Taiwan/Hong Kong codes. Accepts continuous four-digit runs, space/comma separated codes or one code per line, and reports codes missing from the table.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Telegraph codes

The mainland table has 7,078 codes and the Taiwan table 9,026, from Unicode Unihan 17.0.0.

Telegraph codes

Result

Decoded code by code; codes missing from the table are marked.

Paste telegraph codes to see the Chinese text

What this tool does

  • Turn the four-digit Chinese telegraph codes found on visa forms, ID documents or old telegraphed messages back into Chinese characters
  • Encode a piece of Chinese text into telegraph codes character by character, for forms or cross-checking against a printed code book
  • Pick between the mainland and Taiwan/Hong Kong standards, which use simplified and traditional character forms respectively

Example

Input

0022 0948 0086 3046

Output

中国人民

Space-separated four-digit codes are looked up one by one; in the mainland table 0022=中, 0948=国, 0086=人, 3046=民.

Frequently asked questions

How large are the tables and where do they come from?

Two tables: 7,078 codes from the mainland China Standard Code Book lineage and 9,026 codes from the Taiwan/Hong Kong lineage. The data comes from the Unicode Unihan database 17.0.0 (2025-07-24), fields kMainlandTelegraph and kTaiwanTelegraph; per UAX #38 these trace back to Lin Jinyi, Kanji denpou koudo henkan-hyou (KDD Engineering and Consulting, 1984). Unicode data is published under the Unicode License and may be redistributed.

What happens to codes that are not in the table?

Nothing is guessed. By default they are printed as a marker such as [未收录 9999] ("not in the table"), and the statistics report how many codes could not be resolved plus the exact codes. You can also keep the code as is or skip it. On forms, 0000 conventionally means "unknown": no character is assigned to it, so it is reported as missing too.

Why do the mainland and Taiwan tables differ for some characters?

They are two parallel standards. The mainland one follows the Ministry of Posts and Telecommunications Standard Code Book and uses simplified forms (0948=国), while Taiwan and Hong Kong documents use the other lineage with traditional forms (0948=國). The automatic mode tries the mainland table first and falls back to the Taiwan table; for traditional text or HK/Taiwan documents, select the Taiwan table directly.

How should the input be written?

Three layouts are accepted: continuous four-digit runs (00220948, the digit count must be a multiple of four), codes separated by spaces, Chinese or English commas, ideographic commas, semicolons, tabs or newlines, and one code per line. Input without a single digit reports an error telling you to switch to the encoding direction instead of silently returning an empty result.

Is anything uploaded?

No. The tables and the conversion run in your browser, up to 20,000 codes per run. The page does not call any network service and does not store your input.

Keywords:Chinese telegraph codeChinese Commercial Codetelegraph code decoderchinese telegraph code converter

Related tools