induwara.lk
induwara.lkSri Lanka · Utility

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.

By Induwara AshinsanaUpdated Jun 11, 2026
Convert your NICold ↔ new
DRP layout

Spaces are ignored and letters are upper-cased automatically. Nothing you type leaves your browser.

Try a sample
New 12-digit NIC
197429202757

Cross-checked: converting back reproduces your original number.

Date of birth
19 October 1974
Age today
51 years
Gender
Male

Field breakdown

FieldValue
Birth year1974
Day-of-year field292
Serial number2757
Voter-status suffixV

Source: Department for Registration of Persons (DRP) 2016 numbering layout. This tool reformats a number you already hold — it never queries any registry and stores nothing.

  • The V/X voter-status suffix is not part of the 12-digit number, so it is dropped in the new format.

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

Old → New (male)

742922757V197429202757

  1. Drop the V suffix → 742922757
  2. First 5 digits: 74292 · last 4 digits: 2757
  3. New = "19" + "74292" + "0" + "2757" = 197429202757
  4. Decode: year 1974, day-of-year 292 (≤500 → male)
  5. 1974 is not a leap year; day 292 = 19 October 1974

Female +500 offset

886734567V198867304567

  1. Drop the V suffix → 886734567
  2. First 5 digits: 88673 · last 4 digits: 4567
  3. New = "19" + "88673" + "0" + "4567" = 198867304567
  4. Day-of-year field 673 > 500 → female, real day 673 − 500 = 173
  5. 1988 is a leap year; day 173 = 21 June 1988

Round-trip (New → Old)

198531500388853150388V

  1. Remove the leading 19 and the 0 separator at position 8
  2. Rebuild nine digits: 85315 + 0388 = 853150388
  3. Re-attach the suffix (defaults to V) → 853150388V
  4. Decode: year 1985, day 315 (male) = 11 November 1985
  5. Reverse the steps and you land back on 198531500388 ✓

Frequently asked questions

Sources & references

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

Rate this tool
Be the first to rate

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.