Chinese resident ID validator

Validate Chinese resident ID numbers and read the region, date of birth, and checksum.

Resident ID number

Validate Chinese resident ID numbers and read the region, date of birth, and checksum.

Validation result

Validate Chinese resident ID numbers and read the region, date of birth, and checksum.

What is a PRC resident ID number?

A PRC resident ID number has 18 characters: an address code, date of birth, sequence code, and check digit. This validator checks these parts offline and helps you inspect the structure.

How validation works

  • Remove spaces and hyphens and normalize the last character to uppercase X
  • Require exactly 18 characters with 17 digits plus a final digit or X
  • Match the first 6 digits against the 2023 administrative region dataset and parse the 8-digit birthdate
  • Recompute the checksum digit from the first 17 digits and compare it with the final character

What the result shows

  • Region breakdown: province, city, district/county, and the raw region code
  • Birthdate, current age, sequence code, and the gender value derived from the sequence code
  • The normalized ID together with the expected and actual check digit for debugging

Example

110101199001010015 can be read as:

  • 110101 -> Dongcheng District, Beijing
  • 19900101 -> birthdate 1990-01-01
  • 001 -> sequence code
  • 5 -> check digit

Important note

This tool only performs structural and checksum validation offline. A number that passes these checks is not proof of a real or currently active identity document.

Region names are based on the 2023 administrative division dataset.

How to use

Enter a value and inspect individual local checks