OIB Generator (Croatia Tax ID / Personal ID)
Generate and format valid Croatian OIB numbers for software development and QA testing.
Waiting for generation...
About Croatian OIB (Osobni Identifikacijski Broj)
The OIB (Osobni Identifikacijski Broj) is the unified permanent personal identification and tax number for individuals and corporations in Croatia, managed by the Tax Administration (Porezna uprava) of the Ministry of Finance.
Composed of exactly 11 decimal digits, where the first 10 digits form the base sequence and the 11th digit is a checksum strictly calculated according to ISO 7064 Module 11, 10.
Check Digit Calculation Algorithm (ISO 7064 Mod 11, 10)
- Initialize accumulator variable a = 10.
- For each of the first 10 digits d[i]: calculate a = (a + d[i]) % 10. If a equals 0, reset a = 10. Then calculate a = (a × 2) % 11.
- Compute check value: Control = 11 - a.
- If Control is 10, check digit is 0; otherwise, check digit equals Control.