Mainland ID format checker
Practical ToolsCheck current network

Mainland ID format checker

Inspect dates, encoded sex and the check digit, singly or in batches, in your browser

All input is processed in this browser and is never sent to a server or written to local storage.

Enter data or load the example, then process it.

Up to 1,000 nonblank lines and 100,000 characters. Input is not saved or added to the URL.

Supported input and rules

This tool accepts 18-character mainland resident ID numbers. It checks the character pattern, mainland province prefix, Gregorian birth date and MOD 11-2 check digit independently. Lowercase x is accepted; internal spaces, 15-digit legacy numbers and other document types are not converted.

How to use the result

Enter one number per line and select Process. Results show a masked number, six-digit address code, province prefix, date, age in completed years and encoded sex. Age uses today in Beijing; a leap-day birthday completes another year on March 1 in a non-leap year. Check the four results separately before correcting the source data.

Worked example

11010519491231002X is a published encoding example: date 1949-12-31, female encoding, check digit X. Changing only X to 0 fails the checksum. A correct checksum can still accompany an impossible date, so it cannot replace the calendar check.

Does passing confirm a real identity?

No. There is no connection to police or identity registries. County codes, including historical codes, are not verified. The province prefix is not a current residence. A pass does not prove issuance, the holder, name matching or document validity; age and sex are decoded from the supplied text.

Rule references

GB 11643—1999 · ID encoding explanation (Chinese)