China Resident ID Format Validator (中国身份证)

CN ID ISO 7064 CHECKSUM
Share:

China Resident ID (身份证) format validator using the ISO 7064 MOD 11-2 algorithm. 18 digits: 6 region + 8 birthdate + 3 serial + 1 check. Browser-only.

RT-CHN-068 · Converters & Units

China Resident ID Format Validator (中国身份证)

Advertisement
After results · AD-W1Responsive

How to use

Enter the 18-digit ID

Format: 6-digit administrative region + 8-digit birthdate (YYYYMMDD) + 3-digit serial + 1 check digit (0-9 or X).

Identify province

First 2 digits = province code (11=Beijing, 44=Guangdong, 31=Shanghai, etc.). First 6 digits go down to county/district.

Parse birth date + gender

Digits 7-14 are the birth date; the tool checks for a real calendar date. The 17th digit's parity = gender (odd=male, even=female).

ISO 7064 MOD 11-2 check

Apply weights [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2] to the first 17 digits, mod 11, lookup the expected check character.

About China's 18-digit Resident ID

The PRC Resident Identity Card (居民身份证) is issued by the Ministry of Public Security. The current 18-digit format replaced the old 15-digit format on 1 October 1999 (per GB 11643-1989 upgrade). The new format adopts the ISO 7064 MOD 11-2 international standard for its check digit — meaning the ID can be validated anywhere in the world, offline.

What the 18 digits mean

Every digit carries meaning: digits 1-2 = provincial region (11=Beijing, 31=Shanghai, 44=Guangdong...); digits 3-4 = prefecture city; digits 5-6 = county/district; digits 7-14 = birth date YYYYMMDD; digits 15-17 = serial (the 17th digit\'s parity = gender); digit 18 = check character (0-9 or X, where X = Roman numeral 10).

"China's Resident ID is the world\'s most data-dense national ID — 18 digits packing 7 semantic segments (province / prefecture / county / year / month / day / serial + checksum)."

Practical use cases

The ID is everywhere in China: train tickets, hotel check-in, bank accounts, app signups, ride-hailing, SIM card registration. The 1999 18-digit upgrade enabled client-side HTML form validation, dramatically reducing entry errors.

Privacy stance

This tool runs entirely in your browser; the ID is never uploaded, logged, or stored. China\'s Personal Information Protection Law (PIPL) classifies the Resident ID as sensitive personal information — our zero-network design fully complies.

Advertisement
After how-to · AD-W2Responsive

10 facts about China's Resident ID

01

The 18-digit format took effect on 1 October 1999, replacing the older 15-digit format.

02

The check algorithm follows international standard ISO 7064 MOD 11-2 — same family as German IBAN and Polish PESEL.

03

The check character can be "X" — representing Roman numeral 10 when mod 11 remainder = 2.

04

Modern hardware can validate millions of IDs per second — pure offline, no DB lookup needed.

05

The first 6 digits go down to county/district — 3,000+ administrative codes (GB/T 2260 standard).

06

As of 2026, China has ~1.37 billion active Resident IDs — the world's largest single national ID system.

07

The 17th digit's parity determines gender (odd=male, even=female). China is one of few countries encoding gender directly into the ID.

08

HK/Macau/Taiwan Resident Permits (since 2018) also use the 18-digit format with prefix 81=HK, 82=Macau, 71=Taiwan.

09

The old 15-digit format = 6 region + 6 birth (YYMMDD, no century) + 3 serial (no checksum). Discontinued for new issuance after 1999.

10

China's PIPL classifies the Resident ID as sensitive personal information — this tool's zero-network design fully complies.

Frequently Asked Questions

  • No. The validation runs entirely in your browser — the ID is never uploaded, logged, or stored.

  • No. It only confirms the ID satisfies the ISO 7064 algorithm + has a real birth date. Real authenticity needs an MPS networked lookup.

  • Yes. When mod 11 remainder = 2, the check character is X (Roman numeral 10). About 9% of IDs end in X.

  • Administrative codes (GB/T 2260): first 2 = province, first 4 = prefecture city, first 6 = county/district. E.g. 110105 = Chaoyang District, Beijing.

  • Currently only to province level (33 provinces/municipalities/autonomous regions/SARs). County/district resolution needs a 3000+ row lookup table — planned for a future version.

  • No. This tool supports the current 18-digit format only. Old 15-digit IDs need to be upgraded to 18 digits at an MPS office first.

  • Yes. Digits 7-14 are the birth date in YYYYMMDD format — the tool displays the parsed birth date.

  • Yes. Official spec: 17th digit odd=male, even=female. Unchanged since 1999.

  • Yes. HK/Macau/Taiwan resident permits (since 2018) also use 18-digit ISO 7064 with prefix 81=HK, 82=Macau, 71=Taiwan.

  • Yes. All RECATOOLS tools are 100% free, ad-supported. No signup, no paywall.

Related News

You may be interested in these recent stories from our newsroom.

No related news yet for this tool. Our editorial team publishes new pieces every week.

Browse all news →
Advertisement
Pre-footer · AD-W3 728 × 90

75 more free tools

Calculators, converters, security tools — no signup.