Sweden (SE)

Swedish VAT Number Validation

Format, pattern, and Luhn checksum algorithm for SE VAT numbers

Swedish VAT numbers (Momsregistreringsnummer) consist of 12 digits: a 10-digit identifier (organisation number for legal entities or personal identity number for sole traders) followed by '01'.

Format vs. Active Validation

This checks format only, not if a VAT number is really registered. Use VatDB's API to verify if a number is really registered and active. VatDB checks official EU and national datasources.

Format Overview

Property Value
Country Code SE
Format 12 digits (10-digit organisation/personal number + 01)
Length 12 digits
Examples SE556703748501 SE556074755101 SE556012579001

Regex Pattern

^SE[0-9]{10}01$

Structure

  • Digits 1-10: Organisation number or personal identity number (Luhn-checked)
  • Digits 11-12: Always "01"

Checksum Algorithm (Luhn on first 10 digits)

def validate_se_vat(number):
    if number.startswith('SE'):
        number = number[2:]

    if len(number) != 12 or not number.isdigit():
        return False

    # Last two digits must be 01
    if number[10:] != '01':
        return False

    # Luhn check on first 10 digits
    org_number = number[:10]
    total = 0
    for i, digit in enumerate(reversed(org_number)):
        d = int(digit)
        if i % 2 == 1:
            d = d * 2
            if d > 9:
                d -= 9
        total += d

    return total % 10 == 0

Frequently Asked Questions

How do I verify a Swedish VAT number?

Swedish VAT numbers use Luhn algorithm on the first 10 digits (organisation number or personal identity number). The last 2 digits are always '01'. Use VatDB's API for official verification against EU and national databases.

What does a Swedish VAT number look like?

A Swedish VAT number has the format SE123456789001 - 'SE' followed by 12 digits. The first 10 are the organisation/personal identifier, the last 2 are always '01'.

How many digits are in a Swedish VAT number?

A Swedish VAT number contains exactly 12 digits after the SE country code: a 10-digit organisation/personal identifier + '01'. Complete length is 14 characters.

What is in the first 10 digits of a Swedish VAT number?

The first 10 digits are a Swedish identifier with a Luhn checksum: usually an organisationsnummer for legal entities, or a personal identity number for sole traders. The VAT number appends '01'.

Why do Swedish VAT numbers always end in 01?

The '01' suffix identifies this as the primary VAT registration. It distinguishes the VAT number from other forms built from the same 10-digit identifier.

Where can I check a Swedish VAT number?

Check VAT numbers using VatDB's API for real-time validation against official EU and national databases, with trader details included when available.

What's the difference between format validation and checking if a VAT number is active?

Format validation confirms correct structure, but companies can be dissolved or lose VAT registration. A valid-looking number isn't proof of active status. VatDB confirms current registration.

Which real Swedish VAT numbers can I use to test validation?

Three live Swedish (SE) VAT numbers to experiment with: SE556703748501, SE556074755101, SE556012579001.

Validate Swedish VAT Numbers Instantly

Use our API for real-time SE VAT number validation

Try Free