The Romanian CNP: Structure, Check Digit and Safe Handling
How the Romanian personal numeric code is built, how its check digit with the key 279146358279 works, what the digits reveal and how to validate lists.

The Romanian CNP: Structure, Check Digit and Safe Handling
Every Romanian identity card shows a 13-digit number, the CNP. It accompanies a person through tax, health, banking, employment and school records. Because the number encodes the date of birth and sex, and ends in a check digit, it can be validated quickly. The Romania CNP Validator does this privately for whole lists; this guide explains the number.
What the CNP is
The Cod Numeric Personal is assigned at birth or registration and never changes. It is the tax identification number of individuals for ANAF, the key in the health insurance system and the identifier in employment records.
The structure
A CNP has the form S YY MM DD JJ NNN C:
- S: sex and century of birth.
- 1 male, 2 female: born 1900-1999.
- 3 male, 4 female: born 1800-1899.
- 5 male, 6 female: born 2000-2099.
- 7 male, 8 female: foreign residents.
- 9: foreign persons.
- YYMMDD: date of birth.
- JJ: county code where the number was issued, from 01 Alba to 52 Giurgiu, with 40 for Bucharest and 41 to 46 for its six sectors.
- NNN: a serial number distinguishing people born on the same day in the same county.
- C: check digit.
The check digit
- Multiply the first 12 digits by 2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9.
- Add the products.
- Divide by 11 and take the remainder.
- If the remainder is 10, the check digit is 1; otherwise it is the remainder.
For 180010122114, the products add up to a number whose remainder is 4, so 1800101221144 is a valid CNP: a man born on 1 January 1980, county code 22.
Where the CNP is used
- Employment: the REVISAL register of employees and the monthly social contributions declaration.
- Tax: the CNP is the fiscal code of individuals in ANAF systems.
- Health: insurance status and medical records.
- Banking: account opening and credit bureau checks.
- Education: school and university registration.
Errors in any of these can mean missing contributions, rejected declarations or blocked services.
Foreigners
Foreign citizens with a residence permit receive a CNP starting with 7 or 8 from the Immigration Inspectorate. Foreigners without residence may get a fiscal identification number (NIF) from ANAF instead, which follows a different system.
Privacy and the law
Since the CNP reveals date of birth and sex, it is personal data. Romanian law, implementing the GDPR, limits its processing to cases with a legal basis and requires appropriate safeguards. Organisations should not ask for it unless needed, should restrict access to lists and should never publish them. The validator here runs entirely in your browser, so lists are not uploaded.
Common errors
- Swapped month and day digits.
- A missing digit, often in the serial part.
- The wrong century digit, for example 1 instead of 5 for someone born after 2000.
- Copying the series and number of the identity card instead of the CNP.
The date check and the check digit catch almost all of them.
Using the validator
Paste CNPs one per line. Each line shows whether it is valid, the reason for any failure and, for valid numbers, the sex, date of birth, citizen or foreign status and county code. Export the results as CSV.
Test numbers
Developers building forms can create test numbers by computing the check digit for invented dates and serials. Never use them in real records, since a random valid CNP may belong to someone.
Limits
A valid format does not prove that the CNP was issued or belongs to the person presenting it. The population register is the authority. This guide is general information.



