Datatypes

Malaysian identity card number (NRIC)

ID my_nric

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).

National Registration Identity Card number (MyKad number) of Malaysian citizens and permanent residents. It has twelve digits: the date of birth (YYMMDD), a 2-digit birth place code and four digits, the last of which is odd for males and even for females. It is often written with hyphens after the sixth and eighth digits.

Categories
Personally identifiable information, Person related
Countries
Malaysia
Languages
Malay, English
W3C DPV
pd:OfficialID
Microsoft Purview
Malaysia Identity Card Number, Malaysia identification card number
python-stdnum
stdnum.my.nric
Quality
95/100 · missing: translation
Metacrafter rules
no detection rule yet
Supported by tools
AWS Glue Sensitive Data Detection, Azure AI Language PII detection, DataPrep, Microsoft Purview Data Loss Prevention, Nightfall AI, python-stdnum

Regular expression

^\d{6}-?\d{2}-?\d{4}$

Python re syntax.

Examples

ValueDescription
440521161293Synthetic number in the documented format
380220029348Synthetic number in the documented format
440521-16-1293The first example in its printed form
4405211612937 invalidOne character too many

Sources

Use this record