IBAN generator and checker — format-valid test IBANs for 14 countries

Generate test IBANs that pass the mod-97 check for Germany, the UK, France and 11 other countries, or paste an IBAN to see, step by step, whether its length, structure and check digits are right.

Live demo · real result from this tool
Mode

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use the IBAN generator

  1. Choose the Mode: Generate test IBANs or Validate an IBAN.
  2. To generate, pick a Country format (DE, GB, FR, ES, NL, BE, CH, AT, IE, LU, NO, PT, AE or SA; the menu shows each length) and How many IBANs (up to 200).
  3. To validate, paste the IBAN. Spaces and dashes are ignored.
  4. Read the list, or the Result with the checks table.

What it does and when to use it

Payment software must accept good IBANs and reject bad ones, and testers need plenty of both. Real customer IBANs should not leave the bank’s systems, so test values are the safe choice. This tool makes IBANs that are correct in format and check digits, so you can test the paths after validation, and its checker shows exactly why a bad IBAN fails.

Generated IBANs are for testing and teaching only. They are not accounts, and they will not receive money.

For other format-valid test numbers, see the ISIN generator for securities and the credit card test numbers published by payment providers. For other identifier formats, the VIN generator uses a similar generate-and-validate layout.

How it works

An IBAN is a country code, two check digits and a national account number (the BBAN). To generate one, the tool fills the BBAN with random characters from crypto.getRandomValues, following the country’s pattern of letters and digits. For France, Spain, Belgium, Portugal and Norway it then works out the national check digits too.

The IBAN check digits use ISO 7064 mod 97:

  1. Move the country code and two zeros to the end of the BBAN.
  2. Replace each letter with a number (A = 10 … Z = 35).
  3. Check digits = 98 − (that number mod 97), padded to two digits.

To validate, the tool moves the first four characters to the end, converts letters, and checks that the remainder mod 97 is 1.

Worked examples

  • The standard UK example. GB82 WEST 1234 5698 7654 32 passes every row: length 22, structure 4a,14n, check digits 82, giving Result: Valid.
  • One wrong digit. DE89 3704 0044 0532 0130 01 has the right length and structure but fails with Mod-97 check digits | 89 — wrong (expected 62). The correct example ends in 00.
  • A French IBAN. FR14 2004 1010 0505 0001 3M02 606 passes mod-97 and also shows National check digits | correct, the French RIB key.

Limits and tips

  • Validation does not look up bank codes or BIC/SWIFT codes.
  • Countries that join the IBAN system later will not be known until the tool’s table is updated.
  • When testing, use the bulk fake data generator for names, never real people’s details next to a test IBAN.

Frequently asked questions

Are generated IBANs real bank accounts?
No. They are test values. The bank code and account number are random, and only the check digits are calculated, so the IBAN passes format checks. By chance one could match a real account, which is why you must never send money to one or give one as your own bank details.
What can I use test IBANs for?
Testing payment forms, SEPA direct-debit flows in a sandbox, import files and validation code; filling demo screens; and teaching how IBANs work. Using one to pose as an account holder, to fake a payment or to mislead a business is fraud.
Does "Valid" mean the account exists?
No. It means the IBAN is well formed for its country and the check digits add up. Only the bank, or a bank-data service, can confirm that an account exists and belongs to a given name.
Which countries can it check?
Validation knows the length and structure of 89 countries and territories from the SWIFT IBAN registry. Generation covers 14 countries. National check digits are also verified for France and Monaco (RIB key), Spain, Belgium, Portugal and Norway.
Why is my IBAN invalid when I copied it from a bank letter?
Usually a typo, a missing character, or the letter O typed instead of zero. The checks table shows which step failed and, for mod-97, which check digits the rest of the IBAN would need.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close