IBAN country list

Every country that uses IBAN, with the exact total length in characters. A valid IBAN must match the length of its country, then pass the ISO 13616 mod-97 check.

How the check works

Remove spaces and uppercase the string. Move the four leading characters (country code plus check digits) to the end. Replace each letter with its position in the alphabet plus 9 (A=10, B=11, ... Z=35). Read the result as one huge integer and take it modulo 97: a valid IBAN leaves remainder 1.

That is pure arithmetic, so it needs no bank directory and no network call. Try it on the IBAN reference page or in the browser demo.

curl "https://<your-worker>.workers.dev/v1/validate/iban/DE89370400440532013000"

Lengths by country

77 countries are listed. Country codes not in this table are rejected, because no official IBAN length is defined for them.

CountryIBAN length
AD24
AE23
AL28
AT20
AZ28
BA20
BE16
BG22
BH22
BR29
BY28
CH21
CR22
CY28
CZ24
DE22
DK18
DO28
EE20
EG29
ES24
FI18
FO18
FR27
GB22
GE22
GI23
GL18
GR27
GT28
HR21
HU28
IE22
IL23
IQ23
IS26
IT27
JO30
KW30
KZ20
LB28
LC32
LI21
LT20
LU20
LV21
MC27
MD24
ME22
MK19
MR27
MT31
MU30
NL18
NO15
PK24
PL28
PS29
PT25
QA29
RO24
RS22
SA24
SC31
SE24
SI19
SK24
SM27
ST25
SV28
TL23
TN24
TR26
UA29
VA22
VG24
XK20

Reference pages