Chinese ID card (身份证) by known name
ID idcard
DatatypePersonal data (PII)identifier
Citizen identification number of the People's Republic of China, printed on the Resident Identity Card (居民身份证). Since 1999 it has 18 characters, a six-digit address code, the date of birth as YYYYMMDD, a three-digit sequence code and a check digit computed with ISO 7064 MOD 11-2, where X stands for 10. Older numbers have 15 digits, with a two-digit year and no check digit.
- Categories
- Personally identifiable information, Person related
- Countries
- China
- Languages
- Chinese
- AutoType benchmark
cin- W3C DPV
pd:OfficialID- Microsoft Purview
China resident identity card (PRC) number- python-stdnum
stdnum.cn.ric- Quality
- 75/100 · missing: examples, negative example, translation
- Metacrafter rules
- 3 rules (3 by field name, 0 by value)
cnidcardknownfield, cn/cn_persons.yamlcn_pii_cnidcardknownfield, pii/cn/cn_pii.yamlzhidcardknownfield, pii/zh/zh_pii.yaml
- Supported by tools
- Auto-Type, AWS Glue Sensitive Data Detection, Azure AI Language PII detection, Databricks Unity Catalog data classification, DataPrep, metacrafter, Microsoft Purview Data Loss Prevention, python-stdnum
Regular expression
^(?:\d{17}[\dX]|\d{15})$
Python re syntax.
Sources
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/idcard - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/CN/persons/idcard.yamlon GitHub