IBAN Format by Country: Complete List of Lengths, Examples, and Structures

IBAN Format by Country: Complete List of Lengths, Examples, and Structures

A comprehensive reference of IBAN formats for every country that uses them. Includes length, structure, examples, and bank code positions for 80+ countries.

Written by David S · Published on February 18, 2026
#IBAN format #IBAN by country #IBAN length #IBAN examples #IBAN country list #IBAN structure by country

Not all IBANs look the same. A German IBAN is 22 characters. A Maltese IBAN is 31. A Norwegian IBAN is just 15. The country code tells you where it is from, but the internal structure — how the bank code, branch code, and account number are arranged — varies wildly.

If you are building payment forms, validating user input, or just trying to make sense of that string of characters someone sent you, this is the reference you need.


How to Read Any IBAN

Every IBAN starts the same way:

[Country Code] [Check Digits] [Bank/Account Info]
   2 letters      2 digits       varies by country

The first 4 characters are always:

  1. ISO 3166-1 country code (2 letters) — identifies the country
  2. Check digits (2 numbers) — validates the entire IBAN using mod-97

Everything after that depends on the country.


Europe

Western Europe

Country Code Length Format Example
Germany DE 22 DEkk BBBB BBBB CCCC CCCC CC DE89 3704 0044 0532 0130 00
France FR 27 FRkk BBBB BGGG GGCC CCCC CCCC CKK FR76 3000 6000 0112 3456 7890 189
Spain ES 24 ESkk BBBB GGGG KKCC CCCC CCCC ES91 2100 0418 4502 0005 1332
Italy IT 27 ITkk XBBB BBGG GGCC CCCC CCCC CCC IT60 X054 2811 1010 0000 0123 456
Netherlands NL 18 NLkk BBBB CCCC CCCC CC NL91 ABNA 0417 1643 00
Belgium BE 16 BEkk BBBC CCCC CCKK BE68 5390 0754 7034
Austria AT 20 ATkk BBBB BCCC CCCC CCCC AT61 1904 3002 3457 3201
Switzerland CH 21 CHkk BBBB BCCC CCCC CCCC C CH93 0076 2011 6238 5295 7
Portugal PT 25 PTkk BBBB GGGG CCCC CCCC CCCK K PT50 0002 0123 1234 5678 9015 4
Ireland IE 22 IEkk AAAA BBBB BBCC CCCC CC IE29 AIBK 9311 5212 3456 78
Luxembourg LU 20 LUkk BBBC CCCC CCCC CCCC LU28 0019 4006 4475 0000

Key: B = bank code, G = branch code, C = account number, K = check digit, X = control letter, A = BIC bank code

Northern Europe

Country Code Length Example
United Kingdom GB 22 GB29 NWBK 6016 1331 9268 19
Sweden SE 24 SE45 5000 0000 0583 9825 7466
Denmark DK 18 DK50 0040 0440 1162 43
Norway NO 15 NO93 8601 1117 947
Finland FI 18 FI21 1234 5600 0007 85
Iceland IS 26 IS14 0159 2600 7654 5510 7303 39

Norway's 15-character IBAN is the shortest in the world.

Eastern Europe

Country Code Length Example
Poland PL 28 PL61 1090 1014 0000 0712 1981 2874
Czech Republic CZ 24 CZ65 0800 0000 1920 0014 5399
Hungary HU 28 HU42 1177 3016 1111 1018 0000 0000
Romania RO 24 RO49 AAAA 1B31 0075 9384 0000
Croatia HR 21 HR12 1001 0051 8630 0016 0
Bulgaria BG 22 BG80 BNBG 9661 1020 3456 78
Slovakia SK 24 SK31 1200 0000 1987 4263 7541
Slovenia SI 19 SI56 2633 0001 2039 086
Latvia LV 21 LV80 BANK 0000 4351 9500 1
Lithuania LT 20 LT12 1000 0111 0100 1000
Estonia EE 20 EE38 2200 2210 2014 5685

Middle East & North Africa

Country Code Length Example
Saudi Arabia SA 24 SA03 8000 0000 6080 1016 7519
UAE AE 23 AE07 0331 2345 6789 0123 456
Qatar QA 29 QA58 DOHB 0000 1234 5678 90AB CDEFG
Bahrain BH 22 BH67 BMAG 0000 1299 1234 56
Kuwait KW 30 KW81 CBKU 0000 0000 0000 1234 5601 01
Jordan JO 30 JO94 CBJO 0010 0000 0000 0131 0003 02
Lebanon LB 28 LB62 0999 0000 0001 0019 0122 9114
Tunisia TN 24 TN59 1000 6035 1835 9847 8831
Mauritania MR 27 MR13 0002 0001 0100 0012 3456 753

Americas

Only Brazil uses IBAN in the Americas:

Country Code Length Example
Brazil BR 29 BR18 0036 0305 0000 1000 9795 493C 1

Brazil's IBAN is notable for including a letter that identifies the account type (C = current account, P = savings).

The United States, Canada, Mexico, and all other American countries do not use IBAN.


Africa

Country Code Length Example
Mauritius MU 30 MU17 BOMM 0101 1010 3030 0200 000M UR
Seychelles SC 31 SC18 SSCB 1101 0000 0000 0000 1497 USD
Tunisia TN 24 TN59 1000 6035 1835 9847 8831

IBAN adoption in Africa is limited, with most countries using their own domestic systems.


Asia & Pacific

Country Code Length Example
Pakistan PK 24 PK36 SCBL 0000 0011 2345 6702
Turkey TR 26 TR33 0006 1005 1978 6457 8413 26
Israel IL 23 IL62 0108 0000 0009 9999 999
Kazakhstan KZ 20 KZ86 125K ZT50 0410 0100
Georgia GE 22 GE29 NB00 0000 0101 9049 17
Azerbaijan AZ 28 AZ21 NABZ 0000 0000 1370 1000 1944

Validating IBANs in Code

JavaScript

function validateIBAN(iban) {
  // Remove spaces and convert to uppercase
  const cleaned = iban.replace(/\s/g, '').toUpperCase();

  // Move first 4 chars to end
  const rearranged = cleaned.slice(4) + cleaned.slice(0, 4);

  // Convert letters to numbers (A=10, B=11, ..., Z=35)
  const numeric = rearranged.replace(/[A-Z]/g, (char) =>
    char.charCodeAt(0) - 55
  );

  // Calculate mod 97 using string-based division (handles big numbers)
  let remainder = numeric.split('').reduce((acc, digit) => {
    return (acc * 10 + parseInt(digit)) % 97;
  }, 0);

  return remainder === 1;
}

// Test
validateIBAN('DE89 3704 0044 0532 0130 00'); // true
validateIBAN('DE89 3704 0044 0532 0130 01'); // false

Python

def validate_iban(iban):
    cleaned = iban.replace(' ', '').upper()
    rearranged = cleaned[4:] + cleaned[:4]
    numeric = ''
    for char in rearranged:
        if char.isdigit():
            numeric += char
        else:
            numeric += str(ord(char) - 55)
    return int(numeric) % 97 == 1

validate_iban('ES91 2100 0418 4502 0005 1332')  # True

Country-Specific Quirks

France: RIB Inside the IBAN

French IBANs embed the traditional RIB (Relevé d'Identité Bancaire): bank code (5 digits) + branch code (5 digits) + account number (11 chars) + RIB check (2 digits). Many French systems still ask for the RIB separately.

UK: Sort Code Mapping

British IBANs include the 6-digit sort code within the BBAN. The sort code 60-16-13 becomes 601613 inside the IBAN. Some UK banks still do not display IBANs prominently, since domestic Faster Payments use sort code + account number.

Germany: No Branch Code

German IBANs use an 8-digit Bankleitzahl (BLZ) that identifies the bank and branch together, followed by a 10-digit account number. Simpler than most.

Spain: Double Check Digits

Spanish IBANs have their own 2-digit national check (positions 11-12) in addition to the IBAN's mod-97 check. This provides extra error detection for domestic processing.


Generating Test IBANs

Building a banking application and need test data? Random IBAN Generator creates valid IBANs for any supported country with:

  • Correct length and format per country specification
  • Valid mod-97 check digits
  • Realistic bank code prefixes
  • No connection to real bank accounts

Perfect for form validation testing, database seeding, and QA.


FAQ

Which country has the longest IBAN?

Seychelles has the longest at 31 characters, followed by Kuwait and Jordan at 30 characters. The longest European IBAN is 28 characters (Poland, Hungary).

Which country has the shortest IBAN?

Norway, at just 15 characters: 2-letter country code + 2 check digits + 11-digit account number.

Are IBAN formats ever updated?

Yes, but rarely. Changes require coordination between the country's banking authority and the SWIFT IBAN registry. New countries are added periodically — the most recent additions include Sudan and Somalia.

Can I determine the bank from an IBAN?

Yes. The bank code is embedded in the IBAN at a country-specific position. For example, in a German IBAN, characters 5-12 are the Bankleitzahl (bank code). In a UK IBAN, characters 5-8 are the bank identifier from the BIC.

Do all banks in IBAN countries support IBAN?

In countries where IBAN is mandatory (EU, SEPA zone), all banks must support it. In countries with voluntary adoption, some smaller or newer financial institutions may not yet have IBAN capability.

Is there a universal IBAN length?

No. IBAN length varies from 15 to 34 characters depending on the country. The ISO 13616 standard defines a maximum of 34 characters, but each country specifies its own fixed length within that limit.

Try Our IBAN Tools

Put your knowledge into practice with our free tools.