What you enter stays on this device.
Method and sources checked on by the Calkavo editorial team · Our method
An IBAN is valid when, after moving its first four characters to the end and replacing each letter with a number (A = 10, B = 11 and so on), the remainder of division by 97 is 1, as set out in ISO 13616.
Reading a UK IBAN
The sample IBAN that SWIFT publishes for the UK is GB82 WEST 1234 5698 7654 32. Every UK IBAN has 22 characters, and most of them are the sort code and account number you already know:
| Part | In the sample | What it is |
|---|---|---|
| Country code | GB | 2 letters (ISO) |
| Check digits | 82 | worked out from everything else (mod 97) |
| Bank code | WEST | 4 letters |
| Sort code | 123456 | 6 digits, written 12-34-56 at home |
| Account number | 98765432 | 8 digits |
Do you need an IBAN at all?
Not to pay someone in the UK, where the sort code and account number do the job. The IBAN comes in when money crosses a border, typically when you are paid from the euro area. Your bank shows yours in its app or on a statement.
Building an IBAN from a sort code
Open the second tab, keep “United Kingdom” and type the bank code, sort code and account number in one go. WEST12345698765432 gives GB82 WEST 1234 5698 7654 32. If your bank applies special rules, the IBAN on your statement is the one that counts.
Why an IBAN fails the check
Next to “Invalid IBAN”, the tool gives the reason.
- The length is wrong for the country, because a block of four has lost or gained a character. The message shows how many were expected and how many it read.
- The check digits do not match. One character is wrong (a letter O for a zero, an I for a 1), or two neighbours have been swapped.
- The country code does not exist or does not use IBANs; the United States is one example.
Spaces, hyphens, lower case and the word “IBAN” in front are ignored. Sending money outside the UK? The currency converter gives the amount at the ECB rate, before your bank's margin, and the mortgage calculator helps if the payment is a loan instalment on a property abroad.
IBAN lengths by country
ISO 13616 gives every country a fixed length. The IBANs in the table are dummy examples from the SWIFT registry, there to be tested.
| Country | Length | Example IBAN |
|---|---|---|
| Austria (AT) | 20 | AT61 1904 3002 3457 3201 |
| Belgium (BE) | 16 | BE68 5390 0754 7034 |
| France (FR) | 27 | FR14 2004 1010 0505 0001 3M02 606 |
| Germany (DE) | 22 | DE89 3704 0044 0532 0130 00 |
| Ireland (IE) | 22 | IE29 AIBK 9311 5212 3456 78 |
| Italy (IT) | 27 | IT60 X054 2811 1010 0000 0123 456 |
| Luxembourg (LU) | 20 | LU28 0019 4006 4475 0000 |
| Monaco (MC) | 27 | MC58 1122 2000 0101 2345 6789 030 |
| Netherlands (NL) | 18 | NL91 ABNA 0417 1643 00 |
| Poland (PL) | 28 | PL61 1090 1014 0000 0712 1981 2874 |
| Portugal (PT) | 25 | PT50 0002 0123 1234 5678 9015 4 |
| Spain (ES) | 24 | ES91 2100 0418 4502 0005 1332 |
| Switzerland (CH) | 21 | CH93 0076 2011 6238 5295 7 |
| United Kingdom (GB) | 22 | GB82 WEST 1234 5698 7654 32 |
The mod-97 check, worked through
Move the first 4 characters to the end, replace each letter with a number (A = 10, B = 11 … Z = 35) and divide by 97. A correct IBAN leaves a remainder of 1.
remainder( BBAN + country + check digits , 97 ) = 1
GB82 WEST 1234 5698 7654 32 becomes WEST12345698765432 GB82, then 3214282912345698765432161182 once W = 32, E = 14, S = 28, T = 29, G = 16 and B = 11 are swapped in. Divide by 97 and 1 is left over. A 28-digit number is beyond the precision of a calculator, but you can do the division in chunks on an ordinary calculator: take the first 9 digits, find the remainder after dividing by 97, write it in front of the next digits and repeat. A single wrong character always changes that remainder, and so does almost any swap of two neighbouring characters.
Method and sources
References used:
- ISO 13616-1:2020, International bank account number (IBAN)
- SWIFT, IBAN registry (structure by country)
This tool is checked by automated tests against known cases. Spotted a mistake? Report it on the contact page.
Last updated