What Is a Valid Example IBAN (and How to Generate One)

How to make a random, structurally valid IBAN for testing and demos, why it passes validation, and why it is never a real bank account.

Updated 3 min read By CodingEagles
Free tool IBAN Generator Generate random valid example IBANs for testing and demos. Open tool

If you build forms, run automated tests, or put together a demo, sooner or later you need an IBAN that looks right but isn’t anyone’s actual account. Typing in your own bank details is a bad idea, and copying a stranger’s from the web is worse.

What “valid” actually means for an IBAN

An IBAN passes validation when three things line up: the country code is real, the total length matches that country’s rule, and the two check digits satisfy the ISO 7064 mod-97 calculation. That is the whole test most software runs. None of it confirms the account exists. It only confirms the number is internally consistent.

So a “valid example IBAN” is one that satisfies those structural rules while the account body is just random digits. It will sail through a length check, a format check and a checksum check, which is exactly what you want when you are testing that your own validation works.

How to generate one

Pick a country so the right length is used, then fill the account positions with random digits and compute the check digits for them. The IBAN generator does this for you: choose a country (or let it pick at random), press Generate, and copy the result. For test fixtures you can generate a batch of five at once.

If you would rather build one from specific bank and account numbers, the IBAN calculator takes those inputs and adds the check digits. To go the other way and check a number you already have, use the IBAN validator.

Why you should never treat it as real

A generated IBAN is for software, not money. Because the account body is random, two risks follow. First, it almost certainly maps to no open account, so a payment would bounce or sit in limbo. Second, by sheer chance it could match someone’s real account, and sending money there would be a mistake you cannot easily undo. Keep these numbers in test environments, sample data and screenshots, never in a real transfer.

TL;DR: A valid example IBAN has the right country, length and check digits but a random account body. Generate one in the IBAN generator for testing and demos, and never use it to move money.

Frequently asked questions

Are example IBANs real bank accounts?
No. A generated IBAN has the right format and correct check digits, but the account body is random. It does not point to any real account and should never be used for a payment.
Why does a fake IBAN still pass validation?
Validation only checks the structure: the country, the length and the mod-97 check digit. A random IBAN can satisfy all three while still belonging to no real account.

Ready to try it?

Generate random valid example IBANs for testing and demos. Free, in-browser, and 100% private — your data never leaves your device.

Open the IBAN Generator