Enter an ID card number
18-digit second-generation cards only; the number is parsed inside this page only.
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
- 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.
- Digits 7-14, the birth date: four-digit year, two-digit month, two-digit day - 19900307 means 7 March 1990.
- 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.
- 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
- One lookup, seven answers: region, birth date, gender, age, constellation, zodiac and the checksum verdict on a single screen.
- A colour-coded card diagram: region, birth, sequence and check segments, each with its meaning spelled out.
- The check digit follows the GB 11643 MOD 11-2 algorithm exactly (national-standard weights and mapping), and a failing card is told what its correct digit should have been.
- Over 3000 current region codes; when a district has been renamed or abolished, the lookup falls back to its city and then its province.
- Zodiac years switch on Lunar New Year (a built-in 1900-2100 Spring-Festival table), so January and February births get the right animal.
- Private by design: no backend, no network request, no localStorage of the number - parsing happens only in this page's memory.
How to use
- Paste an 18-character number (a trailing X may be upper or lower case) and press Lookup or Enter.
- The result shows the segmented card first and the derived fields under it; every row has its own copy button, plus a copy-all button.
- The sample chips under the input are fictional numbers built with valid checksums - they match no real person.
- When the checksum fails, the message names the digit the first 17 characters demand, so you can tell a typo from a fake.
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
- Birth Tools (lunar, zodiac, bazi)
- Perpetual Calendar
- World Time Difference
- Unit Converter
- IP Address Lookup
- Text Diff & Review
Parses in your browser · the number is never stored or sent · free · English / 简体 / 繁體