Sri Lanka Old NIC to New NIC Converter
Turn your old 10-character NIC (9 digits + V or X) into the new 12-digit number that government and bank forms now require — and convert back the other way. Date of birth, age and gender are decoded too. No signup, nothing leaves your browser.
How it works
A Sri Lankan National Identity Card number is not random — it encodes when you were born and your gender. The Department for Registration of Persons (DRP) introduced the 12-digit format in 2016; before that, cards carried a 10-character number made of 9 digits and a trailing V or X. Both formats use the same underlying fields, which is why one converts cleanly into the other.
The field layout is:
- Old: YY DDD SSSS L — 2-digit year, 3-digit day-of-year, 4-digit serial, V/X letter.
- New: YYYY DDD 0 SSSS — 4-digit year, 3-digit day-of-year, a 0 separator, 4-digit serial.
To go old → new, the tool drops the V/X letter, fixes the century at 19 (everyone with an old card was born in the 1900s — the format was retired in 2016), and inserts the DRP's 0 separator before the serial. In short: new = "19" + first 5 digits + "0" + last 4 digits. Going new → old reverses this: remove the leading 19 and the 0 separator to rebuild the nine digits, then re-attach the suffix — defaulting to V, because the V/X status flag is not stored in the 12-digit number and cannot be recovered.
The date of birth comes from the same digits. The 3-digit day-of-year field carries a +500 offset for females: a field over 500 means female, and subtracting 500 gives the real day of the year. That day is mapped to a calendar date using a leap-year-aware month table — 1996 and 1988, for instance, have 366 days, so day 366 is valid in those years but rejected in a 365-day year. Because the day-of-year block is copied position-for-position during conversion, gender and date of birth are preserved automatically, with no special handling. The tool also runs an independent reverse check — converting the result back and confirming it reproduces your original number — so a bad input never yields a quietly wrong answer. One thing it deliberately does not do is recompute the new number's final digit: the DRP does not publish that check-digit algorithm, so the tool copies the documented layout rather than guess.
Worked examples
Frequently asked questions
Sources & references
- Department for Registration of Persons (DRP) — official NIC numbering scheme
- Registration of Persons Act No. 32 of 1968 (as amended) — legal basis for the NIC and V/X voter status
- Election Commission of Sri Lanka — electoral register use of the day-of-year and +500 female offset
The conversion rule and field layout on this page were last cross-checked against the DRP numbering scheme on 2026-06-11. The tool reformats a number you already hold; it does not verify identity or query any registry.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.