esc
ID checkers

NIC to birthday:
Sri Lanka NIC decoder

Type an old or new NIC number to see the date of birth, gender and age written into it.

More tools for Sri Lanka Other countries

How to use NIC to birthday

  1. 01Type the NICOld with V or X, or 12 digits.
  2. 02Read the resultBirthday, gender and age.
  3. 03See the workingWhich digit means what.
Front and back of an ID card on one sheet of paper

741922757V: male, born 10 July 1974.

A Sri Lankan NIC number starts with the year of birth and a 3-digit day number, with 500 added for women. The tool turns that day number into a real date, using the NIC rule that counts 29 February in every year, and shows each step.

NIC to birthday in one step: every Sri Lankan NIC number carries the holder’s year of birth, a day number and, through that day number, the gender. Type an old NIC with V or X or a new 12-digit NIC above, or read on to work out the date of birth from a NIC number by hand.

What the digits of a NIC mean

Cards issued before 1 January 2016 have 9 digits and a letter. Cards issued from that date have 12 digits and no letter. Both carry the same information in the same order.

  • Old NIC, e.g. 741922757V: 74 is the year of birth (1974), 192 is the day number, 275 is the serial, 7 is the check digit and V is the letter.
  • New NIC, e.g. 197419202757: 1974 is the year of birth, 192 is the day number, 0275 is the serial and 7 is the check digit.
  • Day numbers 001–366 belong to men. Women have 500 added, so their day numbers run from 501 to 866.

How to find the date of birth from a NIC number

  1. Take the year: the first 2 digits of an old NIC (add 1900) or the first 4 digits of a new one.
  2. Take the next 3 digits. If they are more than 500, the holder is a woman: subtract 500.
  3. Count through the months with January 31, February 29, March 31, April 30, May 31, June 30, July 31, August 31, September 30, October 31 and November 30 days until you reach that day.
  4. For 741922757V: day 192. January to June add up to 31 + 29 + 31 + 30 + 31 + 30 = 182 days, and 192 − 182 = 10, so the birthday is 10 July 1974.

The 29 February rule most calculators get wrong

The NIC day number counts February as 29 days in every year, not only in leap years. Day 060 is always 29 February and day 061 is always 1 March.

In a year that isn’t a leap year, that means day 060 can’t appear on a real card, and from March onwards the NIC date is one day earlier than a plain “day of the year” count. For 902580972V (1990, day 258), a plain count gives 15 September; the NIC count gives 14 September 1990. Open-source NIC parsers and their test numbers follow the NIC count, and so does this tool.

In a leap year the two counts agree, so the difference only shows for people born from March onwards in a non-leap year.

V and X at the end of an old NIC

  • V: the holder was eligible to vote in the area when the card was issued.
  • X: usually means the holder couldn’t vote, for example because they weren’t a permanent resident when they applied.
  • The letter has nothing to do with the birthday or gender, and the new 12-digit NIC has no letter at all.

When the result looks wrong

  • Check that you typed the whole number. A 10-character old NIC with the letter, or 12 digits for a new one.
  • A day number between 367 and 500, or above 866, can’t occur, so one of the digits is mistyped.
  • A birthday of 29 February in a year that wasn’t a leap year means a typo too.
  • If the date is one day off compared with another calculator, the other calculator probably uses a plain day count. See the 29 February rule above.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

Why do other NIC calculators give my birthday one day off?

The day number on a NIC counts 29 February in every year. In a year that isn’t a leap year, a calculator that uses a plain day-of-year count gives a date one day too late from March onwards. This tool uses the NIC count.

Does it work with the new 12-digit NIC?

Yes. The new number has the full year in the first four digits and the same day number after it, so both formats give the same birthday.

Can it tell me whose NIC this is?

No. It only reads the birth date and gender that are part of the number. It doesn’t connect to the Department for Registration of Persons.

Is the NIC number sent anywhere?

No. Everything runs in your browser.

How do I find gender from a NIC number?

Look at the day number: digits 3 to 5 of an old NIC or digits 5 to 7 of a new one. Under 500 means male, over 500 means female.

Does the tool check the last digit?

No. The last digit is a check digit, but the Department for Registration of Persons doesn’t publish how it is worked out, so the tool shows it without checking it.

Can I copy the date of birth?

Yes. The Copy button copies the date of birth as YYYY-MM-DD, the form most online forms accept.