GBWise

IBAN Calculator: Generate and Validate International Bank Numbers

Expert Reviewed by GBWise Team • November 10, 2026
Published: February 3, 2026
14 min read

An IBAN calculator checks an International Bank Account Number before money is sent, so a typing mistake is caught while it is still cheap to fix. It can validate an IBAN you have been given, and it can show how one is built from ordinary UK bank details. This guide explains what an IBAN is, the exact structure of a UK IBAN, how the check digits work, and when you actually need one.

What Is an IBAN?

IBAN stands for International Bank Account Number. It is an internationally agreed way of identifying one bank account in one country, defined by the ISO 13616 standard. Instead of sending a separate sort code and account number, the IBAN packs the country, the bank, the branch and the account into a single string that banks in other countries can read and check automatically.

An IBAN is not a new account. It is a standardised way of writing down an account you already have, so it can be used for payments across borders. Your UK bank can tell you your IBAN, and it usually appears on your bank statements and in your online banking app.

IBANs are used across Europe and in many countries beyond it, including parts of the Middle East, Africa and South America. The SWIFT IBAN Registry’s September 2026 release covers 89 countries and territories. Some large countries do not use IBAN at all, including the USA, Canada and Australia, which use their own routing systems instead.

The UK IBAN Structure: 22 Characters

A UK IBAN is always 22 characters long. Every part has a fixed position and a fixed length:

PartCharactersLengthExample
Country codeGB2 lettersGB
Check digits292 numbers29
Bank identifierNWBK4 lettersNWBK
Sort code6016136 numbers601613
Account number319268198 numbers31926819
Full UK IBANGB29 NWBK 6016 1331 9268 1922 charactersGB29 NWBK 6016 1331 9268 19

The example above, GB29 NWBK 6016 1331 9268 19, is a published illustrative example only. It does not belong to a real account and must never be used to send a payment. Your own IBAN will be unique to you.

The parts break down as follows:

  • Country code (GB): the two-letter ISO country code for the United Kingdom.
  • Check digits (29): two numbers calculated from the rest of the IBAN. They are a checksum, not part of your account number, and they are what makes an IBAN self-checking.
  • Bank identifier (NWBK): four letters identifying the bank. In this example NWBK stands for NatWest. Other UK banks have their own four-letter codes.
  • Sort code (601613): the six-digit sort code of the branch holding the account, written without dashes inside an IBAN. A UK sort code is six digits, normally written as xx-xx-xx, so 60-16-13 becomes 601613.
  • Account number (31926819): the eight-digit UK account number.

Together the bank identifier, sort code and account number form the Basic Bank Account Number (BBAN) — the domestic part of the IBAN. In the UK the BBAN is 18 characters: 4 letters plus 6 digits plus 8 digits. IBAN lengths vary by country, from 15 characters (Norway) to 34 characters, because each country registers its own BBAN format and length.

How the Check Digits Work: The Mod-97 Check

The two check digits are the clever part of an IBAN. They are calculated so that the whole IBAN, read as one long number, leaves a remainder of exactly 1 when divided by 97. This is the MOD 97-10 method from ISO 7064, and it is the same test every IBAN calculator runs.

How validation works, step by step

  1. Move the first four characters to the end. For GB29 NWBK 6016 1331 9268 19, this gives NWBK60161331926819GB29.
  2. Turn every letter into a number. A is 10, B is 11, C is 12, and so on through Z at 35. So GB becomes 1611 and NWBK becomes 23312021.
  3. Divide the resulting long number by 97 and look at the remainder.
  4. A remainder of 1 means the IBAN is valid. Any other remainder means at least one character is wrong.

This single check catches every single-character error and every swap of two neighbouring digits. For example, changing the last digit of the example above from 9 to 8 changes the remainder from 1 to 71, and swapping the last two digits changes it to 5 — both correctly flagged as invalid. That is why checking an IBAN before sending money is worth the few seconds it takes.

How check digits are created

When a bank issues an IBAN, it works the calculation backwards. It takes the country code and the BBAN, puts 00 where the check digits will go, runs the same rearrangement and division by 97, and subtracts the remainder from 98. For the example above, the remainder with 00 in place is 69, and 98 minus 69 gives check digits of 29 — which is why the example IBAN reads GB29. You do not need to do this by hand; the point is that the two digits are not random, they are mathematically tied to everything else in the number.

How to Generate an IBAN

Strictly speaking, you do not generate your own IBAN — your bank does. An IBAN calculator can show how one is built, but the only IBAN that counts is the one your bank has registered for your account. If you need yours, ask your bank, check your statement, or look in your online banking app. Never invent an IBAN, and never guess the check digits.

In general terms, generation follows the same maths as validation in reverse:

  1. Start with the country code and the BBAN (bank identifier, sort code and account number).
  2. Put 00 in the check-digit position.
  3. Rearrange the string, convert letters to numbers (A is 10 through Z at 35), and divide by 97.
  4. Subtract the remainder from 98. That result is the two check digits.

If the result is a single digit, a leading zero is added so the check digits are always two characters. This is how the example IBAN above gets its 29.

How to Validate an IBAN

Use the IBAN Validator to check any IBAN before you send money. Paste or type the full IBAN, including the country code, and run the check. Spaces between groups of four characters do not matter — the tool ignores them — but every letter and digit must be exactly as given to you.

A good validation checks four things, in this order:

  1. Country: the first two letters are a real country code in the IBAN Registry.
  2. Length: the total length matches the length registered for that country (22 characters for a UK IBAN).
  3. Format: each part has the right mix of letters and digits in the right positions.
  4. Check digits: the mod-97 calculation leaves a remainder of 1.

All four must pass. If any one fails, do not send the payment. Ask the recipient to confirm the IBAN, and check it against the original document rather than a retyped copy — most IBAN errors come from copying, not from the bank.

What validation proves — and what it does not

A valid IBAN proves the number is well formed and almost certainly free of typing errors. It does not prove the account exists, is open, belongs to the person you think it does, or can receive your payment. Only the recipient’s bank can confirm that. A valid format is a necessary check, not a guarantee of a successful payment. If the name on the account does not match the name you were given, stop and check with the recipient before sending anything.

IBAN vs SWIFT/BIC vs Sort Code and Account Number

These three things are often confused because they appear together on international payment forms. They do different jobs:

IdentifierWhat it identifiesExampleWhen you need it
IBANOne specific bank accountGB29 NWBK 6016 1331 9268 19International payments to an IBAN country
SWIFT/BICOne specific bankNWBKGB2L (illustrative)Usually alongside the IBAN, to identify the bank
Sort code + account numberOne UK account, for UK payments60-16-13 and 31926819Payments inside the UK
  • IBAN identifies the individual account. It is the account number in international format.
  • SWIFT/BIC (Bank Identifier Code) identifies the bank itself, like a postal address for the bank. A SWIFT/BIC is 8 or 11 characters. For payments to the UK from abroad you will usually be asked for both the IBAN and the SWIFT/BIC.
  • Sort code and account number are the UK domestic equivalents. They work for payments inside the UK, but a bank abroad cannot use them on their own — that is what the IBAN is for. The UK IBAN simply contains your sort code and account number inside it. For more detail on the domestic parts, see Sort Code and Bank Code: A Clear UK Guide for Everyday Banking.

When Do You Need an IBAN?

You need an IBAN when money is crossing a border to or from a country that uses IBAN. Common situations include:

  • Receiving money from abroad: a sender overseas will ask for your IBAN, and often your SWIFT/BIC as well.
  • Sending money abroad: you will need the recipient’s IBAN for payments to Europe and the many other countries that use the system.
  • Paying an overseas invoice or freelancer: businesses usually print their IBAN on invoices.
  • Receiving a salary or pension from another country: the payer will need your IBAN to route the payment.
  • Students and workers abroad: an international student receiving money from home, or a worker paid from another country, will normally be asked for an IBAN.

You do not need an IBAN for payments inside the UK. A domestic bank transfer, Direct Debit or standing order uses the sort code and account number only. You also do not need an IBAN to send money to the USA, Canada or Australia, because those countries use their own systems (routing numbers and SWIFT/BIC) rather than IBAN.

Common IBAN Errors and How to Avoid Them

Even one wrong character can send a payment to the wrong place or cause it to fail. The most common mistakes are:

  • Missing or extra characters: a UK IBAN must be exactly 22 characters. Count them if the number looks short or long.
  • Wrong country code: GB for the United Kingdom is the most common UK error — check it is GB, not UK.
  • Transposed digits: swapping two neighbouring digits, for example typing 31 instead of 13. The mod-97 check catches this, which is why you should always validate.
  • Letter and digit mix-ups: the letter O typed as the number 0, or the letter I typed as the number 1. IBANs use letters only where the format allows them.
  • Old or closed account details: an IBAN for an account that has been closed will still pass the format check, because the check digits only test the number itself. Always confirm the account is still open with the recipient.
  • Using a printed example: example IBANs from guides and bank websites, including the ones in this article, are illustrative only. Never use one to send a real payment.
  • Spaces and formatting: spaces between groups of four characters are only for readability. When you paste an IBAN into a form, spaces are normally ignored, but do not add or remove any letters or digits.

The simplest protection is routine: validate every IBAN with a calculator before the first payment to a new recipient, and keep the original document the IBAN came from so you can compare it character by character.

Is It Safe to Share Your IBAN?

Sharing your IBAN is much safer than sharing your card details or online banking password, but it is not risk-free. Your IBAN on its own cannot be used to take money out of your account — a payment needs your authorisation. That is why businesses print their IBAN on invoices and why it appears on bank statements.

Still, treat it with care:

  • Share it only with people and businesses you are actually expecting to pay you.
  • Never share it together with your online banking password, PIN, or one-time passcodes. Your bank will never ask for those by email, text or phone.
  • If someone contacts you out of the blue asking for your IBAN, check who they are through a channel you trust before replying.
  • Money held in a UK bank account is protected by the Financial Services Compensation Scheme (FSCS) up to £120,000 per person per authorised firm, from 1 December 2025 (£240,000 for joint accounts). That protects your deposits if the firm fails; it does not reverse a payment you authorised to the wrong account, so checking the IBAN first still matters.

Frequently Asked Questions

What does an IBAN calculator do?
An IBAN calculator validates an IBAN, or shows how one is built, by checking the country code, the length, the format and the mod-97 check digits. It catches typing mistakes before a payment is sent, but it cannot confirm the account exists or belongs to a particular person.

What is an IBAN?
An IBAN (International Bank Account Number) is a standardised way of writing a bank account number for international payments, defined by ISO 13616. It packs the country code, two check digits, the bank identifier, the sort code and the account number into one string. A UK IBAN is 22 characters long.

How long is a UK IBAN?
A UK IBAN is always 22 characters: 2 letters for the country code (GB), 2 check digits, 4 letters for the bank identifier, 6 digits for the sort code and 8 digits for the account number. IBAN lengths vary by country, from 15 to 34 characters.

How do I find my own IBAN?
Your IBAN is shown on your bank statements and in your online banking app or internet banking, usually under your account details. Your bank can also give it to you by phone or in branch. Do not guess it — the check digits have to match the rest of the number exactly.

How do the IBAN check digits work?
The two check digits are a checksum calculated from the rest of the IBAN using the MOD 97-10 method. The first four characters are moved to the end, letters are converted to numbers (A is 10 through Z at 35), and the result is divided by 97. A valid IBAN leaves a remainder of exactly 1. A single wrong digit or a swapped pair of digits changes the remainder, so the error is caught.

Can an IBAN calculator guarantee my payment will succeed?
No. A calculator only proves the IBAN is well formed and free of typing errors. Whether the payment succeeds also depends on the account being open, able to receive the payment, and belonging to the person you intend to pay. Always confirm the recipient’s name and account details separately.

Is an IBAN the same as a SWIFT/BIC code?
No. An IBAN identifies one specific bank account, while a SWIFT/BIC code identifies the bank itself. For an international payment you will usually need both: the IBAN for the account and the SWIFT/BIC for the bank.

Do I need an IBAN to send money within the UK?
No. Payments inside the UK use the six-digit sort code and eight-digit account number only. You need an IBAN when money is going to or coming from a country that uses the IBAN system.

Do all countries use IBAN?
No. IBAN is used across Europe and in many countries in the Middle East, Africa and South America — the SWIFT IBAN Registry’s September 2026 release covers 89 countries and territories. The USA, Canada and Australia do not use IBAN and use their own routing systems instead.

Is it safe to share my IBAN with someone?
An IBAN on its own cannot be used to take money out of your account, and businesses routinely print theirs on invoices. Share it only with people you expect to receive money from, and never share it alongside your password, PIN or one-time passcodes.

What happens if I type one digit of an IBAN wrong?
The mod-97 check will almost always catch it. A single wrong digit changes the remainder when the IBAN is divided by 97, so a calculator will flag the IBAN as invalid. If you get an invalid result, ask the recipient to confirm the IBAN from the original document rather than guessing which character is wrong.

Can I generate an IBAN myself?
You can work out how one is built — the check digits are 98 minus the remainder of the IBAN with 00 in the check-digit position, divided by 97 — but you should not create one for use. The only valid IBAN for your account is the one your bank has issued. Ask your bank or check your statement.

This article is for informational purposes only and does not constitute financial or banking advice. Always consult your bank or financial service provider for official guidance. The example IBANs in this article are illustrative only and must not be used to send a payment.

About GBWise

Financial expert with years of experience in the UK banking and finance industry.

Finance Expert • 10+ Years Experience