---
id: "lk_nic"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["LK"]
langs: ["si", "ta"]
quality: 95
url: "https://registry.apicrafter.io/datatype/lk_nic"
---

# Sri Lankan national identity card number (NIC) (`lk_nic`)

> **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 Sri Lankan national identity card. Cards issued before 1 January 2016 have nine digits and a letter: the two-digit birth year, the day of the year of birth (500 is added for women), a three-digit serial number, a check digit and V or X, which tells whether the holder may vote. Newer cards have twelve digits: the four-digit birth year, the day of the year (plus 500 for women), a four-digit serial number and a check digit. The check digit algorithm is not published.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Sri Lanka (LK)
- Languages: Sinhala (si), Tamil (ta)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:[0-9]{2}(?:[0-3][0-9]{2}|[5-8][0-9]{2})[0-9]{4}[VvXx]|(?:19|20)[0-9]{2}(?:[0-3][0-9]{2}|[5-8][0-9]{2})[0-9]{5})$
```

## Examples

- `911042754V` — Old format, from the format description in Wikipedia
- `197419202757` — New format, example from Wikipedia
- `91104275V` (invalid example) — Old format with eight digits

## Mappings

- dpv: `pd:OfficialID`

## Supported by tools

- `validatorjs`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/National_identity_card_(Sri_Lanka)>

## Quality

Score 95/100. Missing: translation.

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