Every NIC number hides a birthday.

Sri Lankan NIC numbers encode a birth date and gender. Paste yours below to see what's hidden.

old and new formats both work

Decoded 199906731234

Date of Birth

22 June 1999

Age

27

Gender

Female

Runs in your browser. Never stored.

How Sri Lankan NIC Number Decoding Works

  1. 1.

    Read the birth year

    The first four digits on a new-format card (or first two on an old one) encode the birth year. New: 1999 from 1999…. Old: 90 from 90….

  2. 2.

    Decode day-of-year and gender

    The next three digits are the day of the year — 1 for 1 January, 365 for 31 December. If the number exceeds 366, subtract 500 to get the actual day, and that means the cardholder is female.

  3. 3.

    Serial number and check digit

    What remains is a serial number assigned at registration. New-format cards (12 digits) end with a single check digit; old-format cards (9 digits + a letter) end with V or X.

Old format vs. new format

OLD · 10 characters

90   673   1234   V

90 Year 2 digits
673 Day + gender
1234 Serial
V Check V or X
NEW · 12 digits

1999   673   1234   0

1999 Year 4 digits
673 Day + gender
1234 Serial
0 Check digit

We never see your NIC number.

Decoding happens entirely within your browser — no data leaves your device. Nothing is transmitted to a server, logged, or stored in any form.

Frequently Asked Questions About Sri Lankan NIC Numbers

A National Identity Card (NIC) number is the unique identifier issued by Sri Lanka's Department for Registration of Persons to every citizen. It appears on the physical identity card and is used for most official purposes.

No. The entire decoding process runs in JavaScript inside your browser. No NIC number is ever sent to a server or recorded in any way.

Old-format NICs have 9 digits followed by a letter (V or X) — 10 characters total. The year is encoded in just 2 digits. New-format NICs (issued from around 2016) use 12 digits, with the full 4-digit birth year and a numeric check digit instead of a letter.

No. This is an independent tool and is not affiliated with, endorsed by, or connected to the Department for Registration of Persons or any other Sri Lankan government body.

Enter your NIC number in the decoder above. The tool reads the day-of-year digits embedded in the number and converts them to an exact calendar date — giving you the date of birth, age, and gender instantly.

In the old-format NIC (9 digits + letter), V means the cardholder is a registered voter, while X means they are not registered to vote. New-format 12-digit NICs replaced this letter with a numeric check digit.

Prepend “19” to the 2-digit year, keep the 3-digit day code unchanged, insert a zero before the 4-digit serial to make it 5 digits, then remove the V or X suffix. Example: 852140123V becomes 198521400123.

The 3-digit day-of-year value determines gender. Values between 1 and 366 indicate male. Values between 501 and 866 indicate female — subtract 500 to get the actual day of the year.