Build your retirement plan for free.Explore Plan Builder →

IBAN Formatter & Validator

Enter an IBAN to validate its checksum via mod-97, format it with spaces, detect the country, and verify the expected length.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter the complete IBAN

    Paste the country code, two check digits, and the remaining account identifier into the IBAN field. Spaces and hyphens are removed before validation.

  2. 2

    Review the validation and country details

    Check the mod-97 result, expected country length, formatted version, and the displayed bank-code portion. A passing checksum does not prove that an account exists or belongs to a particular person.

Example Calculation

A user checks the UK IBAN GB29NWBK60161331926819 and wants to confirm its checksum, country, formatting, and length.

IBAN

GB29NWBK60161331926819

Results

Validation

Valid IBAN

Country

GB — United Kingdom

Formatted IBAN

GB29 NWBK 6016 1331 9268 19

Check Digits

29 — correct

Bank Code

NWBK

IBAN Length

22 characters, correct for the United Kingdom

Insights card shows checksum and country-length validation details.

Tips

A valid 22-character UK IBAN passes the checksum and length checks

Paste the full IBAN rather than only its account number. The tool removes spaces and hyphens, so you can enter the identifier in grouped or ungrouped form.

Changing one character usually causes the checksum to fail

Test the check by changing one digit in the example IBAN. The tool recalculates the mod-97 remainder; restore the original before using the IBAN for a payment.

The displayed bank code is only the first four BBAN characters

Compare the extracted code with the relevant country's IBAN structure. The first four BBAN characters are not a universal bank-code field for every country.

What this validator checks

An IBAN validator checks whether an entered identifier has a recognizable structure, a country-specific length when supported, and a valid mod-97 checksum. It formats the cleaned IBAN in groups of four and displays the country and first four BBAN characters. These checks do not verify an account's existence, ownership, or ability to receive funds.

How the IBAN checksum works

Rearrange = BBAN + country code + check digits
Convert each letter A–Z to its number from 10 to 35
Valid checksum = rearranged numeric value modulo 97 equals 1

The validator removes spaces and hyphens and converts letters to uppercase before applying the test. For the example IBAN, it moves GB29 to the end, giving NWBK60161331926819GB29. It converts G to 16 and B to 11, then processes the resulting digits using modular arithmetic. The remainder is 1, so the checksum passes. The 22-character length also matches the expected length for a UK IBAN.

The tool displays NWBK as the bank code because those are the first four characters after the country and check digits. That is a simple extraction from the BBAN, not a universal guarantee that the same character positions represent a bank code in every country's format.

Interpreting validation results

Result What it tells you What to do
Checksum passes and country length matches The entered string passes the displayed structural checks Confirm the recipient and payment details independently
Checksum passes but length differs The checksum is consistent, but the country length check flags a mismatch Check for a missing or extra character and confirm the country code
Checksum fails The identifier does not produce the required mod-97 remainder Re-copy the IBAN from a trusted source and check for transcription errors
Country is unrecognized The tool cannot match the country code to its list Confirm the country code and consult the bank or an authoritative IBAN reference

A checksum is designed to catch common errors, not to authenticate a beneficiary. If the payment is important, compare the IBAN with bank-issued instructions and independently verify any change to payment details.

For other text-formatting tasks, use the phone number formatter or decimal places formatter. To check a different type of checksum, try the Luhn algorithm validator; it uses a separate method and is not an IBAN validator.

Frequently Asked Questions

What is an IBAN?

An International Bank Account Number (IBAN) is a standardized identifier used to identify a bank account for cross-border payments. It contains a country code, check digits, and a country-specific Basic Bank Account Number (BBAN); the SWIFT IBAN standard information describes the format.

How does the IBAN mod-97 check work?

1. Move the first four characters to the end. 2. Convert letters A–Z to the numbers 10–35. 3. Divide the resulting number by 97 and calculate the remainder. A remainder of 1 passes the checksum; this detects many input errors but does not confirm that the account is open.

Does a valid IBAN prove that a bank account exists?

No, a valid checksum and length only show that the IBAN is structurally consistent with the checks performed. They do not confirm that the account exists, can receive a payment, or belongs to the named recipient; verify payment details with the recipient or bank.

Why does the tool say the IBAN length is wrong when the checksum passes?

The checksum can pass even when an IBAN has an unexpected length for its country. The validator reports checksum integrity separately from the expected country length, so check for a missing or extra character before sending money.

Can I include spaces or hyphens when entering an IBAN?

Yes, the validator removes spaces and hyphens before checking the IBAN. It then displays the cleaned identifier grouped in blocks of four characters for easier reading.