Datatypes

Hong Kong identity card number (HKID)

ID hk_hkid

DatatypePersonal data (PII)identifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Number of the Hong Kong identity card: one or two letters, six digits and a check character (a digit or A), which is often written in parentheses.

Categories
Personally identifiable information, Person related
Countries
Hong Kong
Languages
Chinese, English
W3C DPV
pd:OfficialID
Microsoft Purview
Hong Kong identity card (HKID) number
Quality
75/100 · missing: examples, negative example, translation
Metacrafter rules
no detection rule yet
Supported by tools
AWS Glue Sensitive Data Detection, Azure AI Language PII detection, Databricks Unity Catalog data classification, Microsoft Purview Data Loss Prevention, Nightfall AI

Regular expression

^[A-Z]{1,2}\d{6} ?(?:[0-9A]|\([0-9A]\))$

Python re syntax.

Sources

Use this record