A China resident ID has four blocks: a 6-digit region code, an 8-digit birthdate, a 3-digit sequence code, and a final checksum character. This tool breaks the number into those blocks so you can see which rule passed or failed.
Validation is not only a length check. The parser checks whether the birthdate is a real date, maps known region prefixes to provinces or cities, and recalculates the mod-11 checksum from the first 17 digits.
Generated numbers are fictional samples for validation, QA, and learning. They follow public format rules but are not registered to real people and must not be used for impersonation, account creation, or real-name verification.
Common questions and answers about this topic.
Yes. It produces 18-digit numbers with a correct region code, birthdate, and mod-11 checksum for verification, testing, and learning. You can fix the province, gender, or birth decade and randomize the rest. The numbers are fictional and match no real person.
The first 17 digits are multiplied by the weights 7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2, summed, then reduced mod 11; the remainder maps to 1,0,X,9,8,7,6,5,4,3,2. The tool shows each step so you can learn the rule.
No. Generated numbers only follow the public format and checksum rules; they are not registered to any real person, so they cannot pass official real-name verification. This tool is for verification, testing, and learning only and must never be used for impersonation or any unlawful purpose.
No. All validation and generation run entirely in your browser; nothing is uploaded or stored.
The 18 characters form four blocks. The first 6 digits are the region code (province, city, district), digits 7-14 are the birthdate (YYYYMMDD), digits 15-17 are the sequence code (the last one is odd for male and even for female), and the 18th character is the checksum (a digit or X). The tool breaks any entered or generated number into these blocks.
The first 6 digits are the administrative region codes published by public security authorities (for example, 11 for Beijing, 31 for Shanghai, 44 for Guangdong). The tool maps the region code to a province and major city automatically; some county-level codes may show as an unknown region.
The three formats are completely different. Mainland China uses 18 characters (including the birthdate and a mod-11 checksum); Taiwan uses one letter followed by 9 digits; Hong Kong uses one or two letters followed by 6 digits and a check digit in parentheses. This site also has Taiwan and Hong Kong ID validators.
The current second-generation ID has 18 characters (since 1999; the older version had 15). The 18th character is the checksum, derived from the first 17 digits using a weighted sum mod 11; when the remainder maps to 10, it is written as the Roman numeral X so it stays a single character.