Croatia OIB Validator and Test Number Generator
Paste Croatian OIB numbers to check the ISO 7064 check digit, see the HR VAT number for each valid OIB and create valid test numbers for software.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste the OIBs
One per line, with or without HR.
- 2Run the ISO 7064 check
Every OIB is marked as accepted or rejected.
- 3Copy the VAT form
Valid OIBs show HR plus the number.
- 4Generate test data
Use the sample button for software tests.
- 5Export
Download the results as CSV.
About this tool
Croatia's personal identification number, the OIB (osobni identifikacijski broj), is used by both people and companies. It has eleven digits: ten random digits and a check digit calculated with the ISO 7064 MOD 11,10 method, the same family of algorithms used in IBANs and other international standards. Unlike the old JMBG, the OIB contains no information about the person. Companies use their OIB on invoices, and the Croatian VAT number is HR followed by the OIB. With fiscalisation and the move to e-invoicing in Croatia, correct OIBs matter on every receipt and invoice. This validator checks lists and creates test numbers.
Who this is for
Accountants and invoicing staff in Croatia, payroll, banks, e-shops and developers building fiscalised cash register and e-invoice software.
The structure
- Ten random digits. - One check digit. The OIB is assigned by the Tax Administration and never changes. It replaced the JMBG in 2009 for most purposes.
The ISO 7064 MOD 11,10 check
1. Start with 10. 2. For each of the first ten digits: add the digit, take the result modulo 10 (using 10 instead of 0), double it and take modulo 11. 3. The check digit is 11 minus the final value; if that is 10, the check digit is 0.
For 6943515153, the check digit is 0, giving the valid OIB 69435151530.
VAT number
A VAT-registered business uses HR plus its OIB as the VAT identification number for EU trade. Check it in VIES before reverse charge.
Fiscalisation and e-invoicing
Croatian cash registers must report every receipt to the Tax Administration, including the seller's OIB, and from 2026 e-invoicing between businesses is mandatory in stages (Fiskalizacija 2.0). Invoices need the buyer's OIB, so a wrong number causes rejected or misdirected documents.
Test numbers
Developers can use the generator to create numbers with valid check digits for test systems. They are random and may coincide with real OIBs, so never use them in real records or invoices.
Batch use
Paste one OIB per line, with or without HR. Each line shows whether it is valid, the expected check digit for failures and the HR form. Export as CSV.
Privacy
The OIB of a person is personal data. Even though it contains no birth date, it links many records and should be protected.
Worked example
69435151530 passes the ISO 7064 check, so its VAT form is HR69435151530. 69435151531 fails because the check digit should be 0.
Where to find an OIB
Individuals find their OIB on the identity card and on tax documents; companies print it on invoices and letterheads.
Limits
A valid check digit does not prove that an OIB was issued or who holds it. The Tax Administration can confirm OIBs.
Worked example
69435151530 is valid under ISO 7064 MOD 11,10; its VAT form is HR69435151530.
Quick facts
- Category: Legal & Government
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Porezna uprava (Croatian Tax Administration): personal identification number OIB, 11 digits with an ISO 7064 MOD 11,10 check digit; VAT number HR + OIB
Frequently asked questions
What is an OIB?
Croatia's 11-digit personal identification number for people and companies.
Does the OIB contain my birth date?
No. Its first ten digits are random; only the last digit is a check digit.
How is the check digit calculated?
With the ISO 7064 MOD 11,10 method over the first ten digits.
What is the Croatian VAT number?
HR followed by the company's OIB.
Can I generate OIBs for testing?
Yes, the tool creates numbers with valid check digits for test systems only.
Are the numbers uploaded?
No. They are checked in your browser.
