Italiano

How an IBAN is built

Twenty-seven characters that look random actually follow a precise order. Knowing it helps you read them, dictate them and notice straight away when something is wrong.

Updated on 1 December 2026

What an IBAN is

IBAN stands for International Bank Account Number. It is defined by ISO 13616 and, as the official registry explains, it lets account details be exchanged in a machine-readable form, making payments between countries easier. The Bank of Italy, in its current account guide updated in February 2026, describes it as a kind of “address” of the account: the code that identifies it uniquely.

Every country that adopts the IBAN registers its own format with SWIFT, which ISO designated as registration authority in 2006. Only a country’s national standards body or central bank can ask to register or change a format. The result is the IBAN Registry: release 103, of September 2026, contains 89 national formats.

The three parts of every IBAN

According to the registry, every IBAN is made of:

  1. the country code, two letters under ISO 3166-1: IT for Italy, DE for Germany, GB for the United Kingdom;
  2. two check digits, calculated with the MOD 97-10 algorithm of ISO/IEC 7064;
  3. the BBAN (Basic Bank Account Number), the national account details, up to thirty alphanumeric characters. The BBAN has a fixed length in each country and always contains, in a fixed position, an identifier of the bank.

That is why IBAN length varies between countries but is always the same within one country. In the current registry it ranges from 15 characters for Norway to 33 for Russia. The Bank of Italy’s public-education page gives Norway (15) and Malta (31) as the extremes; more recent registry releases also contain longer formats, such as Saint Lucia (32) and Russia (33). The country table lists every length in the registry. The United Kingdom and Germany both use 22 characters, the Netherlands 18, Switzerland 21.

An Italian IBAN, character by character

In Italy the IBAN has 27 characters. Take the example published in the SWIFT registry: IT60 X054 2811 1010 0000 0123 456.

The registry confirms the positions: in the Italian BBAN the bank identifier occupies characters 2 to 6 and the branch identifier characters 7 to 11. The registered structure is “1!a5!n5!n12!c”: one letter, five digits, five digits and twelve alphanumeric characters. The tool on the home page uses exactly these rules: if a letter appears where the ABI should be, it says so.

How the check digits work

The two digits after the country code are not random. The method, described in ISO/IEC 7064 and referenced by the registry, works like this: move the first four characters to the end, replace each letter with a number (A = 10, B = 11, up to Z = 35) and divide the resulting huge number by 97. If the remainder is 1, the check digits are consistent.

The check is very effective against typing errors. We tested it on the 89 official registry examples, changing one character at a time: all 16,452 substitutions of a digit by another digit and all 8,175 substitutions of a letter by another letter are detected. It is not infallible, though. Of 1,556 swaps of two neighbouring characters, 2 pass the check. When a letter is replaced by a digit or the other way round, 457 cases out of 50,798 go undetected, including 10 of the 1,849 swaps between look-alike characters such as 0 and O or 1 and I. That is few, but enough to show why you should look at the IBAN rather than just trust “valid”.

Paper and electronic format

The registry distinguishes two ways of writing the same IBAN. In the electronic format the characters run together; that is what you enter in online banking forms. In the paper format, meant to be read by a person, the characters are split into groups of four separated by a space. Almost all registry examples are written this way. The exceptions are Burundi, Libya, El Salvador and the Holy See, whose registry examples use different groupings. For reading, groups of four remain the simplest method, and that is what the tool uses.

What an IBAN does not contain

An IBAN does not contain the account holder’s name. It does not tell you whether the account is active. It also does not include the BIC (the bank’s SWIFT code), which is a separate code. So no website can legitimately tell you who an IBAN belongs to. Your bank checks the name when you make the transfer, through Verification of Payee: see the safety guide.