Random IBAN Generator

Test IBANs generated—
Length (chars)—
Country—

How Random IBAN Generator is calculated: TEST DATA ONLY — not real IBANs. IBAN = country code + 2 mod-97 check digits + national account number, at a fixed length per country.

What is an IBAN generator? Test data only

This tool generates IBANs for testing only. The IBANs it makes look like real IBANs — the right country code, the right length, and valid check digits — but they are test data, not real bank accounts. They belong to nobody, they hold no money, and they must never be used for a real payment, a real transfer, or a real account. If you need a real IBAN, only your bank can give you one.

An IBAN is an International Bank Account Number: a country code, two check digits, and a national account number, in one string. A British IBAN is 22 characters, a German one is 22, a French one is 27, a Spanish one is 24, and an Italian one is 27. The format is standard across Europe, which is why software that handles payments needs test IBANs in each format.

This generator makes test IBANs for five countries — GB, DE, FR, ES, and IT — with correct lengths and correct check digits, so they pass format validation in test software. The default on this page is 5 test IBANs for GB. Everything runs in your browser, so nothing is stored and there is no account to create. For random numbers rather than account formats, a random number generator makes those instead.

How this IBAN generator works — and why it is test data only

The generator builds the national part of the IBAN first, at random: for GB, four letters and fourteen digits; for DE, eighteen digits; for FR, twenty-three digits; for ES, twenty digits; for IT, one letter and twenty-two digits. It then works out the two check digits with the mod-97 method, which is the official IBAN check, and puts the country code and check digits at the front.

The mod-97 check is what makes the output pass format validation. The IBAN is rearranged — the national part first, then the country code and 00 — converted to numbers, and divided by 97. The check digits are 98 minus the remainder, so a correct IBAN always leaves a remainder of 1 when the same check is run on the finished string. That is the same arithmetic real banks use, applied to made-up account numbers.

But passing a format check is not the same as being a real account. These IBANs are random: no bank issued them, no account exists behind them, and sending money to one would fail — or worse, could reach a stranger if the random digits happen to match a real account. That is why this tool is labelled test data only, and why the article says so in every section. A currency converter changes real money between currencies; this tool never touches real money.

IBAN lengths by country

Each country has a fixed IBAN length, and getting it wrong is the most common format error. GB is 22 characters: 2 for the country, 2 for the check digits, and 18 for the national part. DE is also 22, with an 18-digit national part. FR is 27, ES is 24, and IT is 27. The generator knows each length and builds the national part to match, so the output is always the right length for the country you picked.

The country code is the first two letters, and it is always the real code for that country: GB for the United Kingdom, DE for Germany, FR for France, ES for Spain, IT for Italy. The check digits come next, and they are always two digits — with a leading zero if the value is under 10, so 05 is written as 05, never as 5.

The national part is where the countries differ most. GB starts with four letters — the bank identifier — then fourteen digits. DE is all digits. FR is all digits, in bank, branch, and account groups. IT starts with a letter. The generator follows each pattern, so the test data looks like the real thing in shape, even though it is not a real account. An EMI calculator works out loan payments in rupees, a job where real account numbers matter and test data does not belong.

A worked example: five test IBANs for GB

Press the button on this page with the defaults — 5 IBANs, country GB — and you get five lines, each one a 22-character test IBAN starting with GB. The count is 5, the length is 22, and the country is GB. Every press gives a different set, because every IBAN is random. None of them is a real account.

Each line follows the same shape: GB, two check digits, four letters, and fourteen digits. Run the mod-97 check on any line — rearrange it, convert the letters to numbers, divide by 97 — and the remainder is 1, which is what a valid IBAN gives. That is the format check your test software will run, and it is the check this generator is built to pass.

Switch the country to FR and press again. The count is still 5, but the length is now 27, because French IBANs are longer. Switch to ES and the length is 24. The country code, the length, and the shape all change with the country, and the check digits are recalculated each time. A password generator makes test passwords the same way this tool makes test IBANs — random, labelled, and never used for real.

Who uses a test IBAN generator, and why

Software developers are the biggest users. Payment forms, banking apps, and accounting software all validate IBANs, and developers need test IBANs in each country's format to check that validation works. A generator gives them a clean set for every country in a second, without touching a real account.

Testers are the second group. Test cases need fresh IBANs that do not belong to anyone, so a test payment can never accidentally reach a real person. A tester who uses a real IBAN in a test risks sending real money; a tester who uses generated test IBANs risks nothing, because the accounts do not exist.

The third group is anyone building a demo or a training course. A trainer showing how IBAN validation works needs examples that look real but are not, and a demo that displays a real customer's IBAN would be a privacy breach. Generated test IBANs solve both problems at once. The rule for all three groups is the same: test data stays in testing, and real payments use only IBANs a bank issued.

Test IBAN generator vs real IBANs

A test IBAN and a real IBAN look the same: same length, same country code, same check digits, same mod-97 result. The difference is not in the string — it is in the world behind it. A real IBAN was issued by a bank for a real account that holds real money. A test IBAN was made by a random generator, and no account exists behind it.

That difference is everything. A payment sent to a real IBAN reaches a real person. A payment sent to a test IBAN fails, bounces, or — in the worst case — lands in a stranger's account if the random digits happen to match a real one. That is why this tool is labelled test data only in the title, in the first paragraph, and in the output box, and why no one should ever paste these numbers into a real payment form.

The other relative is the random number generator, which makes random numbers for any job. Test IBANs are random numbers with a structure: a country code, check digits, and a fixed length. If your test only needs digits, use the number generator; if it needs something that passes IBAN validation, use this one — and keep it in testing.

Common mistakes with test IBANs

The most common mistake is using a test IBAN for a real payment. Never do this. A test IBAN is not a real account, and a payment to one will fail or go astray. Real payments use only the IBAN your bank gave you, printed on your statement or in your banking app.

Second: copying a test IBAN into production data. Test data belongs in test systems, and production systems must hold only real, verified data. A test IBAN in a production database is a data quality failure and a compliance risk. Third: assuming a passing check digit means a real account. The mod-97 check proves the format is right, not that the account exists.

Fourth: sharing test IBANs as if they were yours. They belong to nobody, so giving one out as your account number will at best fail and at worst send someone's money into the void. Fifth: testing with only one country. IBAN lengths differ by country, so test with GB, DE, FR, ES, and IT — the five this generator covers — before you trust your validation.

How to use this test IBAN generator

Using this generator is simple. Pick a country — GB is the default — set how many test IBANs you need, and press Generate Test IBANs. The IBANs appear in the output box below, one per line, with the count, length, and country shown in the results box above it. Remember: these are test data only, not real IBANs.

To make another set, press the button again — every press makes a fresh set. To copy the results, use the Copy button next to the output box. If your test needs a different country, change it and press again; the length and the shape change with the country, and the check digits are recalculated each time.

Everything runs in your browser. No sign-up, no account, no data sent anywhere — the test IBANs never leave your device. It works offline once the page has loaded. Try it with your test suite before you need it: generate five test IBANs for each country your software supports, and check that your validation accepts them all.

One last tip, and it is the most important one on this page: never paste these IBANs into a real payment, a real form, or a production system. Test data stays in testing. If you need a real IBAN, ask your bank — only a bank can issue one.

Frequently Asked Questions

No. They are test data only — random numbers in the right format, with valid check digits, but no bank issued them and no account exists behind them. They must never be used for a real payment. A real IBAN comes only from your bank, on your statement or in your banking app.

Because they are built correctly: the right length for the country, and check digits worked out with the official mod-97 method, so the finished string leaves a remainder of 1 under the mod-97 check. Format validation checks the shape, not whether an account exists — that is exactly what makes them useful for testing and dangerous for real payments.

GB is 22 characters, DE is 22, FR is 27, ES is 24, and IT is 27. The length is fixed per country, and this generator builds each one to the right length. The country code is always the first two letters, followed by two check digits.

No. Nobody owns a generated IBAN, so money sent to one has nowhere to go — it will fail, bounce, or in the worst case reach a stranger if the random digits happen to match a real account. To receive money, give the sender the IBAN your bank issued for your account.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.