Croatian OIB (Personal Identification Number) generator

The OIB (Personal Identification Number) is a unique numerical identifier for legal and natural persons in the Republic of Croatia. The OIB consists of 11 digits, where the first 10 digits represent the identification number assigned during the issuance of the OIB, and the 11th digit is a control digit calculated according to the “Module 11,10” ISO 7064 standard.

When generating the OIB, the first 10 digits are assigned randomly, while the 11th digit is calculated to ensure the validity of the number. This control digit helps prevent input errors or attempts to manipulate the OIB.

The introduction of the OIB aims to facilitate simpler and more precise identification of individuals and legal entities in various administrative, legal, and business contexts.

Croatian OIB generator

If you need Croatian OIB generator for your app testing project you can go to page below:

https://oib.itcentrala.com/oib-generator/

Access to personal identification number data

If you wish to inquire or have a need to access data related to the Personal Identification Number (OIB) in the Republic of Croatia, it is important to note that the OIB is a sensitive personal data, and access to it is regulated by data protection legislation.

https://oib.oib.hr/SaznajOibWeb/

Calculating the Personal Identification Number (OIB)

The first 10 digits of the Personal Identification Number (OIB) are assigned randomly or in a specific manner to ensure uniqueness.

Example: 1234567890

The control digit is calculated using the ‘Module 11,10’ ISO 7064 algorithm based on the first 10 digits of the OIB. This is a step for validating the correctness of the OIB.

Calculation example: (1×10) + (2×9) + (3×8) + (4×7) + (5×6) + (6×5) + (7×4) + (8×3) + (9×2) + (0x7) = 220

Summing all the results: 2 + 2 + 0 = 4

Checking modulo 11: 4 % 11 = 4

The final OIB consists of the first 10 digits and the calculated control digit, but the control digit is not added as a separate character or a distinct block at the end of the first 10 digits. This means that the control digit is taken into account during the validation of the OIB, but it is not physically added to the end of the number.

So, the final OIB for the example 1234567890 with the control digit 4 is 12345678904. It is correct to say that the control digit is computed based on the first 10 digits of the OIB and is used as an integral part of the validation algorithm. The control digit is not physically appended to the end of the OIB as a separate character.

When we say that the control digit is an integral part of the validation, we mean that its value is calculated to ensure the validity of the OIB according to the prescribed algorithm. The validation process involves computing the control digit based on the first 10 digits and comparing the result with the 11th digit.

Therefore, even though in the examples we depict the control digit at the end of the OIB, it is crucial to understand that this is the result of the validation process and not the addition of a new digit at the end of the number. The OIB, as a numerical identifier, consists of the first 10 digits representing the identification number, while the 11th digit (control digit) is calculated for validation purposes.

Another example of calculating the OIB control digit

We will calculate the control digit for the OIB example 4634853427 using the “Module 11,10” ISO 7064 algorithm.

Multiply each digit by the corresponding factor and sum the results: (4×10)+(6×9)+(3×8)+(4×7)+(8×6)+(5×5)+(3×4)+(4×3)+(2×2)+(7×1)=422

Sum all the results: 4+2+2=8

Check modulo 11: 8 mod  11=

Therefore, the control digit for the OIB 4634853427 is 8.

The final OIB is: 46348534278

This is the calculation process used to determine the control digit of the OIB.

Izračunavanje OIB-a

  1. Prvih 10 znamenaka OIB-a dodjeljuje se slučajnim odabirom ili na određeni način koji osigurava jedinstvenost.

Primjer: 1234567890

  1. Kontrolna znamenka izračunava se algoritmom “Module 11,10” ISO 7064 na temelju prvih 10 znamenaka OIB-a. To je korak za provjeru valjanosti OIB-a.

Primjer izračuna: (1x10) + (2x9) + (3x8) + (4x7) + (5x6) + (6x5) + (7x4) + (8x3) + (9x2) + (0x7) = 220

Zbrojimo sve rezultate: 2 + 2 + 0 = 4

Provjerimo modulo 11: 4 % 11 = 4

  1. Konačni OIB sastoji se od prvih 10 znamenaka i izračunate kontrolne znamenke, ali kontrolna znamenka se ne dodaje kao poseban znak ili zasebni blok na kraj prvih 10 znamenaka. To znači da se kontrolna znamenka uzima u obzir prilikom provjere valjanosti OIB-a, ali nije fizički dodana na kraj broja.

Tako da, konačni OIB za primjer 1234567890 s kontrolnom znamenkom 4 je 12345678904, ali važno je napomenuti da se kontrolna znamenka ne dodaje fizički na kraj, već je sastavni dio valjanosti OIB-a.

Ispravno je reći da se kontrolna znamenka računa na temelju prvih 10 znamenaka OIB-a i koristi se kao sastavni dio algoritma provjere valjanosti OIB-a. Ta kontrolna znamenka nije fizički dodana na kraj broja OIB-a kao posebna znamenka.

Kada kažemo da je kontrolna znamenka sastavni dio provjere valjanosti, mislimo na to da je njezina vrijednost izračunata kako bi se osigurala valjanost OIB-a prema propisanom algoritmu. Provjera valjanosti uključuje izračun kontrolne znamenke na temelju prvih 10 znamenaka i usporedbu rezultata s 11. znamenkom.

Dakle, iako u primjerima prikazujemo kontrolnu znamenku na kraju broja OIB-a, važno je razumjeti da je to rezultat provjere valjanosti, a ne dodavanje nove znamenke na kraj broja. OIB kao broj sastoji se od prvih 10 znamenaka koje predstavljaju identifikacijski broj, dok se 11. znamenka (kontrolna) izračunava radi provjere valjanosti.

Još jedan primjer izračuna OIB kontrolne znamenke

Izračunat ćemo kontrolnu znamenku OIB-a za primjer 4634853427 koristeći algoritam “Module 11,10” ISO 7064.

  1. Pomnožimo svaku znamenku s odgovarajućim faktorom i zbrojimo rezultate:

(4×10)+(6×9)+(3×8)+(4×7)+(8×6)+(5×5)+(3×4)+(4×3)+(2×2)+(7×1)=422

  1. Zbrojimo sve rezultate:

4+2+2=8

  1. Provjerimo modulo 11:

8 mod  11 =

Dakle, kontrolna znamenka za OIB 4634853427 je 8.

Konačni OIB je:

46348534278

Ovo je postupak izračuna koji se koristi za određivanje kontrolne znamenke OIB-a.