Skip to content
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 Sep 16, 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
52 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. If you only want to read those fields out of a number rather than reformat it, the Sri Lanka NIC decoder does the same decoding for either format, and the age calculator will take the decoded date of birth from here and work out an exact age in years, months and days for a form that asks for it.

Validation and edge cases. A conversion is only accepted when the digits describe a real person-shaped record. The day-of-year field must land between 1 and the number of days in that specific year, so 366 passes for a leap year such as 1996 and is rejected for 1974. The calendar maths then runs a second time in reverse, the date is converted back to a day-of-year and compared with the input, so a month-table slip cannot produce a plausible-looking wrong date. The whole conversion is round-tripped as well: the output is converted back to the input format and the digits are compared, and the result is only marked verified when they match. Two further cases are flagged rather than hidden: a 12-digit number whose year is 2000 or later has no genuine old-format equivalent (that person never held one), and an eighth digit that is not 0 does not follow the standard DRP layout, so the reconstruction is shown with a warning.

One thing the tool deliberately does not do is recompute the new number's final digit. The DRP does not publish a check-digit algorithm for the 12-digit NIC, so inventing one would mean inventing maths, instead the documented field layout is copied exactly and the serial is carried across untouched. Everything runs as pure string and date arithmetic inside your browser: no government registry is queried, no number is uploaded, and nothing is stored. The tool reformats a number you already hold; it cannot confirm that the number was ever issued, and it is not an identity check.

Worked examples

Old → New (male)

742922757V→197429202757

  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

886734567V→198867304567

  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)

198531500388→853150388V

  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 ✓

Edge case · leap-day boundary

963660001V→199636600001

  1. Drop the V suffix → 963660001
  2. New = "19" + "96366" + "0" + "0001" = 199636600001
  3. Year 1996 · 1996 ÷ 4 = 499 exactly and it is not a century year → leap, 366 days
  4. Day-of-year field 366 ≤ 500 → male, real day 366
  5. Day 366 of a 366-day year = 31 December 1996, accepted

Edge case · 29 February with the female offset

605601234V→196056001234

  1. Drop the V suffix → 605601234
  2. New = "19" + "60560" + "0" + "1234" = 196056001234
  3. Day-of-year field 560 > 500 → female, real day 560 − 500 = 60
  4. Year 1960 is a leap year, so February has 29 days
  5. Day 60 = 31 (Jan) + 29 (Feb) → 29 February 1960
  6. Same field in 1974: 745601234V → day 60 = 1 March 1974 instead

Edge case · impossible day, rejected

743660001V→Rejected

  1. Same digits as above but the year suffix is 74 → 1974
  2. 1974 ÷ 4 = 493.5 → not a leap year, so the year has 365 days
  3. Day-of-year field 366 > 365 → no such calendar day exists
  4. The converter refuses the input instead of rounding to 1 January 1975
  5. Fix: re-check the third, fourth and fifth digits against your card

Old NIC vs new NIC at a glance

The two numbers describe the same person and the same registration, the differences are all in how the fields are written down.

FeatureOld NICNew NIC
Length10 characters12 digits
Birth year2 digits (always 19xx)4 digits, written in full
Day-of-year3 digits, +500 for female3 digits, +500 for female
SeparatorNoneA 0 before the serial
Voter flagTrailing V or XDropped, not stored
Issued to births1900s onlyAny year, including 2000+
RetiredNew issuance stopped 2016Current format

Note the difference between the number and the card. The 12-digit number is the current numbering scheme; the polycarbonate smart NIC is a separate thing, a physical card introduced by the Registration of Persons (Amendment) Act No. 8 of 2016 as a parallel valid document. Holding an old laminated card does not stop you from quoting the 12-digit form of your number on a form, and converting the number here does not change anything on your card or in any registry.

Where the 12-digit NIC is asked for

Most Sri Lankans meet this conversion for the first time when a form refuses their old number. Systems rebuilt after 2016 tend to validate the field as exactly twelve digits, so a nine-digit entry with a V is rejected outright, not because the old card is invalid, but because the input mask has no place to put the letter. The common ones:

  • IRD e-Services. TIN registration and e-filing screens key taxpayer records to the 12-digit NIC. If you are working out what you owe before filing, the Sri Lanka income tax calculator runs the current IRD brackets.
  • Bank and finance-company KYC. Account opening, loan applications and CRIB-linked checks increasingly store the 12-digit form, which is why a bank may tell you your NIC "does not match" even though you gave the number printed on your card.
  • EPF and ETF member records. Member enquiry and balance statements are indexed on the number your employer filed. The EPF and ETF calculator shows what those contributions should come to.
  • Passport, visa and police clearance applications. Online appointment and application portals ask for the current-format number; the passport fee calculator covers what each service tier costs.
  • Exam, university and scholarship portals. Department of Examinations and UGC systems, Aswesuma welfare applications and pension files all use the 12-digit field on newer forms.

In every one of these cases you are giving the same identity number in a different notation. You do not need a new card to use the 12-digit form, and no office can charge you for the conversion. It is arithmetic on digits you already have.

Common mistakes when converting by hand

Hand conversion goes wrong in a small number of predictable ways. Each of these is caught by the tool above, but they are worth knowing if you are filling a paper form:

  • Keeping the V or X. The letter is voter-register status, not an identity digit. Twelve digits means twelve digits, no letter, no spaces, no dashes.
  • Forgetting the 0 separator. Writing 19 + the nine digits gives eleven characters, and an eleven-digit NIC is always wrong. The 0 goes after the day-of-year block, in eighth position.
  • Subtracting 500 before converting. The day-of-year field is copied across exactly as printed. Removing the female offset gives a number that decodes to a male holder born on a different date.
  • Using 20 as the century. Old cards were never issued for births from 2000 onward, so a 19 prefix is right in every genuine old-to-new conversion.
  • Transposing the serial. The last four digits carry no self-check you can verify by eye, so a swapped pair produces a number that looks valid and belongs to nobody. Copy the output rather than retyping it.

If a form still rejects your converted NIC

A twelve-digit number that the tool above marked as verified can still be refused at the counter or by a web form, and the reason is almost never the conversion itself. Work through these in order before assuming the number is wrong:

  • The form wants the number without spaces. Copy from the result box rather than reading the grouped display off the screen. Some portals also silently reject a leading or trailing space pasted in from a PDF or a WhatsApp message.
  • The registry still holds your old number. Banks, the EPF and older employer filings store whichever format was current when the record was created. If a lookup fails on twelve digits, try the nine-digit form with the V or X exactly as printed on your card, the record may simply be indexed the other way.
  • The decoded date of birth does not match your birth certificate. This happens, and it is not a bug in the conversion: if the day-of-year field was keyed wrongly when your card was first issued, every conversion of it will reproduce that same wrong date. The fix is a DRP particulars amendment, not a recalculation. Check the decoded date against your birth certificate before quoting the number anywhere official.
  • The gender readout looks wrong. The +500 offset is the only gender signal in the number. A field under 500 always reads male and a field over 500 always reads female, so a mismatch points at a data-entry error on the original card rather than at the arithmetic. The NIC decoder shows the raw field so you can see exactly which digits produced the reading.
  • The form actually wants a different identifier. Several government systems ask for a TIN, an EPF member number or a passport number in a field labelled loosely. None of those can be derived from an NIC.

If the card itself is the problem, worn, lost, or carrying a name that no longer matches your other documents, the conversion will not help and you need a reissue. The NIC fee calculator lists what each DRP service tier costs and which documents the Divisional Secretariat expects with the application.

What each format is called in Sinhala and Tamil

Forms, counters and circulars rarely use the phrase “old NIC” or “new NIC”. Knowing the official wording saves a trip to the wrong queue, and it is the vocabulary you will see on DRP notices:

  • National Identity Card number, Sinhala ජාතික හැඳුනුම්පත් අංකය, Tamil தேசிய அடையாள அட்டை இலக்கம். This is the field label on most bilingual forms, and it does not tell you which format is expected, the length of the input box usually does.
  • Department for Registration of Persons, Sinhala පුද්ගලයන් ලියාපදිංචි කිරීමේ දෙපාර්තමේන්තුව, Tamil நபர்கள் பதிவு திணைக்களம். The issuing authority for both formats.
  • Smart identity card, Sinhala ස්මාර්ට් හැඳුනුම්පත. The polycarbonate card, which is a separate thing from the twelve-digit number. You can quote the twelve-digit form of your number while still holding the old laminated card.
  • Grama Niladhari certificate, Sinhala ග්‍රාම නිලධාරී සහතිකය, Tamil கிராம சேவகர் சான்றிதழ். The residence certification every NIC application starts with.

The number itself needs no translation. Digits are digits in all three languages, which is why an overseas university portal or an embassy form will accept the twelve-digit string as-is even when the card it came from is printed in Sinhala or Tamil. What does sometimes need translating is your name and the card's printed fields, and that is a sworn-translator job, not something any converter can do. If a foreign form asks for your date of birth in a specific notation alongside the number, the age calculator will turn the decoded date into exact years, months and days.

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. Fees and document lists quoted in the FAQ follow the DRP service schedule as published under Extraordinary Gazette No. 2347/14 and are tracked in the NIC fee calculator. 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.