← Back to Tools

ID Card Lookup

18 digits · parsed locally · nothing uploaded

English 简体 繁體

Enter an ID card number

18-digit second-generation cards only; the number is parsed inside this page only.

Samples (fictional, valid checksums):

Result

After you enter a number and press Lookup, this area shows the colour-coded card diagram and every derived field.

How the number is built

  1. Digits 1-6, the region code: the county-level administrative division (GB/T 2260) where the holder's household was first registered. It never changes when the family moves; digits 1-2 are the province, 3-4 the city, 5-6 the district.
  2. Digits 7-14, the birth date: four-digit year, two-digit month, two-digit day - 19900307 means 7 March 1990.
  3. Digits 15-17, the sequence code: an order number for people born the same day in the same region; the 17th digit is odd for males and even for females.
  4. Digit 18, the check digit: multiply the 17 digits by the weights 7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2, sum them, take the remainder modulo 11, and map it through 1,0,X,9,8,7,6,5,4,3,2. It catches most typos and fabrications but cannot prove the card is real.

Features

How to use

FAQ

Is it safe to type my ID number here?
Nothing leaves the page: segmenting, region lookup, the checksum and the zodiac math all run in your browser. The page sends no request carrying your number and never writes it to localStorage, so it disappears when the tab closes. Only content you explicitly copy goes anywhere else.
Does a passing checksum prove the card is genuine?
No. MOD 11-2 is an internal consistency check: it rejects most typos and random fabrications, but a number crafted with the formula in mind passes just the same, and nothing here verifies that the holder exists. Real-name verification requires government interfaces, which no web tool can substitute.
Why does my region code show nothing (or only a province)?
The code records the district where the household was registered at first issue. Districts get renamed, merged or re-coded - many Chinese cities reshuffled theirs in the last decade - and older codes then miss the current table. The page falls back one level (city, then province) and says so; codes for Hong Kong, Macao and Taiwan are kept at province level only.
What about 15-digit numbers?
Unsupported here. First-generation 15-digit numbers carry no century and no check digit, so upgrading them to 18 means guessing the century - producing a plausible-but-wrong number is worse than refusing. They were also superseded: issuance stopped around 1999 and legal validity in 2013.
Does the zodiac switch at LiChun or at Lunar New Year?
Both conventions exist: folk usage (zodiac-year customs, animal signs) switches at the first day of the lunar year, while fortune counting (bazi) switches at LiChun, the Start of Spring. This page follows the folk convention, matching other ID-lookup tools; for the LiChun-based four-pillar chart use the Bazi tab of our Birth Tools suite.

About

ID Card Lookup extracts everything a number can be read for: the first six digits are resolved against a current administrative-division table for the registered region, digits 7-14 give the birth date, digit 17 encodes gender, and the birthday yields age, constellation and zodiac (Lunar-New-Year boundary). The trailing digit is re-derived with GB 11643 MOD 11-2. It matches w3ctool.com/tools/idcard-query and adds a 'the correct check digit would be N' hint whenever validation fails.

Every table ships with the page: 3000+ region codes (GB/T 2260, generated by tools/idcard/gen-data.mjs) and a 1900-2100 Spring-Festival table; the algorithm is about 200 dependency-free lines. An already-loaded tab keeps working offline, and the server hosting this page never sees the numbers you try.

More tools on this site

Parses in your browser · the number is never stored or sent · free · English / 简体 / 繁體

© 2026 knoweave.com