International · Validation

Romanian CNP validator.

Check a 13-digit Romanian Cod Numeric Personal (CNP): the control digit, the encoded date of birth, the sex/century digit and the county code. Format and checksum only.

How it works: multiply the first 12 digits by the constant 2 7 9 1 4 6 3 5 8 2 7 9, add the products and divide by 11. The remainder is the 13th digit; a remainder of 10 becomes 1.

Sources: C.N.P. specification (vimishor/cnp-spec), Romanian Wikipedia, python-stdnumVerified 29 September 2026

Advertisement

Inputs

Enter all 13 digits. Spaces and hyphens are ignored.

Result

Enter a CNP and press Check.

How the CNP is built

A CNP is 13 digits: S AA LL ZZ JJ NNN C. It is assigned to people born in Romania and to Romanian residents.

The seven components (C.N.P. specification)
PartMeaning
SSex and century: 1 male / 2 female born 1900–1999; 3 / 4 born 1800–1899; 5 / 6 born 2000–2099; 7 / 8 male / female resident (century not encoded)
AA LL ZZYear (last two digits), month and day of birth
JJCounty code (01–52 as published, 41–46 are Bucharest districts); 70 is the unique code used by the newer integrated system
NNNSequence number 001–999 for people of the same sex, place and date
CControl digit

Control digit: weights 2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9 (the constant 279146358279) on the first 12 digits; sum the products; the remainder mod 11 is the control digit, except that a remainder of 10 gives 1. Worked example from the python-stdnum test suite: 1630615123457 sums to a remainder of 7, and decodes to a man born 15 June 1963 with county code 12 (Cluj).

Other checks: the date must be a real calendar date (leap days follow the Gregorian rule), the county code must be in the published table, and Bucharest districts 7 and 8 (codes 47 and 48) are rejected for birth dates after 19 December 1979, when the specification says they were abolished. First digit 9 and county codes 80–83 appear in python-stdnum only, not in the specification, so this tool rejects them.

Format and checksum only — not a registry lookup

A pass means the number is well-formed and internally consistent. It cannot confirm the CNP was ever issued or that it belongs to anyone; only the Romanian authorities can do that. The specification lists the issuers as DEPABD for citizens and the General Inspectorate for Immigration for residents.

Sources: vimishor/cnp-spec, spec.md; ro.wikipedia.org, Cod numeric personal; python-stdnum, stdnum/ro/cnp.py. The constant is identical in all three.

Worked example: checking 1630615123457

Take the python-stdnum test number 1630615123457. The first 12 digits are 1 6 3 0 6 1 5 1 2 3 4 5, multiplied by the weights 2 7 9 1 4 6 3 5 8 2 7 9:

Weighted sum for 1630615123457
Digit163061512345
Weight279146358279
Product2422702461551662845

The products add up to 216. 216 divided by 11 is 19 remainder 7, so the control digit must be 7, and the number ends in 7. Reading the rest: first digit 1 is a man born 1900 to 1999, 63 06 15 is 15 June 1963, and county code 12 is Cluj. Change the last digit to 8 and the checker reports the expected control digit 7 instead.

Sources and as-of date

Weights and rules: vimishor/cnp-spec, Romanian Wikipedia, Cod numeric personal and python-stdnum ro/cnp.py. Verified 29 September 2026; the example above was re-run through this tool on 26 October 2026.

Common mix-ups

  1. Romanian Ministry of Internal Affairs: how personal numeric codes (CNP) are generated

Checked against these sources on .

Frequently asked questions

What does the CNP control digit prove?

Only that the 13 digits are internally consistent with the published 279146358279 rule. It does not show the CNP was issued or belongs to a real person.

Why does a CNP starting with 5 or 6 show a 2000s birth date?

The first digit encodes sex and century: 1 or 2 for 1900 to 1999, 3 or 4 for 1800 to 1899, and 5 or 6 for 2000 to 2099. Digits 7 and 8 are used for residents and do not encode a century.

Is the number I type sent anywhere?

No. The check runs in your browser and nothing is transmitted, stored or logged.

Checksum only — not a registry lookup

A CNP is personal data. This tool runs entirely in your browser: nothing you type is transmitted, stored or logged, and it does not query any Romanian system. Do not paste other people's CNPs unless you have a legitimate reason to hold them.

Advertisement
Advertisement