DevTools Logo

China USCC Generator

China USCC Generator

Generate 18-character Unified Social Credit Codes with GB 32100 and GB 11714 check characters — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.

Generated value

No value yet

Set options, then press Generate.

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Generate a USCC

    Input
    Unified Social Credit Code · Generate
    Output
    91350100M000100Y43

    The 91 prefix marks an enterprise; both the organization check character and the final mod-31 character pass.

    Wrong final character

    Input
    91350100M000100Y44
    Output
    Invalid — check character is 4 but the first 17 characters require 3 (GB 32100 mod 31)

    The alphabet and organization code still pass, so only the last character branch fails.

    Letter O is not allowed

    Input
    91350100M0001O0Y43
    Output
    Invalid — "O" is not allowed: the alphabet excludes I, O, S, V and Z

    The alphabet check runs before either checksum, so a visually similar letter is reported directly.

    About this tool

    The China USCC Generator produces one 18-character Unified Social Credit Code (统一社会信用代码) under GB 32100-2015. The code carries the registration authority (1), the entity type (1), a 6-digit administrative division code, a 9-character organization code from GB 11714 with its own check character in position 17, and a final check character in position 18 computed mod 31.

    The character set is deliberately restricted: I, O, S, V and Z never appear, which is why a code with an O in it is rejected even when the length is right. Generated codes always start 91, marking the industry and commerce authority and an enterprise entity type. The validator checks the length, the alphabet, the organization code check character and the mod-31 check character, each with its own message.

    These codes are synthetic fixtures for QA and development, never for real business registrations, filings, or verification flows, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.

    What this tool does not do

    • Generation always uses the 91 prefix, so the registration authority and entity type do not vary.
    • A valid code proves only that the characters and checksums agree, not that the company exists.
    • The division code is drawn from a short list of large-city codes rather than the full GB/T 2260 table.
    • The tool does not decode the entity type into a business category; it reports the digits as they are.

    How to use this tool

    1. Choose the USCC option

      The tool is pinned to the 18-character Unified Social Credit Code with the GB 32100 and GB 11714 check characters.

    2. Generate a value

      Click Generate to create one code starting 91 with a division code, an organization code and a checked final character.

    3. Validate or copy

      Switch to Validate to check the alphabet and both check characters, or copy the result and download it as .txt.

    Use cases

    Supplier onboarding fixtures

    Fill Chinese company-registration fields with codes that pass both check characters.

    Alphabet validation

    Test that your parser rejects I, O, S, V and Z instead of silently accepting them.

    Two-level checksum tests

    Change position 17 and position 18 separately to confirm each check reports its own failure.

    USCC layout

    PositionsMeaning
    1Registration authority (9 = industry and commerce)
    2Entity type (1 = enterprise)
    3-8Administrative division code
    9-17Organization code with its check character in position 17 (GB 11714)
    18Check character, mod 31 (GB 32100)
    Alphabet0-9 and A-Z except I, O, S, V and Z

    Generation always emits the 91 prefix, so every value is an enterprise registered with the industry and commerce authority.

    Common mistakes

    Mistake:Confusing USCC with the 15-digit old registration number

    Fix:The USCC is 18 characters and carries two check characters; the older number is a different field.

    Mistake:Accepting every letter of the alphabet

    Fix:I, O, S, V and Z are excluded to avoid visual ambiguity with digits.

    Mistake:Checking only the final character

    Fix:Position 17 has its own GB 11714 organization-code check that also has to pass.

    Frequently asked questions

    Are these real Unified Social Credit Codes?

    No. They are synthetic fixtures for QA and development, never for real business registrations, filings, or verification flows; DevTools accepts no liability for how generated data is used. A valid-looking code can coincide with a registered company.

    Which letters are not allowed in a USCC?

    I, O, S, V and Z never appear, to avoid confusion with digits. The validator reports the offending character before it checks either checksum.

    How many check characters does a USCC have?

    Two. Position 17 is the GB 11714 organization-code check character, and position 18 is the GB 32100 mod-31 check character, and both must pass.

    Why do generated codes always start with 91?

    9 marks the industry and commerce registration authority and 1 marks the enterprise entity type, so the generator pins the prefix to that common case.

    Is the USCC the same as the old 15-digit registration number?

    No. The USCC is 18 characters with two check characters; the older registration number is a different, shorter field.

    References & standards