Finflags

IBAN calculator

Check an IBAN, or build one from the national account details. Everything is worked out on this page: nothing you type is sent anywhere.

Check an IBAN

Calculate an IBAN

An IBAN, the international bank account number, has three parts: a two-letter country code, two check digits and the national account details, known as the BBAN, or basic bank account number. Each country fixes its own length. A German or British IBAN runs to 22 characters, a French or Italian one to 27 and a Dutch one to 18.

How the check works

The calculator strips the spaces and compares the length with the one set for the country. It then reads the national part against that country’s format, because some positions may hold only digits while others also take letters.

The last test is the checksum from the international standard ISO 7064, the same one banks run. The first four characters move to the end, every letter becomes a two-digit number from A = 10 to Z = 35, and the long number that results is divided by 97. A valid IBAN leaves a remainder of 1.

The sample in the box, GB82 WEST 1234 5698 7654 32, shows the method at work. After the move and the conversion it reads 3214282912345698765432161182, and dividing that by 97 leaves 1, so the number passes. One mistyped digit, or two neighbouring digits typed in the wrong order, always breaks the result.

What a valid result does not prove

A number can pass every test and still lead nowhere. The calculator checks the structure only. Whether the account exists, is open or belongs to the person named on an invoice is a question for the banks. In the euro area the payer’s bank asks the payee’s bank whether the name matches the IBAN before a transfer goes out, a service called verification of payee, and British banks run a similar one under the name Confirmation of Payee.

The country code also says less than it seems. It names the country where the account is held, which may differ from the owner’s. A customer in Spain who signs up for the Avici card receives an Estonian IBAN.

SEPA and the EU are different lists

For a valid number the result also says whether the country belongs to SEPA, the Single Euro Payments Area, and whether the account sits in the EU. Switzerland and the UK are in SEPA, so accounts there send and receive euro transfers through it. Neither country is in the EU, though, and the EU ban on IBAN discrimination does not cover their accounts.

Building an IBAN from national details

The second form works the other way round. It takes a country and the national account details, sets the check digits to 00, runs the same calculation and subtracts the remainder from 98. For the sample above that gives 82. The finished IBAN comes back in groups of four, the way banks print it.

A built IBAN is only as good as the details typed in. Several countries, Spain and France among them, build check digits of their own into the national account number, and the calculator does not test them. A mistyped account number therefore still comes back with valid IBAN check digits, which is why the IBAN shown in the bank’s app or on a statement is the one to give an employer or a biller.