Skip to content

IBAN checker and check digit calculator

This IBAN checker takes the number exactly as you copied it, spaces included. It checks the length for the country and the two check digits, and if something is wrong it tells you what.

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.

Breakdown of the sample IBAN GB29 NWBK 6016 1331 9268 19: country code, two check digits, then the national account number. To check it, move the first 4 characters to the end, replace letters with numbers, and the remainder after dividing by 97 must be 1.

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:

PartIn the sampleWhat it is
Country codeGB2 letters (ISO)
Check digits82worked out from everything else (mod 97)
Bank codeWEST4 letters
Sort code1234566 digits, written 12-34-56 at home
Account number987654328 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.

CountryLengthExample IBAN
Austria (AT)20AT61 1904 3002 3457 3201
Belgium (BE)16BE68 5390 0754 7034
France (FR)27FR14 2004 1010 0505 0001 3M02 606
Germany (DE)22DE89 3704 0044 0532 0130 00
Ireland (IE)22IE29 AIBK 9311 5212 3456 78
Italy (IT)27IT60 X054 2811 1010 0000 0123 456
Luxembourg (LU)20LU28 0019 4006 4475 0000
Monaco (MC)27MC58 1122 2000 0101 2345 6789 030
Netherlands (NL)18NL91 ABNA 0417 1643 00
Poland (PL)28PL61 1090 1014 0000 0712 1981 2874
Portugal (PT)25PT50 0002 0123 1234 5678 9015 4
Spain (ES)24ES91 2100 0418 4502 0005 1332
Switzerland (CH)21CH93 0076 2011 6238 5295 7
United Kingdom (GB)22GB82 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:

This tool is checked by automated tests against known cases. Spotted a mistake? Report it on the contact page.

Last updated

Frequently asked questions

Does a valid IBAN prove the account exists?
No. It shows the number is well formed and nothing more; only the bank can confirm the account and who holds it.
I copied it from an invoice and it says invalid.
Read the reason shown under the result first. “Length” means a character is missing or extra, so count each block of four. “Check digits” means one character is wrong, and the usual suspects are O for zero and I for 1. If you still cannot spot it, ask the payee to send the IBAN again rather than guessing.
Do I need an IBAN to pay someone in the UK?
No, a domestic payment only needs the sort code and account number.
How long is an IBAN?
It depends on the country: 22 characters in the UK and Ireland, 27 in France, and anything from 15 (Norway) to 33 (Russia) elsewhere.
What if two of the check digits are swapped?
It is caught. GB28 WEST 1234 5698 7654 32, with the 8 and the 2 the wrong way round, fails the check.
Why are there letters in my IBAN?
Every IBAN starts with the country code, and a UK one adds a 4-letter bank code after the check digits (WEST in the sample).
Do I also need the BIC?
For euro transfers within the SEPA area, the IBAN is usually enough. The BIC (or SWIFT code) identifies the bank, not the account.
Is it safe to paste my IBAN here?
Yes. The number stays on your device: the page neither sends it anywhere nor stores it.