Skip to main content
Finance Tools 9 min read

IBAN Lengths and Formats for 89 Countries

Every country's IBAN length, bank-code field width and data source in one table — what each number answers, and why this site refuses to print sample IBANs.

Written by Faruq Zhao Updated 2026-10-31

IBAN (International Bank Account Number) lengths and field widths are fixed per country and wildly unequal: Norway gets away with 15 characters, Russia needs 33; the bank-code field runs from Estonia's 2 characters to Russia's 9. Knowing how long the number should be before you paste it somewhere is the fastest way to catch a truncated paste.

This page exists because of a recurring failure: length right, country code right, bank lookup empty. Chasing it country by country produced this table — each country's length, how wide its bank-code field is, and whether there's a real source behind its bank data. The bank name is usually dependable, but not equally so everywhere, and the source column is where the difference lives.

Why there is no sample-IBAN column: most reference pages print one, and those samples should not be used to learn what a country's bank codes look like — the most widely copied samples carry bank codes that were never assigned (see the dedicated section below). This site would rather leave the column empty than print a code that isn't in any register.

Why IBAN lengths aren't standardized

ISO 13616 defines the frame, not the content. An IBAN is a two-character country code, two check digits, and a BBAN (Basic Bank Account Number) — and how the BBAN is laid out is each national registry's own decision. Norway picked a short national format; Malta, the Seychelles and Saint Lucia picked long ones; the standard caps the total at 34, and the longest in this site's coverage is Russia at 33.

The bank code inside the BBAN is the same story: Germany uses an 8-digit Bankleitzahl, France a 5-digit code banque, the UK a 4-letter bank code, Brazil an 8-digit ISPB (payment-system participant code). Each field is as wide as that country needed it to be — decided nationally, with no coordination.

The table

Length is the IBAN's total character count. The bank-code column is that field's width; seven countries have a separate branch-code field after it. The source column describes the provenance of the bank data, not the format.

Country/Region Code Length Bank code Bank data source
Timor-Leste TL 23 3 Primary register
Denmark DK 18 4 Compiled
Ukraine UA 29 6 Compiled
Yemen YE 30 4 None
Israel IL 23 3 Compiled
Iraq IQ 23 4 Derived
Russia RU 33 9 None
Bulgaria BG 22 4 Primary register
Croatia HR 21 7 Compiled
Iceland IS 26 2 Compiled
Liechtenstein LI 21 5 Primary register
Libya LY 25 3 None
Hungary HU 28 3 Compiled
North Macedonia MK 19 3 Compiled
Qatar QA 29 4 Derived
Luxembourg LU 20 3 Compiled
Guatemala GT 28 4 Derived
Djibouti DJ 27 5 None
Kazakhstan KZ 20 3 Compiled
Costa Rica CR 22 4 Compiled
Türkiye TR 26 5 Compiled
Saint Lucia LC 32 4 Derived
São Tomé and Príncipe ST 25 4 Compiled
San Marino SM 27 5 None
Egypt EG 29 4 Compiled
Serbia RS 22 3 Compiled
Cyprus CY 28 3 Compiled
Seychelles SC 31 4 Derived
Dominican Republic DO 28 4 Derived
Austria AT 20 5 Compiled
Andorra AD 24 4 Compiled
Nicaragua NI 28 4 None
Palestine PS 29 4 Derived
Pakistan PK 24 4 Derived
Bahrain BH 22 4 Derived
Brazil BR 29 8 None
Burundi BI 27 5 None
Greece GR 27 3 Compiled
Germany DE 22 8 Compiled
Italy IT 27 5 Primary register
Latvia LV 21 4 Derived
Norway NO 15 4 Primary register
Czechia CZ 24 4 Primary register
Moldova MD 24 2 Compiled
Monaco MC 27 5 Compiled
Slovakia SK 24 4 Primary register
Slovenia SI 19 5 Compiled
Greenland GL 18 4 Compiled
Georgia GE 22 2 Compiled
Vatican City VA 22 3 Compiled
Belgium BE 16 3 Compiled
Mauritania MR 27 5 None
Mauritius MU 30 4 Derived
Saudi Arabia SA 24 2 Compiled
France FR 27 5 Compiled
Faroe Islands FO 18 4 Compiled
Poland PL 28 8 Compiled
Bosnia and Herzegovina BA 20 3 Compiled
Honduras HN 28 4 None
Ireland IE 22 4 Derived
Estonia EE 20 2 Compiled
Sweden SE 24 3 Compiled
Switzerland CH 21 5 Primary register
Belarus BY 28 4 Derived
Gibraltar GI 23 4 Derived
Falkland Islands FK 18 2 None
Kuwait KW 30 4 Derived
Kosovo XK 20 2 Compiled
Tunisia TN 24 2 Compiled
Lithuania LT 20 5 Compiled
Somalia SO 23 4 None
Jordan JO 30 4 Derived
Romania RO 24 4 Derived
Finland FI 18 3 Compiled
Sudan SD 18 2 None
United Kingdom GB 22 4 Derived
British Virgin Islands VG 24 4 Derived
Netherlands NL 18 4 Derived
El Salvador SV 28 4 Derived
Portugal PT 25 4 Compiled
Mongolia MN 20 4 Primary register
Spain ES 24 4 Primary register
Azerbaijan AZ 28 4 Derived
Albania AL 28 3 Compiled
Oman OM 23 3 Primary register
United Arab Emirates AE 23 3 Compiled
Malta MT 31 4 Derived
Lebanon LB 28 4 Compiled
Montenegro ME 22 3 Compiled

"Primary register" means published by the country's central bank or banking authority; "derived" means the IBAN's bank identifier is the first four characters of the BIC (Business Identifier Code), so the head-office BIC can be assembled directly; "compiled" means the data comes from collected tables rather than a named register; "none" means this site holds no bank-code data for that country.

How to read a row

Three numbers, answering three different questions:

Length: is the string even plausible

Fixed per country — a German IBAN is always 22 characters, a Dutch one always 18 — so a mismatch means a lost character or a wrong country code. That's a different failure from a bad checksum, which is why validators report them separately.

Bank-code width: which slice the lookup reads

Tells you how many characters identify the institution. It's also why a structurally flawless IBAN can still return no bank — the field reads out fine; there's just nothing recorded under that value.

Source: how much the answer can be trusted

For 11 countries the data comes from the central bank's own register — the only category with a nameable publisher and, usually, a citable version date. 23 countries answer by derivation, and there it's a rule, not an approximation.

One more thing about the "compiled" rows, because they're the only ones needing different treatment. A compiled answer is the best that country currently has and usually correct — but it traces back to no publisher, so it can't be corrected at the source. If a compiled result disagrees with your own bank statement: trust the statement, then tell us.

Two rows side by side make it clearest. Germany: length 22, bank code 8, source compiled — the 8 digits after the check digits are the Bankleitzahl, and 3704 0044 resolves to one specific institution. The Netherlands: length 18, bank code 4, source derived — the letters ABNA are themselves the BIC's bank code, so ABNANL2A assembles without any lookup. One table, two completely different mechanisms behind two successful lookups — and only the source column tells you which is which.

The bank code is not always four characters

Of these 89 countries, 42 have a 4-character bank-code field, and 23 of those answer by derivation. The rest vary widely: 9 countries use 2 characters, 19 use 3, 13 use 5, and the last six are Ukraine at 6, Croatia at 7, Brazil/Germany/Poland at 8, and Russia at 9.

With a spread this wide, you can't recognize a bank code by looking at a string. Estonia's 2 characters and Russia's 9 are both perfectly normal; only the country code tells you which format you're reading. That's also why a validator reads the two together instead of treating the bank code as a free-standing string.

Why no sample IBAN per country

Most reference pages print them, and those samples should not be used to learn what a country's bank codes look like.

The most widely circulated Swiss sample is CH93 0076 2011 6238 5295 7, whose clearing number is 00762. That number is not in this site's SIX clearing register (1,058 entries, version 2026-10-02) — even though the compiled fallback this site uses does map it to UBS. An audit of upstream data found the same problem with Austria and Belgium, and stated it plainly: the samples everyone copies from each other carry bank codes that were never assigned.

This site would rather leave the column empty than print a code that isn't in the register and hope you don't check. The lengths and field widths above can all be verified against the registry's own documentation, so those are what the table gives you.

Checking a country's format yourself

SWIFT's IBAN Registry publishes each country's IBAN length plus the positions of the bank-code, branch-code and account fields. This table was checked against it and is publicly available.

Two cautions when comparing against the table above:

  • The registry records field boundaries, not names: what it treats as one field, a bank may report as two — Spain's 8-digit "institution + branch" is a single field there and two fields here.
  • The registry is not a bank-code table: it tells you where the bank code sits, not which institution a value belongs to. The publishers in the table above are the best entry points — Czechia, Slovakia and Germany publish machine-readable files directly, and Spain, Italy, Norway and Switzerland each have public ones. Taking a bank code you already know and comparing is more direct than reading any description.

If you want to verify a check digit by hand rather than trusting a page: MOD-97 is short enough for paper — move the first four characters to the end, convert each letter to a two-digit value (A=10 through Z=35), divide the long integer by 97 and take the remainder; a valid IBAN leaves 1. The step-by-step walkthrough is in IBAN structure and check digits.

When the length doesn't match

If an IBAN fails on length alone, the characters are usually fine — there's just one too many or too few. Think back to where the string was copied from: printers and web forms wrap IBANs in four-character groups, and hand-copying drops characters at the line breaks far more often than anywhere else. The grouping itself is harmless — spaces are stripped before validation — but that's exactly where the loss happens.

If what fails is the check digit, the length is right and at least one character is wrong. In order of observed frequency: a letter O typed as a zero, two adjacent digits swapped, and a country code copied from someone else's paperwork.

FAQ

Can I just count characters instead of checking the length?

Counting catches truncated pastes quickly and is worth doing — but it misses swapped digits, which don't change the length and are exactly what the check digits police. Use both: count for length, let the checksum rule on consistency.

Why do some countries' bank codes contain letters?

Because in those countries the IBAN's bank identifier is the BIC's bank code, which is 4 letters by definition. Germany's counterpart is an 8-digit Bankleitzahl, so its field is digits and longer. Neither is more "correct" — each country defines its own account format.

The bank-code width here doesn't match what my bank told me.

The width describes the IBAN's field layout, and banks don't always report it that way. Spanish banks usually read the 4-digit institution code and 4-digit branch code as one 8-digit number, while the IBAN puts the branch part in the adjacent 4-character field. Check the boundaries before comparing.

My IBAN is one character short of the table.

Either a character is missing or the country code is wrong. Length is fixed per country, and the validator reports it separately from the checksum precisely because the two failures have different causes and different fixes.

Why does the range run from 15 to 33 characters?

Because each length is what that country's own account format needs, plus the 4 characters the IBAN itself adds. Norway's is short; Malta's and the Seychelles' are long. The 34 cap comes from ISO 13616, not from any country's format in use.

Further reading

Faruq Zhao

I build and maintain zztools.org — the tools, the guides, and the reference data behind them. If something on this page is wrong, write to support@zztools.org: it reaches me, not a ticket queue.

Tools used in this guide

More guides