Romania CNP Personal Numeric Code Validator
Paste Romanian personal numeric codes to check the check digit and decode the sex, date of birth and county code of each valid CNP.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste the CNPs
One per line.
- 2Read the results
Each CNP is shown as accepted or rejected, with the reason.
- 3Check the details
Read sex, date of birth, status and county.
- 4Fix errors
Compare a rejected CNP with the expected check digit to spot the mistyped digit.
- 5Export
Download the results as CSV.
About this tool
The CNP (Cod Numeric Personal) is the 13-digit personal identifier on every Romanian identity card. It is used for tax, health insurance, employment, banking and almost every public service. The first digit combines sex and century, the next six digits are the date of birth, the next two are the county where the number was issued, three digits are a serial number, and the last is a check digit calculated with the fixed key 279146358279. Foreign residents also get a CNP, with a first digit of 7, 8 or 9. Because so much information is encoded, typing errors are often obvious. This validator checks lists of CNPs, decodes them and shows the expected check digit for errors.
Who this is for
HR and payroll staff in Romania, banks and insurers, schools, and developers building forms.
The structure
- S (1 digit): 1 or 2 for people born 1900-1999 (male, female), 3 or 4 for 1800-1899, 5 or 6 for 2000-2099, 7 or 8 for foreign residents, 9 for foreigners. - YYMMDD (6 digits): date of birth. - JJ (2 digits): county code, from 01 (Alba) to 52 (Giurgiu), with 40 to 46 and 51-52 for Bucharest sectors and Călărași and Giurgiu, and 70 used in some newer numbers. - NNN (3 digits): serial number. - C (1 digit): check digit.
The check digit
Multiply the first 12 digits by 2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7 and 9, add the products and divide by 11. The remainder is the check digit; if it is 10, the check digit is 1. For 180010122114, the remainder is 4, so 1800101221144 is valid: a man born on 1 January 1980 with a CNP issued in county 22.
Privacy
The CNP is personal data and reveals date of birth and sex. Under Romanian law and the GDPR, its processing must be justified and protected. Checking here keeps the list on your own computer.
Batch use
Paste one CNP per line. Each line shows valid or invalid, the reason and, for valid numbers, sex, date of birth, citizen or foreign status and county code. Export the table as CSV.
Common errors
A swapped pair of digits in the date, a missing digit or the wrong first digit for the century are the most common mistakes. The date check and the check digit catch them.
Where the CNP is required
Employers declare staff in the REVISAL register with the CNP, ANAF uses it as the tax identification number of individuals, and the health insurance house links medical services to it. Banks require it for accounts and loans, and schools use it to register pupils. A wrong CNP on any of these records leads to rejected declarations or lost rights, so checking it at entry saves time later.
Limits
A valid format does not prove that a CNP was issued or belongs to a person. Only the population register confirms that.
Worked example
1800101221144 is valid: a man born on 1 January 1980, county code 22, with check digit 4.
Quick facts
- Category: Legal & Government
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Romanian personal numeric code (CNP) structure: sex and century digit, date of birth, county code, serial and check digit with the key 279146358279
Frequently asked questions
How many digits does a CNP have?
Thirteen digits.
What does the first digit mean?
It gives sex and century: 1/2 for 1900s, 5/6 for 2000s, 7-9 for foreigners.
How is the check digit calculated?
Weights 279146358279 on the first 12 digits, sum modulo 11, with 10 becoming 1.
What are the county digits?
Digits 8 and 9 give the county code where the CNP was issued.
Do foreigners have a CNP?
Yes, foreign residents receive one starting with 7, 8 or 9.
Are the numbers uploaded?
No. They are checked in your browser.
