IBAN formats by country

Why a Norwegian IBAN has 15 characters and a Maltese one 31, with the format of every country we support.

Updated

Every IBAN starts the same way: two letters for the country and two check digits. What follows, the BBAN, is the account number each country already used before the IBAN existed. That is why a Norwegian IBAN has 15 characters and a Maltese one 31.

How long an IBAN can be

The standard allows up to 34 characters, but no country uses all of them. In the SWIFT IBAN Registry the shortest IBAN is Norway's, with 15 characters, and the longest is Russia's, with 33. The most common length is 28 characters. This site supports every country in the registry, so its lengths go from 15 to 33 as well. In the European Union, Belgium has the shortest format, with 16 characters, and Malta the longest, with 31.

If you build forms or databases, never assume one length. A field limited to 22 characters, the German length, will cut off IBANs from France, Italy, Poland and many other countries.

What changes from country to country

Digits only, or letters too

Many BBANs are numeric, but plenty are not. The Netherlands, the United Kingdom, Ireland, Malta, Latvia, Romania, Bulgaria, Jordan and Pakistan start the BBAN with a four-letter bank code, often the first four letters of the bank's BIC. In France, Italy, Switzerland and several other countries the account number itself can contain letters. A validator that accepts only digits after the country code rejects real IBANs from all of these countries.

National check digits

Some countries kept their own check digits inside the BBAN, on top of the two IBAN check digits:

Country National check Where it sits
Italy, San Marino CIN, a check letter First character of the BBAN
France, Monaco Clé RIB, two digits End of the BBAN
Spain Two control digits Between the branch code and the account number
Belgium Two check digits End of the BBAN
Portugal, Slovenia Two check digits End of the BBAN
Norway, Finland, Estonia One check digit End of the BBAN
Hungary Two check digits One after the branch code, one at the end
Albania One check digit After the bank and branch code
Bosnia and Herzegovina, Kosovo, Montenegro, North Macedonia, Serbia, Timor-Leste Two check digits (MOD 97) End of the BBAN
Mauritania Clé RIB, two digits End of the BBAN
Burundi Two control digits End of the BBAN
Costa Rica One check digit End of the BBAN
Russia Control key, one digit 9th digit of the account number

When the national check is a MOD 97 calculation over an all-digit BBAN, as in Bosnia and Herzegovina, Kosovo, Mauritania, Montenegro, North Macedonia, Serbia and Timor-Leste, every valid IBAN of that country has the same IBAN check digits: for example RS35 for Serbia, MR13 for Mauritania and TL38 for Timor-Leste.

An IBAN can pass the MOD-97 check and still fail the national one. How IBAN check digits work explains the difference, and National check digits in the IBAN describes each national method.

Bank and branch codes

Most BBANs begin with a bank code. Some add a branch code: the British and Irish sort code, the French code guichet, the Italian CAB, the Spanish oficina. Others, like Germany and Austria, have only a bank code followed by the account number.

Unusual fields

A few formats contain extra information. Iceland's IBAN ends with the account holder's national ID number, the kennitala. Bulgaria has a two-digit account type. The Czech Republic and Slovakia have a six-digit account prefix in front of the account number, and Turkey has a reserved digit after the bank code. In the registry examples for Mauritius and Seychelles, the IBAN even ends with a currency code.

Shared formats and shared codes

Some countries reuse a neighbour's layout. Monaco follows the French format, San Marino the Italian one and Liechtenstein the Swiss one; only the country code differs. The Faroe Islands and Greenland have their own codes, FO and GL, with the same layout as Denmark. Some country codes also cover several territories: French IBANs are used in the French overseas departments and territories, British ones in Jersey, Guernsey and the Isle of Man, and Finnish ones in the Åland Islands.

Reading the pattern

The registry describes each BBAN with a short pattern. In 8n10n, the German pattern, 8n means eight digits and 10n ten more digits. The letters stand for:

  • n for digits 0 to 9
  • a for uppercase letters A to Z
  • c for letters or digits

So 4a10n, the Dutch pattern, means four letters followed by ten digits.

Countries outside the official registry

Two of the countries on this site, Algeria and Morocco, are not in the SWIFT IBAN Registry. Their formats here come from unofficial lists of IBAN formats kept by IBAN validation services and software libraries. For Algeria the sources disagree on the length: some give 26 characters, the length this site uses, and others give 24. Check with the bank or payment provider you work with before relying on either.

Every country we support

The table lists the IBAN length, the BBAN pattern and an example for each country. Follow a country's link to open its generator and the full position-by-position breakdown.

Country Code Length BBAN pattern Example
Albania AL 28 8n16c AL47 2121 1009 0000 0002 3569 8741
Algeria DZ 26 22n DZ58 0002 1000 0111 3000 0005 70
Andorra AD 24 4n4n12c AD12 0001 2030 2003 5910 0100
Austria AT 20 16n AT61 1904 3002 3457 3201
Azerbaijan AZ 28 4a20c AZ21 NABZ 0000 0000 1370 1000 1944
Bahrain BH 22 4a14c BH67 BMAG 0000 1299 1234 56
Belarus BY 28 4c4n16c BY13 NBRB 3600 9000 0000 2Z00 AB00
Belgium BE 16 3n7n2n BE68 5390 0754 7034
Bosnia and Herzegovina BA 20 3n3n8n2n BA39 1290 0794 0102 8494
Brazil BR 29 8c5n10n1c1c BR66 9999 9A03 0000 1000 9795 493C 1
British Virgin Islands VG 24 4a16n VG96 VPVG 0000 0123 4567 8901
Bulgaria BG 22 4a4n2n8c BG80 BNBG 9661 1020 3456 78
Burundi BI 27 5n5n11n2n BI42 1000 0100 0100 0033 2045 181
Costa Rica CR 22 4n14n CR05 0152 0200 1026 2840 66
Croatia HR 21 17n HR12 1001 0051 8630 0016 0
Cyprus CY 28 3n5n16c CY17 0020 0128 0000 0012 0052 7600
Czech Republic CZ 24 20n CZ65 0800 0000 1920 0014 5399
Denmark DK 18 14n DK50 0040 0440 1162 43
Djibouti DJ 27 5n5n11n2n DJ21 0001 0000 0001 5400 0100 186
Dominican Republic DO 28 4c20n DO28 BAGR 0000 0001 2124 5361 1324
Egypt EG 29 25n EG38 0019 0005 0000 0000 2631 8000 2
El Salvador SV 28 4a20n SV62 CENR 0000 0000 0000 0070 0025
Estonia EE 20 16n EE38 2200 2210 2014 5685
Falkland Islands (Malvinas) FK 18 2a12n FK88 SC12 3456 7890 12
Faroe Islands FO 18 4n9n1n FO62 6460 0001 6316 34
Finland FI 18 14n FI21 1234 5600 0007 85
France FR 27 5n5n11c2n FR14 2004 1010 0505 0001 3M02 606
Georgia GE 22 2a16n GE29 NB00 0000 0101 9049 17
Germany DE 22 8n10n DE89 3704 0044 0532 0130 00
Gibraltar GI 23 4a15c GI75 NWBK 0000 0000 7099 453
Greece GR 27 3n4n16c GR16 0110 1250 0000 0001 2300 695
Greenland GL 18 4n9n1n GL89 6471 0001 0002 06
Guatemala GT 28 4c20c GT82 TRAJ 0102 0000 0012 1002 9690
Honduras HN 28 4a20n HN88 CABF 0000 0000 0002 5000 5469
Hungary HU 28 24n HU42 1177 3016 1111 1018 0000 0000
Iceland IS 26 22n IS14 0159 2600 7654 5510 7303 39
Iraq IQ 23 4a3n12n IQ98 NBIQ 8501 2345 6789 012
Ireland IE 22 4a6n8n IE29 AIBK 9311 5212 3456 78
Israel IL 23 3n3n13n IL62 0108 0000 0009 9999 999
Italy IT 27 1a5n5n12n IT60 X054 2811 1010 0000 0123 456
Jordan JO 30 4a4n18c JO94 CBJO 0010 0000 0000 0131 0003 02
Kazakhstan KZ 20 3n13c KZ86 125K ZT50 0410 0100
Kosovo XK 20 4n10n2n XK05 1212 0123 4567 8906
Kuwait KW 30 4a22c KW81 CBKU 0000 0000 0000 1234 5601 01
Latvia LV 21 4a13c LV80 BANK 0000 4351 9500 1
Lebanon LB 28 4n20c LB62 0999 0000 0001 0019 0122 9114
Libya LY 25 3n3n15n LY83 0020 4800 0020 1001 2036 1
Liechtenstein LI 21 5n12c LI21 0881 0000 2324 013A A
Lithuania LT 20 16n LT12 1000 0111 0100 1000
Luxembourg LU 20 3n13c LU28 0019 4006 4475 0000
Malta MT 31 4a5n18c MT84 MALT 0110 0001 2345 MTLC AST0 01S
Mauritania MR 27 5n5n11n2n MR13 0002 0001 0100 0012 3456 753
Mauritius MU 30 4a2n2n12n3n3a MU17 BOMM 0101 1010 3030 0200 000M UR
Moldova MD 24 2c18c MD24 AG00 0225 1000 1310 4168
Monaco MC 27 5n5n11c2n MC58 1122 2000 0101 2345 6789 030
Mongolia MN 20 4n12n MN12 1234 1234 5678 9123
Montenegro ME 22 3n13n2n ME25 5050 0001 2345 6789 51
Morocco MA 28 24n MA64 0115 1900 0001 2050 0053 4921
Netherlands NL 18 4a10n NL91 ABNA 0417 1643 00
Nicaragua NI 28 4a20n NI45 BAPR 0000 0013 0000 0355 8124
North Macedonia MK 19 3n10c2n MK07 2501 2000 0058 984
Norway NO 15 11n NO93 8601 1117 947
Oman OM 23 3n16c OM81 0180 0000 0129 9123 456
Pakistan PK 24 4a16c PK36 SCBL 0000 0011 2345 6702
Palestine PS 29 4a21c PS92 PALS 0000 0000 0400 1234 5670 2
Poland PL 28 24n PL61 1090 1014 0000 0712 1981 2874
Portugal PT 25 21n PT50 0002 0123 1234 5678 9015 4
Qatar QA 29 4a21c QA58 DOHB 0000 1234 5678 90AB CDEF G
Romania RO 24 4a16c RO49 AAAA 1B31 0075 9384 0000
Russia RU 33 9n5n15c RU03 0445 2522 5408 1781 0538 0913 1041 9
Saint Lucia LC 32 4a24c LC55 HEMM 0001 0001 0012 0012 0002 3015
San Marino SM 27 1a5n5n12n SM86 U032 2509 8000 0000 0270 100
Sao Tome and Principe ST 25 4n4n11n2n ST23 0001 0001 0051 8453 1014 6
Saudi Arabia SA 24 2n18c SA03 8000 0000 6080 1016 7519
Serbia RS 22 3n13n2n RS35 2600 0560 1001 6113 79
Seychelles SC 31 4a2n2n16n3a SC18 SSCB 1101 0000 0000 0000 1497 USD
Slovakia SK 24 20n SK31 1200 0000 1987 4263 7541
Slovenia SI 19 15n SI56 2633 0001 2039 086
Somalia SO 23 4n3n12n SO21 1000 0010 0100 0100 141
Spain ES 24 4n4n2n10n ES91 2100 0418 4502 0005 1332
Sudan SD 18 2n12n SD21 2901 0501 2340 01
Sweden SE 24 20n SE45 5000 0000 0583 9825 7466
Switzerland CH 21 5n12c CH93 0076 2011 6238 5295 7
Timor-Leste TL 23 3n14n2n TL38 0080 0123 4567 8910 157
Tunisia TN 24 20n TN59 1000 6035 1835 9847 8831
Turkey TR 26 5n1n16c TR33 0006 1005 1978 6457 8413 26
Ukraine UA 29 6n19c UA21 3223 1300 0002 6007 2335 6600 1
United Arab Emirates AE 23 3n16n AE07 0331 2345 6789 0123 456
United Kingdom GB 22 4a6n8n GB29 NWBK 6016 1331 9268 19
Vatican City VA 22 3n15n VA59 0011 2300 0012 3456 78
Yemen YE 30 4a4n18c YE15 CBYE 0001 0188 6123 4567 8912 34

Sources

Need a test IBAN?

Generate a valid IBAN for any of 91 countries, copy it in the format you need and see what each segment means.

Open the generator