Bosnia and Herzegovina IBAN generator

IBANs in Bosnia and Herzegovina have 20 characters and start with BA. The one below is random, follows the national structure and passes the MOD-97 check, so form validation accepts it. No bank issued it.

Format

BA391415713548096629

  1. Country BA
  2. Check digits 39
  3. Bank code 141
  4. Branch code 571
  5. Account number 35480966
  6. National check 29
Generate a list Up to 100 IBANs, as CSV, JSON, SQL or plain text

In CSV, JSON and SQL, every IBAN segment (bank, branch, account, check digits) gets its own column.

MOD-97 valid

Realistic mode: real bank code, random account number. No bank issued this IBAN, but it could match a real account by chance. Never use it for payments.

Check an IBAN

Paste an IBAN from any country to check its length, format and check digits.

Without JavaScript, this form opens the full IBAN validator.

Full IBAN validator

Bosnia and Herzegovina IBAN format

Length, pattern and the position of each segment in BA IBANs, with a sample IBAN.

IBAN length 20
BBAN length 16
BBAN pattern 3n3n8n2n
Structure BAkk bbb sss cccccccc xx
Example, electronic BA391290079401028494
Example, print BA39 1290 0794 0102 8494
Letters in the BBAN None, digits only
National check digits Positions 19–20
IBAN check digits Always BA39
Source SWIFT IBAN Registry, Release 102 (June 2026)

Position by position

Segment Positions Length Example
Country 1–2 2 BA
Check digits 3–4 2 39
Bank code 5–7 3 129
Branch code 8–10 3 007
Account number 11–18 8 94010284
National check 19–20 2 94

In the pattern, n stands for a digit, a for an uppercase letter and c for a letter or digit. The number before each letter is how many characters that block has.

National check digits

Besides the two IBAN check digits, BA IBANs carry national check digits inside the BBAN, at positions 19–20. They come from the domestic account number and follow a national rule.

They use ISO 7064 MOD 97-10, the same method as the IBAN check digits, applied to the digits in front of them: 98 minus the remainder of that number, times 100, divided by 97.

This generator calculates them with the official algorithm, in both modes, so validators that check them accept the IBANs on this page.

Because of this check, the whole BBAN always leaves the same remainder when divided by 97, so every valid BA IBAN has the same IBAN check digits: BA39.

Source: Centralna banka Bosne i Hercegovine.

How national check digits work

Real bank codes in realistic mode

In realistic mode, the default, the generator takes the bank code from this list and keeps the account number random, so no bank issued these IBANs. With Realistic off, the bank code is random too.

Bank Bank code
Raiffeisen Bank BiH 161
UniCredit Bank (Mostar) 338
Intesa Sanpaolo Banka BiH 154
Sparkasse Bank BiH 199
NLB Banka Sarajevo 132
ASA Banka 134
Bosna Bank International 141
UniCredit Bank Banja Luka 551

The branch code stays random.

What to test with BA IBANs

  • Accept exactly 20 characters for BA, after removing spaces, and reject 19 or 21.
  • Digits only after the check digits: a validator for BA should reject any letter there.
  • For a negative test of the national check, change the character at position 19 and recalculate the IBAN check digits (the validator suggests them). The IBAN then passes MOD-97 but fails the national check.
  • Ready-made invalid values for negative tests: BA391290079401028495 (last character changed, MOD-97 fails) and BA39129007940102849 (one character missing).
  • Bank directory checks: by default the generator uses real bank codes such as 338 (UniCredit Bank (Mostar)), and random ones with Realistic off, so you can test a known and an unknown bank.

About IBANs in Bosnia and Herzegovina

IBANs from Bosnia and Herzegovina are 20 characters long and numeric after the country code: a 3-digit bank code, a 3-digit branch code, an 8-digit account number and 2 national check digits. They use ISO 7064 MOD 97-10, the same method as the IBAN, so every valid IBAN from the country starts with BA39. IBAN rules were published in January 2007, with 2 years for banks to comply.

Questions about IBANs in Bosnia and Herzegovina

How long is an IBAN in Bosnia and Herzegovina?

20 characters: the country code BA, two check digits and a national part (BBAN) of 16 characters.

What does an IBAN from Bosnia and Herzegovina look like?

For example BA39 1290 0794 0102 8494. That is the print format, in groups of four. Forms and files usually take it without spaces: BA391290079401028494.

Can Bosnia and Herzegovina IBANs contain letters?

No. After the check digits, BA IBANs contain only digits: the BBAN pattern is 3n3n8n2n.

Where is the bank code in Bosnia and Herzegovina IBANs?

The bank code, at positions 5–7: 129 in the registry example. The branch code is at positions 8–10 (007). By default (realistic mode) the generator uses real bank codes, such as 161 for Raiffeisen Bank BiH.

Will a test IBAN for Bosnia and Herzegovina pass validation?

It passes the checks most forms run: country code, length, character format and MOD-97 check digits. The national check digits inside the BBAN are computed with the official algorithm, so a validator that also checks them accepts this IBAN. In realistic mode, the default, the bank code is real too, so a bank directory check accepts it. An account lookup or a payee name check will not confirm it, because the account number is random.

Can I use a generated Bosnia and Herzegovina IBAN to sign up for a service or receive money?

No. It is test data that no bank issued to you. Money sent to it is rejected or, if the number happens to belong to someone, reaches a stranger, and using it for a sign-up, a free trial or a direct debit is misuse. Your own IBAN is in your banking app and on your statements.

Other countries

Pick a country to see its IBAN format and get a valid test IBAN. The number next to each code is the IBAN length.