Sri Lankan NIC numbers explained: old and new formats

Your National Identity Card number is more than a serial number. It carries your year of birth, your birthday and your gender. Banks, telcos and HR systems check it all the time. Knowing how it works helps you spot typing mistakes before a form gets rejected.

The old format: 9 digits and a letter

Cards issued before 2016 use nine digits followed by V or X, for example 853202937V.

  • Digits 1–2 are the last two digits of the birth year: 85 means 1985.
  • Digits 3–5 are the day of the year you were born, counted from 1 January. For women, 500 is added, so 320 is a man born on day 320 and 820 is a woman born on the same day.
  • Digits 6–9 are a serial number and a check digit.
  • The letter was traditionally V for people eligible to vote and X for those who weren't.

The new format: 12 digits

Cards issued from 2016 use twelve digits and no letter, for example 198532002937. The year is written in full (1985), followed by the same three-digit day number (with 500 added for women), then the serial and check digit. A zero is added in front of the old serial number.

To convert an old number to the new format, put 19 in front of the year, keep the day number, add a 0 before the last four digits and drop the letter: 853202937V becomes 198532002937.

Why the day number is a little odd

The day count assumes every year has 29 February. So in a non-leap year, every birthday from 1 March onwards is one day further on than a normal calendar count would give. A good decoder allows for this. Ours does, which is why it can show the exact birthday.

Check a number in a second

Paste any NIC number into the NIC validator to see whether it's valid, the birthday and gender it contains, and its equivalent in the other format. It runs entirely in your browser, so the number is never sent anywhere.

More guides