Denmark CPR Number Validator and Decoder
Paste Danish CPR numbers to decode the date of birth, century and sex, and see whether each number satisfies the old modulus 11 check.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste the numbers
One CPR number per line, with or without the dash.
- 2Read the date
Valid numbers show the full date of birth with the century.
- 3Check the sex
The tool reads the last digit.
- 4Look at mod 11
See whether the old check holds, as extra information only.
- 5Export
Download the results as CSV.
About this tool
The Danish CPR number (personnummer) identifies every person registered in Denmark. It has ten digits, written DDMMYY-SSSS: the date of birth and a four-digit serial. The seventh digit, together with the year, shows the century, and the last digit shows sex: odd for men, even for women. Until 2007, all numbers satisfied a modulus 11 check, but because numbers for some dates ran out, numbers issued since then do not always meet it. Validators that reject numbers failing the old check are therefore wrong. This tool checks the date and decodes the number, and tells you whether the old check holds as information only.
Who this is for
Employers, schools, healthcare and software developers handling Danish CPR numbers.
The structure
- DDMMYY: date of birth. - S1: the seventh digit, used with the year to give the century. - S2-S3: serial. - S4: the last digit, odd for men and even for women.
The century rule
- Seventh digit 0-3: born 1900-1999. - 4 or 9: born 2000-2036 if the year is 00-36, otherwise 1937-1999. - 5-8: born 2000-2057 if the year is 00-57, otherwise 1858-1899.
The mod 11 check
The old rule multiplied the digits by 4, 3, 2, 7, 6, 5, 4, 3, 2, 1 and required the sum to be divisible by 11. Since 2007, CPR numbers without this property are issued, so the check cannot be used to reject numbers. The tool shows whether it holds, which can still help detect typos in older numbers.
Uses
The CPR number is used for tax, health insurance, banking with MitID, schools and almost all public services. It is personal data and its use is regulated by the Data Protection Act.
Batch use
Paste one number per line. Each line shows the date of birth, sex and the mod 11 status, or the reason for failure. Export as CSV.
Worked example
070761-4285 decodes to 7 July 1961: the seventh digit 4 with year 61 means the 1900s, and the last digit 5 is odd, so male. It also satisfies the old mod 11 check.
Foreigners and newcomers
People moving to Denmark get a CPR number when they register their address with the municipality, usually at the International Citizen Service. Without it, they cannot open a bank account, see a doctor or get MitID. Foreign workers on short assignments may instead get a tax number from the Danish Tax Agency.
Typing errors
Because the mod 11 check no longer applies to all numbers, a typo in the serial part cannot always be detected. The date check catches errors in the first six digits, and comparing with the person's date of birth helps for the rest.
Limits
A plausible number does not prove that it was issued. The CPR register is the authority.
Worked example
070761-4285 belongs to a man born on 7 July 1961 and satisfies the old modulus 11 check.
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: CPR-kontoret: 10-digit personal number DDMMYY-SSSS, century from the seventh digit, sex from the last digit; the mod 11 check is not used for all numbers since 2007
Frequently asked questions
How many digits does a CPR number have?
Ten digits, written DDMMYY-SSSS.
Does every CPR number pass the modulus 11 check?
No. Since 2007, numbers that fail it are issued, so it cannot be used to reject numbers.
How is the century determined?
From the seventh digit together with the two-digit year.
How is sex shown?
The last digit is odd for men and even for women.
Can the tool confirm the person?
No. It checks the date and decodes the number only.
Are the numbers uploaded?
No. They are checked in your browser.
