China Resident ID Validator
Validate People's Republic of China resident identity numbers with format checks, birthdate parsing, checksum explanations, and a compliant random generator.
Enter an 18-digit Chinese resident identity card number to inspect its format, birthdate, and checksum.
A modern Chinese ID must contain 17 digits plus a final digit or X without other symbols.
Output appears here...
Start by entering an ID
Type a Chinese ID or generate one to view validation details.
Normalized ID—
Registered regionUnknown region
Birthdate—
Calculated age—
Gender markerUnknown code
Sequence code—
Check digit—
Checksum sum—
Quick rule summary
- Basic format: 18 characters total: 17 digits plus a final digit or the letter X.
- Region codes: The first six digits encode province and city codes assigned by public security authorities.
- Birthdate block: Digits 7-14 store the birthdate in YYYYMMDD format and must be a valid calendar day.
- Sequence digits: Digits 15-17 identify the resident. Odd numbers denote males, even numbers denote females, and 000 is invalid.
- Checksum rule: Multiply the first 17 digits by weights (7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2), sum them, take mod 11, and map to 1,0,X,9,8,7,6,5,4,3,2.
Disclaimer
- For educational use only. Do not collect or submit real identity data without consent.
- Region mapping covers provinces and major cities; some county-level codes may appear as unknown.
- Ages are approximations based on UTC and the provided birthdate segment.