We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Quickly locate and extract mainland China ID numbers from any text. Supports both 15-digit and 18-digit formats and includes a total count.
Enter text to start extraction
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
This text extractor scans pasted text for a specific mainland China resident identity number pattern. It looks for 18 consecutive characters: a six-digit prefix beginning 1–9; a year from 1800 through 2099; a month from 01 through 12; a day from 01 through 31; three more digits; and a final digit, X or x. Matches retain their original character case and appear in the order they occur in the text.
This is a pattern filter, not a full validation. In particular, the month and day are checked as separate numeric ranges rather than as a real calendar date, and the final character is not checked with the standard checksum algorithm. A string can therefore be extracted even if the date is impossible or the check character is wrong.
China’s GB 11643-1999 standard describes the resident citizen identity number as a six-digit address code, eight-digit birth-date code, three-digit sequence code and one check character. The standard’s checksum is a separate check beyond finding a string with a matching shape. The current national standards listing identifies GB 11643-1999 as in force.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Paste a document excerpt, multi-line list or other text into the input area. The tool searches the text for matching candidate strings.
Duplicate removal is on by default, leaving only the first occurrence of each exact string. Turn it off to retain repeated occurrences.
When duplicates are retained, you can enable frequency grouping to show each identical string with its occurrence count.
Copy an individual result or all results. In grouped mode, the copied list includes each string and its count. The result order follows first appearance in the pasted text.
Use cases
See how the tool fits into real work and everyday tasks.
A developer cleaning a permitted Chinese data export can use the extractor to collect strings matching this format before applying a separate, appropriate validation step.
For an authorized text list, keep duplicates and turn on frequency grouping to see how often the same candidate appears, then copy the grouped summary for manual review.
Q&A
Find concise answers to common questions and confusing cases.
No. Extraction only means the characters fit the page’s pattern. It does not verify the checksum, a person’s identity, citizenship, document authenticity or whether the number is currently valid.
The pattern permits month values 01–12 and day values 01–31 independently. It does not check whether that day exists in that particular month and year.
Matches use word boundaries. A candidate touching a letter, digit or underscore may not form a separate word-shaped match, while nearby Chinese characters and punctuation generally do not count as ASCII word characters.
Turn off duplicate removal. If you also turn on frequency grouping, each exact string is displayed once with its count.
Notes
Review scope, result limitations, and important precautions before use.
Identity numbers are sensitive personal identifiers. Process only text you are authorized to handle, minimize the excerpt, and protect any copied results according to your organization’s rules and applicable law.
Related
Discover related tools, collections, and available API capabilities.