Every Sri Lankan National Identity Card (NIC) number hides the holder's birth year, birthday and gender. Banks, schools, HR teams and online forms often need these details – and once you know the pattern, you can read them from the number in a few seconds. This guide shows how, for both the old and the new NIC formats.
The quick answer
Take the birth year from the start of the number, then the next three digits are the day of the year the person was born. If those three digits are more than 500, the holder is a woman – subtract 500 to get the real day. Count the days with February always having 29 days.
Old NIC and new NIC formats
| Old NIC (until 2015) | New NIC (from 2016) | |
|---|---|---|
| Length | 9 digits + V or X | 12 digits |
| Example | 853400937V | 198534000937 |
| Birth year | First 2 digits (85 → 1985) | First 4 digits (1985) |
| Day of the year | Digits 3–5 (340) | Digits 5–7 (340) |
| Serial number | Digits 6–8 | Digits 8–11 |
| Last character | Check digit, then V or X | Check digit |
How to read the birthday, step by step
- Find the year. Old NIC: add 19 in front of the first two digits. New NIC: the first four digits are the year.
- Find the day number. The next three digits. If it is above 500, the holder is female – subtract 500.
- Turn the day number into a date. Count through the months: January 31, February 29, March 31, April 30, May 31, June 30, July 31, August 31, September 30, October 31, November 30, December 31.
Example (old NIC): 853400937V → year 1985, day 340. January to November add up to 335 days, so day 340 is the 5th of December. 340 is below 500, so the holder is male: 5 December 1985, male.
Example (new NIC): 199586204567 → year 1995, day 862. That is above 500, so female, and 862 − 500 = 362, which is 27 December 1995.
Converting an old NIC to the new format
Put 19 in front of the year, keep the three day digits, put a 0 before the last four digits and drop the V or X. So 853400937V becomes 198534000937. Going the other way only works for people born in the 1900s whose new number has a 0 in the 8th place.
What do V and X mean?
On old NICs, V means the holder was registered as a voter when the card was issued, and X means they were not. The letter has nothing to do with the birthday or gender. The new 12-digit NIC has no letter.
Common questions
How do I know if an NIC belongs to a man or a woman?
Look at the three digits after the year. 001–366 means male; 501–866 means female (500 is added for women).
Can I find someone's exact age from their NIC?
Yes. Work out the birthday as shown above and count to today – or type the number into the NIC decoder, which shows the exact age in years, months and days.
Why does my birthday look one day off?
You probably used a normal day-of-year count. NIC numbers always count February as 29 days, so every date after February moves by one day in non-leap years.
Is it safe to type my NIC into a website?
On ToolNest LK the NIC decoder runs only on your device – the number is never sent or saved. Be careful with sites that upload your details.