
The Iban number Spain, also known as the International Bank Account Number, is a unique code assigned to a bank account in Spain.
It's used for international transactions, allowing you to send and receive money across borders.
The Iban number Spain consists of 20 characters, including letters and numbers, and is divided into four parts: country code, bank code, branch code, and account number.
This unique code helps ensure that transactions are processed correctly and securely.
What is an IBAN?
An IBAN is an acronym of International Bank Account Number, originally developed to facilitate payments within the European Union, but now applied globally.
The IBAN format is standardized in the ISO 13616, making it a widely recognized and accepted standard.
An IBAN is unique in the whole world, and you cannot find two different accounts in the same country or in different countries with the same IBAN.
The length of the IBAN is variable depending on the country, but it is fixed in a single country, as seen in the examples of French and German IBANs, which contain exactly 27 and 22 characters, respectively.
An IBAN is used to identify an account internationally, much like an international phone number, and it uniquely identifies a bank account regardless of where it is held.
IBAN Structure
An IBAN number in Spain is made up of three main parts: the country code, check digits, and Basic Bank Account Number (BBAN).
The country code is two letters, using the ISO 3166-1 alpha-2 standard.
The check digits are two digits that represent the checksum of the bank account number.
The BBAN is up to 30 alphanumeric characters, and its length is country-specific.
IBANs are traditionally expressed in groups of four characters separated by spaces, but when transmitted electronically, spaces are omitted.
Here's a breakdown of how the example Irish IBAN is formatted:
Permitted IBAN characters are the digits 0 to 9 and the 26 Latin alphabetic characters A to Z.
IBAN Validation
IBAN validation is a crucial step in ensuring the accuracy of international bank transfers. The algorithm for IBAN validation involves converting the IBAN into an integer and performing a basic mod-97 operation, as described in ISO 7064.
If the remainder equals 1, the check digit test is passed, and the IBAN might be valid. This process is used to detect errors such as omitted, duplicated, mistyped, or transposed characters in the routing destination and account number.
To validate an IBAN, you can extract the country code and the BBAN from the received IBAN to compute the two check digits and compare the results with the check digits received. However, a valid IBAN does not guarantee that the BBAN is valid.
Here are some common check digit formats used in various countries:
Basic Bank Account
The Basic Bank Account Number (BBAN) format varies from country to country, decided by the national central bank or designated payment authority.
Each country can have a different national routing/account numbering system, which can include up to a maximum of 30 alphanumeric characters.
The BBAN must be of a fixed length for the country and comprise case-insensitive alphanumeric characters.
It includes the domestic bank account number, branch identifier, and potential routing information.
There is no consistency between the formats adopted by different countries, which can make BBAN validation more complex.
BBANs used within a country are not required to be of a pre-defined length under the SWIFT system.
Validate and Check
To validate an IBAN, you need to perform a basic mod-97 operation, as described in ISO 7064. This operation involves converting the IBAN into an integer and computing the remainder when divided by 97.
The IBAN is first rearranged by moving the four initial characters to the end of the string. Then, each letter is replaced with two digits, expanding the string as necessary. For example, A or a is replaced with 10, B or b is replaced with 11, and Z or z is replaced with 35.
The string is then converted to an integer, ignoring leading zeroes, and the remainder is computed when divided by 97. If the remainder is 1, the check digit test is passed and the IBAN might be valid.
Here's a step-by-step example of how to validate an IBAN:
- Check that the total IBAN length is correct as per the country. If not, the IBAN is invalid.
- Replace the two check digits by 00 (e.g., GB00 for the UK).
- Move the four initial characters to the end of the string.
- Replace the letters in the string with digits, expanding the string as necessary.
- Convert the string to an integer (i.e. ignore leading zeroes).
- Calculate mod-97 of the new number, which results in the remainder.
- Subtract the remainder from 98 and use the result for the two check digits. If the result is a single-digit number, pad it with a leading 0 to make a two-digit number.
By following these steps, you can validate an IBAN and ensure that it is correct.
How Long Is a Unit?

A unit can have between 16 and 34 alphanumeric characters, depending on the country in which the account is opened in.
In the UK, a unit will always begin with the letters GB followed by the numbers 29.
IBAN Formats and Verification
IBAN formats can be complex, but understanding the basics can help you verify an IBAN number. An IBAN typically consists of a two-character ISO country code, followed by a series of alphanumeric characters that represent the bank and account information.
The IBAN format varies by country, with some countries having more complex formats than others. For example, in France, the IBAN format is typically 16-18 characters long, while in Germany, it is 14-18 characters long.
Here are some examples of IBAN formats for different countries:
Verifying an IBAN number involves checking the bank and branch codes, as well as the account number, to ensure they are correct. This can be done using an online IBAN checker or by referencing the IBAN Plus directory provided by SWIFT.
Why Use the?
Using the IBAN number can save you a lot of hassle, especially when making international transfers. It helps businesses and governments understand different account structures between countries, reducing delays in transfer processing.
Banks can contact their customers multiple times to complete payment orders to foreign countries, which is frustrating for everyone involved. The use of IBAN overcomes this major drawback.
International transfers can be expensive and time-consuming, but using the IBAN number can make a big difference. It helps verify the correct Bank Identifier Code (BIC) for the respective bank and branch, ensuring effective routing of the payment.
You might lose money on bad exchange rates and hidden fees when sending or receiving international transfers with your bank. This is why it's recommended to use Wise (formerly TransferWise), which offers a great exchange rate and low upfront fee.
Formats by Country
IBAN formats vary by country, with each country having its own unique format. The IBAN format for a country is determined by its two-character ISO country code.
In some countries, the BBAN (Basic Bank Account Number) has its own check digits that use the same algorithm as the IBAN check digits, making the "kk" after the country code a constant for that country.
The BBAN format is expressed in terms of uppercase alpha characters (A-Z), numeric characters (0-9), and mixed-case alphanumeric characters (a-z, A-Z, 0-9), denoted by "a", "n", and "c" respectively.
Here's a breakdown of the IBAN formats for some countries:
Note that the above table only shows a few examples of IBAN formats by country, and there are many more countries with their own unique formats.
International Payment Practices
IBAN is widely used in international payments, but it's not a global standard. Over 70 countries have adopted the IBAN numbering system.
Most of Europe uses IBAN codes, as do some areas of Africa, Central America, and the Middle East. This makes it easier for businesses and individuals to make international transactions.
However, notable exceptions include the USA, Australia, and New Zealand, where IBAN numbers are not used for foreign payments. This can make transactions more complex for those countries.
Processing
Processing an international payment requires careful validation of the IBAN to ensure accuracy and prevent errors. The IBAN design aims to enable validation at the point of data entry.
A computer program can validate the country code, which is a crucial part of the IBAN. The number of characters in the IBAN must correspond to the number specified for the country code.
The program can also verify the BBAN format specified for the country code, which is essential for international payments. This ensures that the account number, bank code, and country code combination is compatible with the check digits.
The check digits are calculated using MOD-97-10, a standard specified by ISO/IEC 7064:2003. This standard can detect various types of errors, including single substitution errors, single transposition errors, shift errors, and double substitution errors.
The underlying rules for IBANs state that the account-servicing financial institution should issue the IBAN, as multiple IBANs could be generated from the same account and branch numbers. This is especially important in cases where 00 is a valid check digit, but 97 is not.
The UN CEFACT TBG5 has published a free IBAN validation service in 32 languages for 57 countries that have adopted the IBAN standard. They have also made the Javascript source code of the verification algorithm publicly available.
International Payment Practices
IBAN numbers are used in over 70 countries, but not worldwide.
The USA, Australia, and New Zealand are notable exceptions to the use of IBAN numbers for international payments.
Most of Europe uses IBAN codes, as do some areas of Africa, Central America, and the Middle East.
In some countries, IBAN numbering is mandatory, while in others it's simply recommended.
EEA and Territories
In the European Economic Area, banks are required to publish account numbers using both the IBAN format and the nationally recognised identifiers.
Most countries in Europe have adopted the IBAN format for account numbers, making it a widely accepted standard.
Banks in the Caribbean Netherlands do not use the IBAN.
The use of the IBAN is mandatory in the European Economic Area, ensuring a consistent and efficient payment process.
The British Overseas Territories have varying banking systems, with some territories too small to warrant a banking system.
As of April 2013, no other British Overseas Territories have chosen to use the IBAN, except for Gibraltar and the Crown Dependencies.
Bermuda, a British Overseas Territory, has a thriving financial sector.
Non-EEA
In non-European countries, banks have implemented the IBAN format for account identification, but the degree of verification varies depending on the transmitting bank's software.
Some non-European banks might not recognize IBAN or check its validity before sending a transfer. This is expected to change over time as more banks adopt the standard.
Banks in the United States do not use IBAN for U.S. accounts, instead using ABA routing transit numbers.
In Canada, financial institutions have not adopted IBAN and use routing numbers for domestic transfers and SWIFT for international transfers.
Australia and New Zealand also don't use IBAN, opting for Bank State Branch codes for domestic transfers and SWIFT for international transfers.
Ukraine is an example of a country that previously used a non-standard IBAN format, but all banks have now switched to the official standard.
Frequently Asked Questions
What is the difference between IBAN and account number in Spain?
In Spain, an account number is used for domestic transactions, while an IBAN is required for international transactions within the European Union. For international payments outside the EU, both IBAN and SWIFT/BIC code are necessary.
Featured Images: pexels.com