DevTools Logo

Sweden Organisationsnummer Generator

Sweden Organisationsnummer Generator

Generate 10-digit Swedish organisation numbers with the Luhn check digit — 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 an organisation number

    Input
    Organisationsnummer · Generate
    Output
    556036-0793

    The third digit 6 marks an organisation and the final 3 completes the Luhn check.

    Validate a pasted value

    Input
    556036-0793
    Output
    Valid — Luhn check digit 3

    The validator strips the hyphen and recomputes Luhn over the ten digits.

    Reject a wrong check digit

    Input
    556036-0794
    Output
    Invalid — check digit is 4 but the first 9 digits require 3

    The failure is reported as a checksum error rather than a format error.

    About this tool

    The Sweden Organisationsnummer Generator produces one 10-digit organisation number in the NNNNNN-NNNN layout. The third digit is always at least 2, the rule that keeps an organisation number from being read as a personnummer, and the tenth digit is a Luhn check digit.

    Swedish VAT numbers are built from the same digits: SE, the ten-digit organisation number and the suffix 01. Generation randomizes the allowed digits and derives the Luhn digit, while validation checks the third digit before the checksum.

    These are synthetic values for QA and development, never for real applications, KYC checks, tax filings, identity documents or impersonation. A random value can coincide with a real, issued number, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.

    What this tool does not do

    • Generates organisation numbers only; personnummer has its own tool.
    • Validation confirms structure and Luhn, not registration status.
    • A random value can match a real company's organisation number.
    • The VAT form is described but only the organisation number is validated.

    How to use this tool

    1. Choose the organisation option

      The tool is pinned to the Swedish organisationsnummer, which uses 10 digits with a Luhn check digit.

    2. Generate a value

      Click Generate to create one NNNNNN-NNNN value whose third digit is 2 or higher.

    3. Validate or copy

      Switch to Validate to check a pasted number, or copy the result and download it as a .txt file.

    Use cases

    Company registration fixtures

    Seed Swedish company records with an organisation number that passes the third-digit and Luhn checks.

    Invoice and VAT tests

    Build the matching SE…01 VAT form from a generated organisation number for invoice fixtures.

    Third-digit rule tests

    Pair a valid orgnr with a value whose third digit is below 2 to cover the personnummer rejection branch.

    Organisationsnummer rules

    PartRule
    LayoutNNNNNN-NNNN
    Third digitAt least 2; lower values belong to personnummer
    Check digitLuhn over all ten digits
    VAT numberSE + organisation number + 01
    ValidationChecks the third digit, then the Luhn digit

    556036-0793 is the layout example used by the tool and its tests.

    Common mistakes

    Mistake:Confusing it with a personnummer

    Fix:The third digit of an organisation number is at least 2; personnummer serials can start lower.

    Mistake:Appending 01 without SE

    Fix:The VAT form is SE plus the ten digits plus 01.

    Mistake:Treating the VAT suffix as part of the number

    Fix:The number itself is ten digits; SE and 01 belong to the VAT presentation.

    Frequently asked questions

    Are these real Swedish organisation numbers?

    No. They are synthetic values for QA and development and cannot be used for real company registrations, invoices, tax filings, or KYC checks; DevTools accepts no liability for how they are used.

    How is an organisation number different from a personnummer?

    Both are ten digits with a Luhn check, but the third digit of an organisation number is at least 2, which keeps it from being read as a personal identity number.

    How do I build the Swedish VAT number?

    Prefix the ten-digit organisation number with SE and append 01. The tool validates the organisation number itself; the SE and 01 parts are presentation for VAT exchanges.

    Can a generated number match a real company?

    It can. The Luhn check only proves the number is well formed, so a random value may coincide with a registered company. Use generated values in test data only.

    Why does the third digit have to be at least 2?

    Values below 2 are reserved for personal identity numbers, so the rule keeps organisation and person numbers distinguishable. The validator checks it before the Luhn digit.

    References & standards