---
id: "my_nric"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["MY"]
langs: ["ms", "en"]
quality: 95
url: "http://registry.apicrafter.io/datatype/my_nric"
---

# Malaysian identity card number (NRIC) (`my_nric`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Malaysia (MY)
- Languages: Malay (ms), English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

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

## Examples

- `440521161293` — Synthetic number in the documented format
- `380220029348` — Synthetic number in the documented format
- `440521-16-1293` — The first example in its printed form
- `4405211612937` (invalid example) — One character too many

## Mappings

- dpv: `pd:OfficialID`
- purview: `Malaysia Identity Card Number`, `Malaysia identification card number`
- stdnum: `my.nric`

## Supported by tools

- `awsglue`
- `azureailanguage`
- `dataprep`
- `microsoftpurview`
- `nightfall`
- `pythonstdnum`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Malaysian_identity_card>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.my.nric.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_my_nric.html>

## Quality

Score 95/100. Missing: translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/my_nric.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/MY/persons/my_nric.yaml>
