Croatia (HR)
Croatian VAT Number Validation
Format, pattern, and ISO 7064 checksum algorithm for HR VAT numbers
Croatian VAT numbers (Osobni identifikacijski broj or OIB) consist of 11 digits and use the same ISO 7064 Mod 11-10 algorithm as Germany.
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 | HR |
| Format | 11 digits |
| Length | 11 digits |
| Example | HR12345678901 |
Regex Pattern
^HR[0-9]{11}$
Checksum Algorithm (ISO 7064 Mod 11-10)
def validate_hr_vat(number):
if number.startswith('HR'):
number = number[2:]
if len(number) != 11 or not number.isdigit():
return False
# ISO 7064 Mod 11-10 algorithm
check = 5
for digit in number:
d = int(digit)
check = ((check or 10) * 2) % 11
check = (check + d) % 10
return check == 1
Important Notes
- The OIB is also used as a personal identification number for individuals
- Croatia uses the same algorithm as Germany (DE)
Frequently Asked Questions
How do I verify a Croatian VAT number (OIB)?
Croatian VAT numbers use ISO 7064 Mod 11-10 algorithm (same as Germany). Process each digit through the algorithm - valid numbers end with check value 1. Use VatDB's API for official verification against EU and national databases.
What does a Croatian VAT number look like?
A Croatian VAT number has the format HR12345678901 - 'HR' followed by exactly 11 digits. This number is also the OIB (personal identification number).
How many digits are in a Croatian VAT number?
A Croatian VAT number contains exactly 11 digits after the HR country code. The complete number is 13 characters: HR + 11 digits.
What is a Croatian OIB number?
OIB (Osobni identifikacijski broj) is the Croatian Personal Identification Number. It's used as both a personal ID and VAT number, assigned to all Croatian citizens and registered businesses.
Where can I verify a Croatian company's VAT number?
Use VatDB's API for instant VAT validation against official EU and national databases. Get real-time verification with company information.
What's the difference between format validation and checking if a VAT number is active?
Format validation confirms structural validity only. A number that passes the checksum might belong to a deregistered business or never have been issued. VatDB's API provides live registration status.