DevTools Logo

Denmark CVR Number Generator

Denmark CVR Number Generator

Generate 8-digit Danish CVR company numbers with the mod-11 check — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates 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).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Generate a CVR number

    Input
    DK CVR · Generate
    Output
    13585628

    Eight digits whose weighted total is divisible by 11.

    Validate a DK VAT form

    Input
    DK13585628
    Output
    Valid — 13585628

    The DK prefix is stripped, then the same mod-11 check runs on the eight digits.

    Reject a failing check

    Input
    13585627
    Output
    Invalid — check digit is 7 but the first 7 digits require 8

    The validator recomputes the final digit and reports both values.

    About this tool

    The Denmark CVR Number Generator produces one 8-digit CVR number, the company identifier in Det Centrale Virksomhedsregister. Numbers do not start with 0, and the weighted total must be divisible by 11 using the weights 2, 7, 6, 5, 4, 3, 2 and 1.

    The Danish VAT number is the same eight digits with a DK prefix, which validation strips before running the mod-11 test. A check value of 10 means the first seven digits cannot form a valid number, so the generator skips it and the validator reports it rather than a digit.

    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 registered company. Everything runs locally in your browser.

    What this tool does not do

    • Validation cannot confirm registration, ownership or industry.
    • A check value of 10 makes some seven-digit bodies unusable, which slightly narrows the generated set.
    • The tool covers the CVR number and its DK VAT form, not the separate production-unit numbers.
    • A generated value can coincide with a real company.

    How to use this tool

    1. Open the CVR generator

      The tool is pinned to the 8-digit CVR layout, so there is no option to choose.

    2. Generate a value

      Click Generate to create one number with a non-zero first digit that passes the weighted mod-11 test.

    3. Copy or validate

      Copy the number to a vendor fixture or download it as a .txt file, or switch to Validate for CVR and DK VAT forms.

    Use cases

    Vendor onboarding fixtures

    Fill Danish supplier records with a CVR number that passes the mod-11 check.

    VAT field normalization

    Confirm that your form strips the DK prefix before storing or comparing the number.

    Negative-path tests

    Use a failing check digit to cover the rejection branch and its message.

    CVR rules

    PartRule
    LengthExactly 8 digits
    First digitNever 0
    CheckWeighted total divisible by 11
    Weights2, 7, 6, 5, 4, 3, 2, 1
    VAT formDK prefix, stripped before the check

    A check value of 10 means the first seven digits can never be valid.

    Common mistakes

    Mistake:Storing the DK prefix with the number

    Fix:The CVR number is the eight digits; DK is VAT presentation only.

    Mistake:Allowing a leading zero

    Fix:CVR numbers never start with 0, and the validator enforces it.

    Mistake:Assuming a passing CVR proves the company is active

    Fix:The check proves the digits are consistent, not the registration status.

    Frequently asked questions

    Are these real Danish CVR numbers?

    No. They are synthetic fixtures 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.

    How is the CVR check calculated?

    The eight digits are weighted by 2, 7, 6, 5, 4, 3, 2 and 1, and the total must be divisible by 11.

    Is the DK prefix part of the CVR number?

    No. The CVR number is the eight digits; DK is the VAT presentation and is stripped before the check.

    Can a CVR number start with 0?

    No. The first digit is never 0, and the validator rejects a value that begins with one.

    Does a valid CVR prove the company is active?

    No. The check proves the digits are consistent, not the registration status or ownership.

    References & standards