JMBG checker: what the personal number means and whether it is valid

Check a JMBG: control digit, date of birth, age, sex and register area. The number is processed only in your browser.

Bosnia and HerzegovinaRules reviewed: BS / EN
01

Your inputs

Starting values are an example. Replace them with your own.

Your inputs stay in your browser.

02

Your result

Enter your details and run the calculation.

About this result

A check of the number's form, not confirmation of identity or registration. The law sets the control digit by modulus 11 under a Ministry of Civil Affairs instruction; the usual method with weights 7 to 2 is used here. Since 2013 the BiH area codes 11 to 19 have new meanings and numbers issued earlier do not change, so the calculator shows both. The year reads as 1800 to 1999 for GGG 800 to 999, otherwise as 2000 or later.

Full disclaimer

What do the digits of a JMBG mean?

Children of the diaspora registered in BiH, and anyone filling in a Bosnian form from overseas, run into the 13 digit JMBG sooner or later. This checker reads the date of birth, sex and register area out of the number, works out the age on a date you pick and tests the control digit. A wrong control digit usually means one digit was mistyped. Everything runs in your browser, and the number is never sent anywhere.

The unique personal number has 13 digits in the form DD MM GGG RR BBB K. The first seven digits are the date of birth, with the last three digits of the year, so 900 means 1900 and 006 means 2006. RR is the register area, BBB a serial number that also marks sex, 000 to 499 male and 500 to 999 female, and K is the control digit. The control digit uses modulus 11: the digits are multiplied by the weights 7, 6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2, the sum is divided by 11 and the remainder is subtracted from 11. For 0101006500006 the sum is 82 and the remainder 5, so the control digit is 11 − 5 = 6 and the number is valid. If the result is 10 or 11, the control digit is 0. From the date of birth in the number, the age calculator gives the exact age and the day of the week calculator shows the weekday. The IBAN checker uses a similar control digit test with modulus 97.

Register areas in the JMBG for Bosnia and Herzegovina

Since the 2013 amendments the codes 11 to 19 cover new areas and code 10 is no longer assigned. Numbers issued earlier stay the same, so on older numbers the same code means the old area. Foreign nationals resident in BiH have code 01.

BiH register area codes
CodeSince 2013Numbers issued earlier
10not assignedBanja Luka
11RS, Banja Luka and PrijedorBihać
12RS, Bijeljina and DobojDoboj
13RS, east and TrebinjeGoražde
14Brčko DistrictLivno
15FBiH, Mostar and HerzegovinaMostar
16FBiH, Bihać and LivnoPrijedor
17FBiH, Sarajevo and GoraždeSarajevo
18FBiH, TuzlaTuzla
19FBiH, Zenica, Travnik and BugojnoZenica

Worked example

A grandson in Toronto is filling in a pension form for his grandfather and checks the JMBG copied from an old ID card, with the age on 1 December 2026.

Inputs

Personal number (JMBG), 13 digits
0306952170009
Date for the age
2026-12-01

Result

Control digit
valid
Date of birth
1952-06-03
Age, years
74
Sex
male
Register area
BiH: since 2013 Federation of BiH, Sarajevo and Goražde; numbers issued earlier Sarajevo
Serial number
000

Frequently asked questions

Is it safe to enter a JMBG in the calculator?

The check runs only in your browser: the number is not sent to a server and is not stored. Still, a JMBG is personal data, so do not share it needlessly or enter another person's number without consent.

How do you read the date of birth from a JMBG?

The first two digits are the day, the next two the month and the three after them the last three digits of the year. For example, 1505985 means 15 May 1985 and 0101006 means 1 January 2006.

What does 'invalid, expected 2' mean in the result?

The first twelve digits produce a control digit of 2, but the number you typed ends in something else, for example 1505985175003. The calculator still reads the other parts, 15 May 1985 and female in this case, so you can see whether the rest looks right. Most often one digit was mistyped, so compare the number with the document again.

METHOD

Formula and method

JMBG = DD MM GGG RR BBB K. K = 11 − ((7 × (a1 + a7) + 6 × (a2 + a8) + 5 × (a3 + a9) + 4 × (a4 + a10) + 3 × (a5 + a11) + 2 × (a6 + a12)) mod 11); if the result is 10 or 11, K = 0. BBB from 000 to 499 is male, from 500 to 999 female.