International Bank Account Number (IBAN)
Represents an IBAN as specified in ISO 13616.
Usage
C# Copy
var iban = InternationalBankAccountNumber .Parse ("nl20ingb0001234567" );
iban.Country; // Country.NL
iban.Length; // 18
iban.ToString ("F" ); // NL20 INGB 0001 2345 67
iban.ToString ("H" ); // NL20 INGB 0001 2345 67 (with non-breaking spaces)
iban.ToString ("O" ); // NL20XXXXXXXXXXX567 (obfuscated)
Format Output Notes
UNL20INGB0001234567Unformatted, machine readable. u for lowercase.
FNL20 INGB 0001 2345 67Grouped by four. f for lowercase.
HNL20 INGB 0001 2345 67As F, with non-breaking spaces.
ONL20XXXXXXXXXXX567Obfuscated, for logs and screens.
Supported countries
Country patterns IBANs from countries with a known pattern are checked against it. The full list is in
Reference › IBAN formats , now part of the site instead of a file at the repo root.
IBANs from other countries are valid when they are 12 to 36 characters long and pass ISO 7064 MOD-97-10 .
See also
Business Identifier Code (BIC) · Country · Money
IBAN formats
Every country with a known IBAN pattern. IBANs of other countries are valid when they are 12 to 36 characters long and pass ISO 7064 MOD-97-10.
a alphabeticc alphanumericn numeric[?] fixed character
Country Chars BBAN Check IBAN fields Official Example
AD Andorra24 8n,12c ADkk bbbb ssss cccc cccc cccc yes AD12 0001 2030 2003 5910 0100
AE United Arab Emirates23 19n AEkk bbbc cccc cccc cccc ccc yes AE95 0210 0000 0069 3123 456
AL Albania28 8n,16c ALkk bbbs sssx cccc cccc cccc cccc yes AL47 2121 1009 0000 0002 3569 8741
AT Austria20 16n ATkk bbbb bccc cccc cccc yes AT61 1904 3002 3457 3201
AZ Azerbaijan28 4a,20c AZkk bbbb cccc cccc cccc cccc cccc yes AZ21 NABZ 0000 0000 1370 1000 1944
BA Bosnia and Herzegovina20 16n 39 BAkk bbbs sscc cccc ccxx yes BA39 1290 0794 0102 8494
BE Belgium16 12n BEkk bbbc cccc ccxx yes BE68 5390 0754 7034
BG Bulgaria22 4a,6n,8c BGkk bbbb ssss ttcc cccc cc yes BG80 BNBG 9661 1020 3456 78
BH Bahrain22 4a,14c BHkk bbbb cccc cccc cccc cc yes BH29 BMAG 1299 1234 56BH 00
BI Burundi27 23n BIkk bbbb bsss sscc cccc cccc ccc yes BI13 2000 1100 0100 0012 3456 789
BR Brazil29 23n,1a,1c BRkk bbbb bbbb ssss sccc cccc ccct n yes BR97 0036 0305 0000 1000 9795 493P 1
BY Belarus28 4c,4n,16c BYkk bbbb aaaa cccc cccc cccc cccc yes BY13 NBRB 3600 9000 0000 2Z00 AB00
DE Germany22 18n DEkk bbbb bbbb cccc cccc cc yes DE68 2105 0170 0012 3456 78
FR France27 10n,11c,2n FRkk bbbb bsss sscc cccc cccc cxx yes FR14 2004 1010 0505 0001 3M02 606
IE Ireland22 4a,14n IEkk qqqq bbbb bbcc cccc cc yes IE29 AIBK 9311 5212 3456 78
NL Netherlands18 4a,10n NLkk bbbb cccc cccc cx yes NL20 INGB 0001 2345 67
NO Norway15 11n NOkk bbbb cccc ccx yes NO93 8601 1117 947