Denmark CPR Number Generator
Generate 10-digit Danish CPR numbers with a real birth date and century digit — synthetic test data only
For Development & Testing Purposes Only - Synthetic Mock Data
Settings
1 valueGenerates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.
Generated value
No value yet
Set options, then press Generate.
Generated values are valid in shape but randomized (Test Data).
Examples
Generate a CPR number
DK CPR · Generate211062-5629A real date, a seventh digit that fixes the century and a final digit that fits the parity rule.
Reject day 51
511062-5629Invalid — 511062 is not a real DDMMYY dateThe date check runs before anything else and names the century it derived.
Reject a future birth year
211030-9000Invalid — the 7th digit puts the birth year at 2030The century table can place a year ahead of today, and the validator refuses it.
About this tool
The Denmark CPR Number Generator produces one 10-digit CPR number in DDMMYY-SSSS form, the personal identifier issued through Det Centrale Personregister. The first six digits are the birth date, the next three are serial, and the tenth is a check digit.
The seventh digit, together with the two-digit year, fixes the century using the CPR-kontoret table, and the last digit is even for women and odd for men. Denmark dropped the modulus-11 check in 2007, so validation checks the date and the century rather than a checksum; generated values still pass the old modulus-11 test so they stay compatible with systems that never removed it.
These are synthetic values for QA and development: never use them on real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how generated data is used. A random value can coincidentally match a real CPR number. Everything runs locally in your browser.
What this tool does not do
- There is no live checksum, so a mistyped digit can still form a plausible number.
- Generated birth years stay between 1940 and 2005, so other cohorts need manual samples.
- Validation cannot confirm assignment or that the number belongs to a person.
- A generated value can coincide with a real CPR number.
How to use this tool
Open the CPR generator
The tool is pinned to the 10-digit CPR layout, so there is no option to choose.
Generate a value
Click Generate to create one number with a real date, a century that matches the seventh digit and a gender marker.
Copy or validate
Copy the number to a payroll fixture or download it as a .txt file, or switch to Validate to check a pasted value.
Use cases
Payroll fixtures
Seed Danish employee records with a CPR number that passes the date and century rules.
Gender-field mapping
Test forms that derive gender from the last digit instead of asking for it.
Century reasoning
Confirm that your code uses the seventh digit rather than assuming 1900 or 2000.
CPR layout and checks
| Part | Rule |
|---|---|
| DDMMYY | Birth date, checked against a real calendar date |
| Seventh digit | With the year, fixes the century (CPR-kontoret table) |
| Last digit | Even = female, odd = male |
| Modulus 11 | Dropped in 2007; generated values still pass it |
| Validation | Checks the date and the century, not a checksum |
A day of 51 fails because it is not a real DDMMYY date for the century the seventh digit implies.
Common mistakes
Mistake:Expecting a modulus-11 rejection
Fix:Denmark dropped the checksum in 2007, so a valid CPR number can fail mod 11.
Mistake:Reading the seventh digit as serial only
Fix:It also fixes the century together with the two-digit year.
Mistake:Treating a CPR number as a tax ID
Fix:The CPR number identifies a person; Danish tax and VAT identifiers are separate.
Frequently asked questions
Are these real Danish CPR numbers?
No. They are synthetic values for QA and development, never for real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how they are used.
Does a CPR number still use modulus 11?
No. Denmark dropped the modulus-11 check in 2007, so validation checks the birth date and the century instead.
Why do generated values still pass modulus 11?
They are built to satisfy the old test so they stay compatible with systems that never removed it.
How does the seventh digit work?
Together with the two-digit year it fixes the century using the CPR-kontoret table, which the validator applies to every value.
Which digit marks gender?
The tenth and last digit is even for women and odd for men.
References & standards
Related tools
Denmark CVR Number Generator
Generate synthetic 8-digit Danish CVR company numbers with a mod-11 check, and validate pasted CVR and DK VAT numbers.
SEPA IBAN Generator
Generate SEPA-eligible IBAN and BIC pairs with ISO 7064 Mod 97-10 checks.
VAT Number Generator
Generate VAT numbers for EU, UK, Switzerland, Norway and global tax integration testing.
National Identity Generator
Generate and validate national ID numbers for testing (TR, US, DE, UK, SA, AE, QA, KW, CA, ES, BR, FR, IT, NL, SE, NO, EG, SG)
Tax ID Validator
Auto-detect and validate VAT, EIN, TIN and GST identifiers with batch checksum reporting.