How to Validate an IBAN: Complete Verification Guide

Updated March 2026 — IBAN structure, check digit algorithm and how to avoid payment errors

Free validator: Need to check an IBAN right now? Use our Free IBAN Validator — checks format, check digit and country in an instant, no sign-up required.

1. What is an IBAN and why it matters

An IBAN (International Bank Account Number) is an internationally standardized alphanumeric code that uniquely identifies a bank account. Defined by ISO 13616, it’s used in over 80 countries to make money transfers safer and faster, both domestically and internationally.

Before IBANs, each country had its own bank account format: Italy used ABI+CAB+account number, Germany had BLZ+Kontonummer, France the RIB. This fragmentation caused frequent errors in cross-border transfers. The IBAN solved this by creating a single format recognized by every bank.

Today, IBANs are mandatory for all SEPA (Single Euro Payments Area) transfers and most international wire transfers. Without a valid IBAN, your payment will be rejected or delayed — costing you time and money.

2. Structure of an IBAN code

Every IBAN follows a precise structure made of four parts:

Example — UK IBAN:

GB29 NWBK 6016 1331 9268 19

GB — Country code (ISO 3166-1 alpha-2)

29 — Check digits (validation number)

NWBK — Bank code (NatWest)

601613 — Sort code (branch identifier)

31926819 — Account number

The total length varies by country: the UK uses 22 characters, Germany 22, France 27, Italy 27. The BBAN (Basic Bank Account Number, the part after the check digits) follows each country’s national banking rules.

Component Length Content
Country code2 lettersISO country identifier (GB, DE, FR, IT...)
Check digits2 digitsCalculated using MOD-97 algorithm to catch errors
BBANVariable (max 30)National bank account details (bank, branch, account)

3. How the check digit works (MOD-97)

The check digit is the heart of IBAN validation. It uses the MOD-97 algorithm (ISO 7064), which catches 98% of transcription errors, including swapping two adjacent digits.

Here’s how the algorithm works:

  1. Move the first 4 characters (country code + check digits) to the end
  2. Convert all letters to numbers: A=10, B=11, C=12... Z=35
  3. Calculate modulo 97 of the resulting number
  4. If the result is 1, the IBAN is valid

Example with IBAN GB29 NWBK 6016 1331 9268 19:

  1. Rearrange: NWBK60161331926819GB29
  2. Convert letters: 232111601613319268191611 29
  3. 232111601613319268191611 29 MOD 97 = 1 → Valid IBAN

This algorithm is remarkably effective: even a single wrong digit or letter will cause the modulo 97 check to fail. That’s why banks use it as the first filter before processing any transfer.

4. How to validate an IBAN step by step

Complete IBAN validation involves multiple levels of checking:

Level 1 — Format:

Level 2 — Length:

Level 3 — MOD-97 check digit:

Level 4 — BBAN structure (optional):

5. IBAN length by country

Here are the IBAN lengths for the most common countries:

Country Code Length Example
United KingdomGB22GB29NWBK60161331926819
GermanyDE22DE89370400440532013000
FranceFR27FR7630006000011234567890189
SpainES24ES9121000418450200051332
ItalyIT27IT60X0542811101000000123456
NetherlandsNL18NL91ABNA0417164300
SwitzerlandCH21CH9300762011623852957
BelgiumBE16BE68539007547034
AustriaAT20AT611904300234573201
PortugalPT25PT50000201231234567890154

For the complete list of all 80+ countries that use IBANs, our online validator supports every single format.

6. Common mistakes and how to avoid them

7. Free Online IBAN Validator

Verify any IBAN in one second with our free tool:

Validate Your IBAN →

Enter the IBAN code: our validator checks format, country-specific length, MOD-97 check digit and displays bank information. Free, no sign-up, supports 80+ countries.

Also check out: the Invoice Generator to create professional invoices with your bank details, and the VAT Calculator for precise tax calculations. Explore all free ANIMA tools.

✎ Suggest a change

Frequently Asked Questions