IBAN Checker and Validator
Validate any IBAN step by step: country code, length, BBAN pattern and the mod-97 check digits. See which part is the bank code, branch and account number, and check a BIC / SWIFT code. Everything runs in your browser.
Validate an IBAN
Runs entirely in your browser. Nothing you type is sent, stored or tracked.
Check a BIC / SWIFT code
Checks the format of an 8 or 11 character BIC and explains each part. It does not look the code up in the SWIFT directory.
How the IBAN check works
An IBAN (International Bank Account Number, ISO 13616) wraps a national account number in a standard envelope: a two-letter country code, two check digits, then the country's Basic Bank Account Number (BBAN). The validator runs the same checks a bank runs before it accepts the number:
- Strip spaces and separators, convert to upper case.
- Check the country code against the SWIFT IBAN Registry, release 102 (June 2026).
- Check the length: every IBAN from one country has the same number of characters.
- Check each BBAN character against the country's pattern (digits, letters or either, position by position).
- Run the ISO 7064 mod-97 check: the remainder must be 1.
Worked example: the German registry specimen DE89 3704 0044 0532 0130 00
Move DE89 to the end: 370400440532013000DE89
Replace letters with numbers (D = 13, E = 14): 370400440532013000131489
Divide by 97: the remainder is 1, so the IBAN is valid. Change any single character and the remainder is no longer 1, which is why the check catches almost every typo.
IBAN vs BIC vs SWIFT code vs sort code vs routing number
These identifiers answer different questions. The IBAN says which account; the BIC says which bank. "SWIFT code" and "BIC" are the same thing: SWIFT is the organisation that registers BICs and runs the network that carries international payment messages.
| Identifier | Identifies | Format |
|---|---|---|
| IBAN | One bank account | Up to 34 characters: country code, 2 check digits, national account number (BBAN) |
| BIC / SWIFT code | A bank, or one of its branches | 8 or 11 characters (ISO 9362) |
| Sort code | A UK or Irish bank branch | 6 digits, used with an 8-digit account number |
| ABA routing number | A US bank | 9 digits, used with an account number of varying length |
The UK IBAN contains the sort code: in GB29 NWBK 6016 1331 9268 19, characters 5-8 are the bank code from the BIC (NWBK), 9-14 are the sort code (601613) and 15-22 are the account number. See the UK IBAN format.
How many digits are in an IBAN?
Between 15 and 33 characters, depending on the country: Norway has the shortest (15) and Russia the longest (33). ISO 13616 allows up to 34. Within one country the length is fixed, so a missing or extra digit is caught before the checksum is even calculated. Many countries use only digits after the country code; others, such as the UK, the Netherlands and Malta, also put letters in the BBAN.
Common lengths: Norway 15, Belgium 16, Netherlands 18, Germany 22, United Kingdom 22, Spain 24, France 27, Italy 27, Poland 28, Malta 31.
IBAN formats by country
All 89 countries in the SWIFT IBAN Registry, release 102 (June 2026), 42 of them in SEPA. Lengths, structures and specimen IBANs come from the registry; specimens are published samples, not real accounts. BBAN notation: n = digits, a = upper-case letters, c = letters or digits.
Experimental IBAN formats (not in the registry)
These countries use IBAN-style account numbers locally but have not registered them with SWIFT, so banks elsewhere may refuse them. The validator checks their length, pattern and mod-97 digits and flags them as experimental. Algeria is left out because published sources disagree on its length.
| Country | Code | Length | SEPA |
|---|---|---|---|
| Angola | AO | 25 | No |
| Burkina Faso | BF | 28 | No |
| Benin | BJ | 28 | No |
| Central African Republic | CF | 27 | No |
| Republic of the Congo | CG | 27 | No |
| Côte d'Ivoire | CI | 28 | No |
| Cameroon | CM | 27 | No |
| Cabo Verde | CV | 25 | No |
| Gabon | GA | 27 | No |
| Equatorial Guinea | GQ | 27 | No |
| Guinea-Bissau | GW | 25 | No |
| Iran | IR | 26 | No |
| Comoros | KM | 27 | No |
| Morocco | MA | 28 | No |
| Madagascar | MG | 27 | No |
| Mali | ML | 28 | No |
| Mozambique | MZ | 25 | No |
| Niger | NE | 28 | No |
| Senegal | SN | 28 | No |
| Chad | TD | 27 | No |
| Togo | TG | 28 | No |
BIC code format
A BIC (Business Identifier Code, ISO 9362), also called a SWIFT code or SWIFT BIC, has 8 or 11 characters:
- Characters 1-4, institution code: usually four letters derived from the bank's name (DEUT for Deutsche Bank).
- Characters 5-6, country code: the ISO 3166 country (DE).
- Characters 7-8, location code: letters or digits for the city or office (FF for Frankfurt). A 0 in position 8 marks a test BIC.
- Characters 9-11, branch code (optional): a specific branch. XXX, or no branch code, means the primary office, so DEUTDEFF and DEUTDEFFXXX are the same institution.
In SEPA, payers and payees only need the IBAN; banks derive the BIC themselves. Outside SEPA, an international transfer usually needs both the IBAN and the receiving bank's BIC.
Why a direct debit fails even with a valid IBAN
An IBAN validator only proves the number is well formed. A direct debit can still come back unpaid because of what sits behind the account:
- Account closed or moved: the IBAN was valid when the mandate was signed (SEPA reason code AC04, Bacs ARUDD code B).
- Insufficient funds: the most common soft failure, and the one where the timing of the next attempt matters most (SEPA AM04, Bacs ARUDD 0 "refer to payer").
- Mandate problems: no valid mandate, a cancelled instruction or a payer who refused the debit (SEPA MD01 and MS02, Bacs ARUDD 1).
- Account cannot be debited: savings accounts and some e-money or blocked accounts reject direct debits outright (SEPA AC06 and AG01).
- Refunds after the fact: under the SEPA Core scheme a payer can reclaim an authorised debit for 8 weeks, so a collection that "succeeded" can still reverse.
Look up any return code in the SEPA Direct Debit reason codes and Bacs Direct Debit codes, or see how Slicker handles failed direct debits.
Frequently asked questions
How do I validate an IBAN?
Remove spaces and convert to upper case, check that the first two letters are a country that issues IBANs, check the length for that country, check each character of the BBAN against the country pattern, then run the ISO 7064 mod-97 check: move the first four characters to the end, replace letters with numbers (A = 10 to Z = 35) and divide by 97. A valid IBAN leaves a remainder of 1.
How many digits are in an IBAN?
It depends on the country. IBANs in the SWIFT IBAN Registry run from 15 characters (Norway) to 33 characters (Russia), and the ISO 13616 maximum is 34. Germany uses 22, the United Kingdom 22, France 27 and Spain 24. Within one country the length never varies.
What is the difference between an IBAN and a SWIFT or BIC code?
An IBAN identifies one bank account. A BIC, also called a SWIFT code, identifies a bank or one of its branches and has 8 or 11 characters. SWIFT is the organisation that registers BICs, so the two names mean the same code. Inside SEPA the IBAN alone is enough; outside it, international transfers usually need both.
What is the BIC code format?
A BIC has 8 or 11 characters: a 4-character institution code, a 2-letter ISO country code, a 2-character location code and an optional 3-character branch code. XXX as the branch code, or no branch code at all, means the primary office. Example: DEUTDEFF.
Does a valid IBAN mean the bank account exists?
No. Validation proves the IBAN is well formed and that its check digits match, which catches almost all typos. It cannot tell whether the account is open, who owns it or whether it accepts direct debits. Only the bank, or a name-check service such as Verification of Payee in the EU or Confirmation of Payee in the UK, can confirm that.
Is it safe to enter an IBAN in this checker?
Yes. The validator runs entirely in your browser with JavaScript. The IBAN you type is not sent to a server, not stored and not recorded in analytics.
Losing subscription revenue to failed direct debits?
Slicker reads the reason code of every failed SEPA, Bacs or card payment and decides whether, when and how to retry, or when only the customer can fix it. Smart retries run on your existing billing platform, and you only pay when we outperform your current setup in a 50/50 test.