InputTestHub

Chinese Resident ID Validator

Checks a Chinese resident identity card number and decodes the date of birth, sex and issuing division it carries.

Security Nothing uploaded No sign-up Free, unlimited
Security tool
Enter something above.
In short A Chinese resident ID card number is eighteen characters and the last one can be an X, which surprises people — it is not a letter in the usual sense but the value ten, because the scheme is ISO 7064 MOD 11-2 and a mod-11 result needs eleven possible characters. The number is also highly informative: the first six digits are the county-level administrative division that issued it, the next eight are the date of birth in YYYYMMDD, and the seventeenth digit gives the sex, odd for male and even for female. The check character catches every single-digit error and every adjacent transposition, verified over 3,000 cases. What it does not do is prove the card exists — only the Ministry of Public Security can.

How to use the Chinese Resident ID Validator

  1. Paste the number — punctuation and spaces are ignored.
  2. Read the verdict and, where the number encodes anything, what it decodes to.
  3. Treat a pass as "typed correctly", not as "confirmed by the authority".

About the Chinese Resident ID Validator

A Chinese resident ID card number is eighteen characters and the last one can be an X, which surprises people — it is not a letter in the usual sense but the value ten, because the scheme is ISO 7064 MOD 11-2 and a mod-11 result needs eleven possible characters. The number is also highly informative: the first six digits are the county-level administrative division that issued it, the next eight are the date of birth in YYYYMMDD, and the seventeenth digit gives the sex, odd for male and even for female. The check character catches every single-digit error and every adjacent transposition, verified over 3,000 cases. What it does not do is prove the card exists — only the Ministry of Public Security can.

What people use it for

  • Catching a mistyped number in a form before it reaches a database.
  • Cleaning an imported list and finding the rows that cannot be right.
  • Understanding what the number encodes and what it does not.

Details

StandardISO 7064 MOD 11-2, which is why the last character can be X
X means tenA mod-11 check needs eleven symbols; 0 to 9 give ten, so X carries the eleventh
EncodedIssuing division, full date of birth, and sex
Typo detection100% of single-digit errors and 100% of adjacent transpositions
Length18 characters since 1999; the older 15-digit format has no check digit at all
The date of birth is decoded from the number rather than looked up, so a card number whose date field is impossible is reported as not well formed even if the check character passes. Nothing you paste is transmitted — the check runs entirely in your browser.

Where this tool stops

Internal consistency and a decoded date. It cannot confirm the card exists, is current, or belongs to the bearer.

Frequently asked questions

Why does the number end in X?
Because the check value can be ten, and ten needs a single character. The standard assigns X to that value. An X is a perfectly normal ending, not a sign that something is wrong.
What do the first six digits mean?
The administrative division code of the county-level authority that issued the card — province, prefecture and county. It records where the card was issued, which is not necessarily where the holder lives now.
My number is 15 digits.
That is the pre-1999 format, which carries a two-digit year and no check digit at all. It cannot be validated by arithmetic; only the length and the date field can be checked. Most were reissued in the 18-digit form.
Is anything I paste sent anywhere?
No. The arithmetic runs in this browser tab and no request is made — open your Network tab and watch while you type. That matters more for an identity number than for almost anything else on this site, which is why there is no server side to this tool at all.
Does this replace an official check?
No, and it cannot. Every scheme here proves at most that the digits are internally consistent. Only the issuing authority can confirm a number exists, is active, and belongs to a particular person.
Is there a limit on how often I can use the Chinese Resident ID Validator?
It is free, with no account, no trial and no daily cap. Every security tool on inputtesthub.com works the same way: open the page and use it.
Is what I paste into the Chinese Resident ID Validator stored?
No. The Chinese Resident ID Validator runs entirely in your browser using JavaScript. Because the work happens locally, the page also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
When would I actually need the Chinese Resident ID Validator?
The most common reasons people reach for it: catching a mistyped number in a form before it reaches a database. Cleaning an imported list and finding the rows that cannot be right. Understanding what the number encodes and what it does not. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
What are the limits of the Chinese Resident ID Validator?
Internal consistency and a decoded date. It cannot confirm the card exists, is current, or belongs to the bearer. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the reference figures here?
Standard is ISO 7064 MOD 11-2, which is why the last character can be X. X means ten is A mod-11 check needs eleven symbols; 0 to 9 give ten, so X carries the eleventh. Encoded is Issuing division, full date of birth, and sex. These are printed on the page itself, so you do not have to take them on trust.
Can I use the Chinese Resident ID Validator on mobile?
Yes. The page is responsive and the page works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related security tools

All 100
01

Password Strength Checker

Estimates password entropy and crack time, and identifies the specific weaknesses in what you…

02

Hash Generator

Generates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, all at once.

03

MD5 Hash Generator

Generates an MD5 hash of any text or string, with optional HMAC and uppercase output.

05

SHA-1 Hash Generator

Generates SHA-1 hashes, still required by some legacy systems and Git object addressing.

06

SHA-512 Hash Generator

Generates SHA-512 hashes for checksums, signatures and archival fingerprints. Runs in your…

09

AES Text Encryption

Encrypts and decrypts text with AES-GCM 256-bit using a password, entirely in your browser.

10

XOR Cipher Tool

Applies a repeating-key XOR to text or hex, the operation behind many simple obfuscation…