Paste the 18-character code from a Chinese business licence. This page splits it into the five parts defined by GB 32100-2015 and recalculates the check digit. The code is not sent to a server by this calculation. The implementation was run against 2,149 real codes from two official Chinese disclosure files: all 2,149 came back consistent.
How the 18 characters are built
GB 32100-2015 fixes both the length and the layout. For a supplier, ask for its current business licence to obtain the code. Asking matters because a name often will not do: in a frame of 310 Chinese company names printed on US recall notices, 167 matched no registry record at all.
| Positions | Part | Length |
|---|---|---|
| 1 | Registration authority code | 1 |
| 2 | Entity category code | 1 |
| 3–8 | Administrative division code | 6 |
| 9–17 | Subject identifier (organization code) | 9 |
| 18 | Check character | 1 |
What the first two characters tell you
Position 1 is the registration authority and position 2 is the entity category under it. The pairing most buyers care about sits under market regulation (code 9):
| Starts with | Entity type | Chinese |
|---|---|---|
91 | Enterprise | 企业 |
92 | Individually-owned business | 个体工商户 |
93 | Farmers specialised cooperative | 农民专业合作社 |
Read the first two-character prefix together: position 1 identifies the registration authority and position 2 the entity category under it.
The prefix does not establish export eligibility. It identifies the registered entity category. Check the goods, destination, customs requirements and the roles of the parties separately.
Other authorities appear in the first position too: 1 for centrally staffed bodies, 5 for civil-affairs registrations such as foundations and social organisations, N for rural collective economic organisations, and several more.
Where it is registered
Positions 3–8 identify the registration authority’s administrative division. This tool decodes only the first two digits, such as 11 Beijing or 44 Guangdong. It does not validate the full city or county code. The prefix is not evidence of a factory’s location.
This tool maps 71, 81 and 82 to Taiwan, Hong Kong and Macau. A displayed region label is not a check that the full administrative code was assigned to this entity.
Character set
Codes use digits and uppercase letters, but the standard excludes I, O, Z, S and V and gives no reason. The usual explanation is that they look like 1, 0, 2, 5 and U. If you see one, compare with the source document. This check cannot distinguish a typo from an altered document.
Check digit
The eighteenth character is calculated from the first seventeen. Each position has a weight of 3(i−1) mod 31, and the check character satisfies C18 = 31 − (Σ Ci × Wi mod 31), taken modulo 31 so that a result of 31 becomes 0. A single mistyped character will therefore almost always fail.
Worked examples
Four codes through the same rule. Paste any of them into the checker above to see the same result. These codes are constructed for illustration, with check digits computed by this implementation. They are not presented as real companies.
A valid enterprise code. 91330106MA27XNEX2L passes.
9then1: registered by the market regulation authority as an enterprise (企业).33in positions 3 to 8: registered in Zhejiang.Lat position 18 matches the calculation from the first 17 characters.- Passing proves the structure and check digit are consistent. It does not prove this company exists or is active.
One wrong character fails. Take the valid code above and change only the last character from L to 9: it now fails.
- The calculation expects
Lat position 18, so the check digit fails. A single mistyped character is caught. - If a supplier’s code fails like this, compare it with the licence character by character.
An excluded character stops the check. 91330106MA27XNES2L is rejected.
- It contains
S. GB 32100-2015 excludes I, O, Z, S and V and gives no reason for it. - The code fails on the character set before the check digit is even calculated. Compare with the source document.
A passing code is not always a company. 92370900MA3C8KQ61D passes, and it is not a company.
9then2: an individually-owned business (个体工商户), a different legal form from an enterprise.37in positions 3 to 8: registered in Shandong. The check digitDis consistent, so the code passes.- Passing means only that the arithmetic holds. The second character already tells you the legal form of the counterparty.
What a passing code proves, and what it does not
Use the result to check the number, then gather evidence for the company and transaction.
China tax ID. For a company or other organisation that holds this code, it is also the taxpayer identification number. State Taxation Administration Announcement 2015 No. 66 sets this. A business without the code uses an ID document number plus two digits.
It proves
- The check character agrees with the calculation from the first 17 characters.
- The input has 18 characters from the permitted set.
It does not prove
- That the company exists. A correctly formed code can be constructed by anyone who knows the algorithm, including the one on this page.
- That the company is still active and has not been revoked or deregistered.
- That its registered business scope covers what you are buying.
- That it may legally export to you. The code does not contain the goods, destination or transaction-specific permissions.
- That this company is the one issuing your invoice or receiving your payment. Document each party’s role and explain any differences before paying.
A dated registry record helps confirm the legal identity. Other questions need transaction documents, account checks or product-specific advice. The official China company registry steps show the route, including what to do when the portal will not open from where you are.
How to calculate the check character by hand
The 18th character of a Unified Social Credit Code is 31 minus the remainder of a weighted sum divided by 31. The sum multiplies the value of each of the first 17 characters by a fixed weight for its position.
Step 1: character values
Digits keep their own value. The 21 permitted letters take the values 10 to 30 in alphabetical order, with I, O, Z, S and V left out.
| Characters | Values |
|---|---|
| 0 1 2 3 4 5 6 7 8 9 | 0 1 2 3 4 5 6 7 8 9 |
| A B C D E F G H J K | 10 11 12 13 14 15 16 17 18 19 |
| L M N P Q R T U W X Y | 20 21 22 23 24 25 26 27 28 29 30 |
Step 2: position weights
Each of the 17 positions has its own weight. The weight for position i is 3 raised to the power i minus 1, taken modulo 31.
| Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Weight | 1 | 3 | 9 | 27 | 19 | 26 | 16 | 17 | 20 | 29 | 25 | 13 | 8 | 24 | 10 | 30 | 28 |
Step 3: multiply, add and take the remainder
Multiply each character value by its weight and add the 17 products. The example below is the one printed in Appendix B of GB 32100-2015, for the first 17 characters 91350100M000100Y4.
| Position | Character | Value | Weight | Product |
|---|---|---|---|---|
| 1 | 9 | 9 | 1 | 9 |
| 2 | 1 | 1 | 3 | 3 |
| 3 | 3 | 3 | 9 | 27 |
| 4 | 5 | 5 | 27 | 135 |
| 5 | 0 | 0 | 19 | 0 |
| 6 | 1 | 1 | 26 | 26 |
| 7 | 0 | 0 | 16 | 0 |
| 8 | 0 | 0 | 17 | 0 |
| 9 | M | 21 | 20 | 420 |
| 10 | 0 | 0 | 29 | 0 |
| 11 | 0 | 0 | 25 | 0 |
| 12 | 0 | 0 | 13 | 0 |
| 13 | 1 | 1 | 8 | 8 |
| 14 | 0 | 0 | 24 | 0 |
| 15 | 0 | 0 | 10 | 0 |
| 16 | Y | 30 | 30 | 900 |
| 17 | 4 | 4 | 28 | 112 |
The products add up to 1640. 1640 divided by 31 leaves a remainder of 28, so the check value is 31 minus 28, which is 3. Value 3 is the character 3, and the full code is 91350100M000100Y43.
The checker above returns the same result for 91350100M000100Y43. It also validated all 2,149 real codes in the test sample.
Two special results
A remainder of 0 gives 31, which is written as 0. A remainder of 1 gives 30, which is written as Y. The constructed code 91330106MA27XNEXG0 ends in 0 and 91330106MA27XNEXTY ends in Y.
Both codes are constructed for illustration with the calculation above. They are not real companies.
Every code in positions 1 to 8
Position 1 of a Unified Social Credit Code names the registration authority, and position 2 names the entity category under it. GB 32100-2015 lists 12 authorities and 36 two-character prefixes in the version amended in 2016.
Positions 1 and 2: authority and entity category
A prefix such as 91 reads as authority 9 (market regulation) and category 1 (enterprise). Amendment No. 1, approved on 15 April 2016 and in force from 18 April 2016, added the authorities 2, 3, 4, 6, 7, 8, A and N to the four in the first edition.
| Starts with | Registration authority | Entity category | Chinese |
|---|---|---|---|
11 | Central staffing authority | Government agency | 机构编制 / 机关 |
12 | Central staffing authority | Public institution | 机构编制 / 事业单位 |
13 | Central staffing authority | Directly administered mass organisation | 机构编制 / 编办直接管理机构编制的群众团体 |
19 | Central staffing authority | Other | 机构编制 / 其他 |
21 | Foreign affairs | Resident foreign news bureau | 外交 / 外国常驻新闻机构 |
29 | Foreign affairs | Other | 外交 / 其他 |
31 | Judicial administration | Law firm | 司法行政 / 律师执业机构 |
32 | Judicial administration | Notary office | 司法行政 / 公证处 |
33 | Judicial administration | Basic-level legal service office | 司法行政 / 基层法律服务所 |
34 | Judicial administration | Forensic appraisal institution | 司法行政 / 司法鉴定机构 |
35 | Judicial administration | Arbitration commission | 司法行政 / 仲裁委员会 |
39 | Judicial administration | Other | 司法行政 / 其他 |
41 | Culture | Foreign cultural centre in China | 文化 / 外国在华文化中心 |
49 | Culture | Other | 文化 / 其他 |
51 | Civil affairs | Social organisation | 民政 / 社会团体 |
52 | Civil affairs | Private non-enterprise unit | 民政 / 民办非企业单位 |
53 | Civil affairs | Foundation | 民政 / 基金会 |
59 | Civil affairs | Other | 民政 / 其他 |
61 | Tourism | Resident office of a foreign tourism authority | 旅游 / 外国旅游部门常驻代表机构 |
62 | Tourism | Resident mainland office of an HK/Macau/Taiwan tourism authority | 旅游 / 港澳台地区旅游部门常驻内地代表机构 |
69 | Tourism | Other | 旅游 / 其他 |
71 | Religious affairs | Religious venue | 宗教 / 宗教活动场所 |
72 | Religious affairs | Religious school | 宗教 / 宗教院校 |
79 | Religious affairs | Other | 宗教 / 其他 |
81 | Trade union | Grassroots trade union | 工会 / 基层工会 |
89 | Trade union | Other | 工会 / 其他 |
91 | Market regulation | Enterprise | 工商 / 企业 |
92 | Market regulation | Individually-owned business | 工商 / 个体工商户 |
93 | Market regulation | Farmers specialised cooperative | 工商 / 农民专业合作社 |
A1 | CMC reform and staffing office | Military public institution | 中央军委改革和编制办公室 / 军队事业单位 |
A9 | CMC reform and staffing office | Other | 中央军委改革和编制办公室 / 其他 |
N1 | Agriculture | Group-level collective economic organisation | 农业 / 组级集体经济组织 |
N2 | Agriculture | Village-level collective economic organisation | 农业 / 村级集体经济组织 |
N3 | Agriculture | Township-level collective economic organisation | 农业 / 乡镇级集体经济组织 |
N9 | Agriculture | Other | 农业 / 其他 |
Y1 | Other | Other | 其他 / 其他 |
Buyers meet 91 most often. A prefix shows the category at the time the code was assigned, and the code anatomy study explains why it can be out of date.
Positions 3 to 8: province and district
Positions 3 to 8 hold the administrative division code of the registration authority, taken from GB/T 2260. The first two digits name the province-level unit, such as 44 for Guangdong or 31 for Shanghai.
| Digits | Province-level unit | Registered by mainland authorities |
|---|---|---|
11 | Beijing | Yes |
12 | Tianjin | Yes |
13 | Hebei | Yes |
14 | Shanxi | Yes |
15 | Inner Mongolia | Yes |
21 | Liaoning | Yes |
22 | Jilin | Yes |
23 | Heilongjiang | Yes |
31 | Shanghai | Yes |
32 | Jiangsu | Yes |
33 | Zhejiang | Yes |
34 | Anhui | Yes |
35 | Fujian | Yes |
36 | Jiangxi | Yes |
37 | Shandong | Yes |
41 | Henan | Yes |
42 | Hubei | Yes |
43 | Hunan | Yes |
44 | Guangdong | Yes |
45 | Guangxi | Yes |
46 | Hainan | Yes |
50 | Chongqing | Yes |
51 | Sichuan | Yes |
52 | Guizhou | Yes |
53 | Yunnan | Yes |
54 | Tibet | Yes |
61 | Shaanxi | Yes |
62 | Gansu | Yes |
63 | Qinghai | Yes |
64 | Ningxia | Yes |
65 | Xinjiang | Yes |
71 | Taiwan | No, the checker flags this prefix |
81 | Hong Kong SAR | No, the checker flags this prefix |
82 | Macau SAR | No, the checker flags this prefix |
Digits 5 to 8 continue to city and county level and change when boundaries change, so the checker decodes only the province. The prefix shows where the registration authority sits. It does not show where a factory stands.
Why a code fails the check
The checker reports one of four failures: wrong length, an excluded letter, a symbol outside the character set, or a wrong 18th character. Most failures are a single mistyped character.
| What you enter | What the checker does |
|---|---|
| Fewer or more than 18 characters | Stops and says how many characters it found. If pasted text holds exactly one 18-character code, it extracts and checks that code. With two or more codes it asks you to paste one at a time. |
| Spaces, hyphens, lower case or full-width characters | Cleans the input first: full-width characters are folded to normal width, spaces and hyphens are removed and letters are upper-cased. Then it checks. |
| One of the letters I, O, Z, S or V | Stops before the check character and names the letter, because GB 32100-2015 excludes these five letters. |
| Any other symbol, such as # | Stops and lists the characters outside the permitted set. |
| A wrong 18th character | Says which character it expected and which it found, for example expected L and found 9. |
| An unrecognised first character or province prefix | Still checks the arithmetic and leaves the label for that field blank, because it cannot tell a typo from a prefix it does not list. |
| A province prefix of 71, 81 or 82 | Checks the arithmetic and adds a warning, because a mainland business licence would not carry a Taiwan, Hong Kong or Macau prefix. |
A failed check almost always means one wrong character. Compare the code with the licence character by character. If the code matches the licence, look the company up by name, because the registry record does not depend on this arithmetic.
Common questions
- What is a Unified Social Credit Code?
- An 18-character identifier for a registered mainland Chinese entity. It contains authority, entity category, administrative division, subject identifier and check-character fields.
- How do I verify a Chinese Unified Social Credit Code?
- First check the length, character set and check character. Then compare the exact code and legal name with a dated registry record. Passing the arithmetic check does not confirm correct copying or company identity.
- What do the first two characters of the code mean?
- Position 1 is the registration authority and position 2 is the entity category. Under authority 9, codes starting 91 describe enterprises, 92 individually-owned businesses and 93 farmers’ specialised cooperatives.
- Does a valid code mean the company is real?
- No. A code can be constructed to pass the check. It does not prove company existence, current status, account ownership or permission to export.
- How many characters does a Unified Social Credit Code have?
- 18. The characters are digits and uppercase letters, and the letters I, O, Z, S and V are never used.
- Why does a Unified Social Credit Code never contain I, O, Z, S or V?
- GB 32100-2015 lists these five letters as unused and gives no reason. The usual explanation is that they look like the digits 1, 0, 2 and 5 and the letter U.
- How is the 18th character of a Unified Social Credit Code calculated?
- Multiply the value of each of the first 17 characters by its weight, add the products and take the remainder after dividing by 31. The check character is the one with the value 31 minus that remainder, written as 0 for a remainder of 0 and Y for a remainder of 1.
- What does a Unified Social Credit Code that starts with 91 mean?
- 91 means the code was assigned under the market regulation authority (position 1 is 9) to an enterprise (position 2 is 1). 92 is an individually-owned business and 93 is a farmers’ specialised cooperative.
- Is the Unified Social Credit Code the same as the Chinese tax ID?
- Yes, for an organisation that holds one. State Taxation Administration Announcement 2015 No. 66 makes the code the taxpayer identification number of that organisation.
- Does a Unified Social Credit Code ever change?
- GB 32100-2015 defines it as a legal identification code that is unique nationwide and does not change for the life of the legal entity or other organisation. A supplier that quotes a different code on a later document needs to explain the difference.
- Which part of a Unified Social Credit Code shows the province?
- Positions 3 to 8 hold the administrative division code of the registration authority, taken from GB/T 2260. The first two of those digits give the province-level unit, such as 44 for Guangdong. They show where the code was registered and do not show where a factory stands.
- Why does my Unified Social Credit Code fail the check?
- Most failures are one wrong character among the 18, and the checker also stops on the wrong length or on the letters I, O, Z, S and V. Compare the code with the licence character by character, then look the company up by name if it still fails.
How this implementation was tested
The implementation uses the GB 32100-2015 character set and weight formula. We checked the formula and tested codes extracted from two official disclosure files.
On 11 August 2026, 2,149 real Unified Social Credit Codes from Ministry of Finance and Shanghai Municipal Tax Service disclosure files were tested. All 2,149 returned a consistent check digit. This is evidence about that sample; it does not prove the implementation has no errors or validate every possible code.
On 30 September 2026 we also recalculated the worked example printed in Appendix B of GB 32100-2015. The implementation turns 91350100M000100Y4 into check character 3, as the standard does. The step-by-step calculation shows every product.
The sample checks arithmetic consistency. It does not establish any company’s current status, and this page queries no registry.
Open source, and citing this checker
The same check is published as an open-source package, china-usci on npm (MIT licence, no runtime dependencies, Node 18 or later, source on GitHub). It applies the same GB 32100-2015 check and states the same limit as this page: a passing check character says nothing about whether the company exists.
Install it with npm install china-usci or pnpm add china-usci, or try one code without installing: npx china-usci 91350100M000100Y43. Read the package’s changelog and tests before using it in your own system.
To cite the checker, include its title, URL and the date you used it:
Currawong, “Unified social credit code checker: China USCI validation”, free in-browser validation of the 18-character code structure and the GB 32100-2015 check digit, tested on 2,149 real codes.
https://currawongweb.com/verify/china-usci-checker/
Sources
- GB 32100-2015 Rules for the code of legal entities and other organizations: structure, character set and check-digit rule. The official catalogue listed it as in force on 6 September 2026; revision plan 20260042-Q-469 was still being drafted.
- GB 32100-2015 with Amendment No. 1. We read Tables 2 to 4 and Appendices A and B on 30 September 2026. The copy is the China Standards Press second edition (July 2016), hosted on Wikimedia Commons. The amendment was approved on 15 April 2016 and took effect on 18 April 2016. The standard says the check character method follows GB/T 17710, the national standard for check character systems. Technical write-ups call this scheme MOD 31-3, a name the standard text does not use.
- GB/T 2260 province-level codes: the 34 two-digit prefixes in the table above match the Chinese Wikipedia table of GB/T 2260 codes read on 30 September 2026. The National Bureau of Statistics list could not be opened from our network that day.
- National Enterprise Credit Information Publicity System (GSXT), the official registration record itself.
- State Taxation Administration Announcement 2015 No. 66: the code is the taxpayer identification number for organisations that hold it. The policy library showed it as fully in force on 18 September 2026.
Next free step: the licence also carries the registered scope: the free in-browser read identifies manufacturing or trading wording in that text, with nothing uploaded.
This page implements the encoding rule only. It does not query any registry, and it is not legal advice or a conformity assessment.
A valid check digit does not prove the company exists. Check the exact code against a dated registry record. Before you spend time on the official search, see our dated measurements of whether it actually serves: China company registry availability.
The full registry-check procedure in your language: Deutsch, Español, Português, Français, Italiano, Polski, Čeština, Magyar, Türkçe, Tiếng Việt, Bahasa Indonesia, العربية.
How we checked
The checker applies the check-digit method of GB 32100-2015 to the 18 characters you enter. A code that passes has a valid structure, and passing does not authenticate a company. On 30 September 2026 we recalculated the worked example printed in Appendix B of the standard, and the implementation gave the same check character.
The official catalogue listed the standard as in force on 6 September 2026, and revision plan 20260042-Q-469 was still being drafted.
Being pushed to pay a deposit right now? The checks that matter before money moves are free to read.
If you want these records pulled for your own supplier: the “Just check who they are” selection of the report menu covers them, packs from $26.55. Delivery follows the window on your order confirmation. First paid order: unhappy for any reason, tell us within 14 days of delivery and it is refunded in full.