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 organisationsnummer (company registration number) 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 is 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 org number + 01) |
| Length | 12 digits |
| Example | SE123456789001 |
Regex Pattern
^SE[0-9]{10}01$
Structure
- Digits 1-10: Organisationsnummer (company ID with Luhn check)
- 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 (the organisationsnummer). 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 organisationsnummer, 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: 10-digit organisationsnummer + '01'. Complete length is 14 characters.
What is a Swedish organisationsnummer?
Organisationsnummer is the 10-digit Swedish company registration number assigned by Bolagsverket. The VAT number is this number with '01' appended.
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 numbers derived from the organisationsnummer.
Where can I check a Swedish company's VAT number?
Check VAT numbers using VatDB's API for real-time validation against official EU and national databases, with company details included.
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.