---
id: "pk_cnic"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["PK"]
langs: ["ur", "en"]
quality: 85
url: "http://registry.apicrafter.io/datatype/pk_cnic"
---

# Pakistani national identity card number (CNIC) (`pk_cnic`)

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

Number of the Computerised National Identity Card (CNIC), or Smart National Identity Card, that NADRA issues to citizens of Pakistan aged 18 or older. It has 13 digits, written as 5, 7 and 1 digits separated by hyphens: a five-digit locality code whose first digit is the province, a seven-digit serial number, and a last digit that is odd for men and even for women.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Pakistan (PK)
- Languages: Urdu (ur), English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[1-7]\d{4}-?\d{7}-?[1-9]$
```

## Examples

- `34201-0891231-8` — Example from the python-stdnum documentation
- `42201-0397640-8` — Example from the python-stdnum documentation
- `3420108912318` — The first example without hyphens
- `34201-0891231-0` (invalid example) — Last digit 0 does not encode a gender
- `84201-0891231-8` (invalid example) — Unknown province digit 8

## Mappings

- stdnum: `pk.cnic`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/CNIC_(Pakistan)>
- doc: <https://www.nadra.gov.pk/identity/identity-cnic/>
- doc: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pk.cnic.html>

## Quality

Score 85/100. Missing: translation, detector coverage.

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