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:
85means 1985. - Digits 3–5 are the day of the year you were born, counted from 1 January. For women, 500 is added, so
320is a man born on day 320 and820is 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
How to get a PDF under the upload limit for an online application
Job portals, university applications and government e-services often cap uploads at 1 or 2 MB. Here's how to shrink a scanned PDF without making it unreadable.
How to sign a PDF without printing it
Sign a contract, a school form or a quotation on your phone or laptop: draw your signature once, place it on the page, add the date and download.
Passport and visa photo sizes, and how to make one at home
The common photo sizes for Sri Lankan passports and foreign visas, what makes a photo get rejected, and how to make a correctly cropped photo and print sheet from a phone picture.