Sri Lanka NIC Number Decoder — Old NIC to New NIC Converter
Paste any Sri Lankan National Identity Card number — old 10-character format (9 digits + V/X) or new 12-digit format — and see the date of birth, age, gender, voter status, and serial in a single field breakdown. Everything is decoded in your browser; nothing is uploaded.
How it works
A Sri Lankan NIC is not a random ID. The Department for Registration of Persons (DRP) packs the holder's year of birth, day-of-year, gender, and an issuance serial into the digits themselves, with a single trailing check digit and (on old cards) a V or X suffix indicating voter eligibility at the time of registration. Once you know which positions mean what, the entire date of birth falls out arithmetically — which is exactly what the tool above does.
Old format (pre-2016, 10 characters)
Pattern: YY DDD SSS C X where YY is the last 2 digits of birth year (always interpreted as 19YY — old NICs were issued through 2015 and the holder must be 16+, so the practical range is 1900–1999), DDD is the 3-digit day-of-year field (1–366 for Male; 501–866 for Female, i.e. the same day with +500 added), SSS is a 3-digit issuance serial, Cis a single check digit, and the final V (voter) or X (non-voter) letter records the holder's voter status at the time the card was issued.
New format (2016+, 12 digits)
Pattern: YYYY DDD SSSS C. The year is now stored in full, the serial widens from 3 to 4 digits, and the trailing voter letter is removed (voter eligibility moved to the separate Election Commission register). The gender encoding — DDD ≥ 501 means Female — is unchanged so the new NIC remains self-decoding.
Day-of-year to calendar date
After stripping the +500 offset where applicable, the day-of-year is converted to a date using standard Gregorian arithmetic. Day 1 is 1 January; day 60 is 1 March in a normal year and 29 February in a leap year; day 366 only exists in leap years. The tool flags out-of-range values (for example, day 366 in 1990) as invalid rather than silently wrapping into the next year.
Age
Age is computed against the reference date you supply (default: today) as a whole years / months / days difference, with proper month-overflow borrowing — the same calendar-arithmetic any payroll or KYC system would use. Set the reference date to a future date to project the holder's age on that day.
What we do not do
DRP has never published the check-digit algorithm, so this tool — like every other public NIC tool — validates structure only. A NIC that passes here is well-formed; it is not necessarily issued. For authoritative verification, contact DRP. The tool also does not look up any government database, store input, or compute a checksum.
Worked examples
Frequently asked questions
Sources & references
- Department for Registration of Persons — official site (NIC issuing authority)
- DRP — services and NIC application information (English)
- ICTA Sri Lanka — e-NIC programme references
Decoding rules were last cross-checked against the DRP-published NIC format on 2026-05-10. The page is reviewed whenever DRP announces a format change.
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.