Choose language

IBAN Generator

Generate random test IBANs with valid check digits for any IBAN country, or calculate an IBAN from a bank code and account number.

IBAN GeneratorHow it works ↓
From 1 to 100

Test data only. These IBANs have valid check digits but are not linked to real bank accounts, so never use them to send or request money.

For United Kingdom, only the two IBAN check digits are guaranteed. Any bank-specific check inside the account number is random.

Mehmet Demiray Published Updated
Share

What the IBAN Generator Does

The IBAN Generator has two modes, chosen with the Mode chips at the top of the form.

  • Random test IBANs builds between 1 and 100 IBANs for the country you pick. Each one has the correct length, a digit or letter in every position exactly where that country's format expects it, and correct check digits. Use them to fill payment forms, test SEPA direct debit flows or seed a staging database.
  • From bank details works as an IBAN calculator. You enter a Bank code, a Branch code where the country uses one, and an Account number, then press Calculate IBAN to get the full IBAN for that domestic account.

The Country list covers all 96 countries and territories in the SWIFT IBAN Registry. Country names appear in your browser's language, with the ISO code next to each one.

Results appear in a table with three columns: the IBAN in electronic form without spaces, the Print format split into groups of four characters the way bank statements show it, and the two Check digits. Every value can be copied with one click. A batch of random IBANs can be exported as CSV, XLSX, PDF or an image, and a calculated IBAN as CSV or an image.

Every IBAN the tool produces passes the same structural checks that our IBAN validator runs: country code, length, character format and MOD-97 check digits. Random values come from your browser's cryptographic random generator (crypto.getRandomValues), and nothing you type or generate leaves your device.

IBAN Structure Explained

Every IBAN starts with the same two parts and continues with a domestic part that differs per country.

  1. Country code: two letters from ISO 3166, such as DE for Germany or GB for the United Kingdom.
  2. Check digits: two digits calculated from the rest of the IBAN with the MOD-97 method.
  3. BBAN (Basic Bank Account Number): the national account identifier. It usually holds a bank code, sometimes a branch code, the account number and, in a few countries, a separate national check key.

Each country fixes the total length of its IBAN and the kind of character allowed in every BBAN position. The IBAN Registry writes this in a short notation: n is a digit, a is an upper case letter and c is a letter or digit. So 4a, 14n means four letters followed by fourteen digits.

Country IBAN length BBAN format Example
Norway 15 11n NO9386011117947
Netherlands 18 4a, 10n NL91ABNA0417164300
Germany 22 18n DE89370400440532013000
United Kingdom 22 4a, 14n GB82WEST12345698765432
France 27 10n, 11c, 2n FR1420041010050500013M02606
Italy 27 1a, 10n, 12c IT60X0542811101000000123456

Lengths range from 15 characters in Norway to 33 in Russia. The same hint notation appears under the bank, branch and account fields when you calculate an IBAN, so you can see how many characters each part takes.

The Print format column shows an IBAN in groups of four, as it appears on paper: DE89 3704 0044 0532 0130 00. Payment systems and databases store the electronic format without spaces. Both describe the same IBAN, and the spaces carry no meaning.

How IBAN Check Digits Are Calculated

The two check digits after the country code follow ISO 7064 MOD 97-10, the method required by ISO 13616. Calculating them for a new IBAN takes four steps:

  1. Write the BBAN, then the country code, then 00 in place of the check digits.
  2. Replace every letter with a two digit number: A = 10, B = 11 and so on up to Z = 35.
  3. Read the result as one long integer NN and find the remainder after dividing it by 97.
  4. Subtract that remainder from 98. A result below 10 gets a leading zero.
check digits=98−(N mod 97)\text{check digits} = 98 - (N \bmod 97)

Take the British example GB82WEST12345698765432. Its BBAN is WEST12345698765432. Appending GB00 and converting the letters (W = 32, E = 14, S = 28, T = 29, G = 16, B = 11) gives the integer 3214282912345698765432161100. Dividing it by 97 leaves a remainder of 16, and 98 minus 16 is 82, the check digits printed in the IBAN.

Validation repeats the same rearrangement with the real check digits in place of 00. The IBAN is valid when

N mod 97=1N \bmod 97 = 1

For the example, 3214282912345698765432161182 leaves a remainder of exactly 1.

Because 97 is prime and the result has two digits, this check catches any single mistyped character and almost every swap of two neighboring characters. That is why a payment form can reject a typo before it reaches the bank. What it cannot tell is whether the account exists. A passing IBAN is internally consistent, nothing more, which is exactly what makes random test IBANs possible.

National Check Digits Inside the BBAN

Many countries had their own account check digits long before IBAN existed, and they still sit inside the BBAN. A Spanish account carries a two digit dígito de control, a French one a two digit RIB key, an Italian one a check letter called CIN, a Belgian account ends in a mod 97 pair, and Norwegian and Dutch numbers follow a mod 11 rule. Some bank systems test these in addition to the IBAN check digits.

In Random test IBANs mode the generator also computes the national check for 33 countries and territories:

Rule Countries
RIB key France, Monaco, French Guiana, Guadeloupe, Martinique, Réunion, Mayotte, New Caledonia, French Polynesia, Saint Pierre and Miquelon, Wallis and Futuna, Saint Martin, French Southern Territories
CIN letter Italy, San Marino
Dígito de control Spain
Mod 97 pair Belgium, Portugal, Slovenia, Serbia, Montenegro, Bosnia and Herzegovina, North Macedonia
Mod 11 Czechia, Slovakia, Norway, Netherlands (elfproef)
Luhn Finland, Åland
Weighted mod 10 Estonia, Hungary, Poland
ISO 7064 MOD 11,10 Croatia

The note under the form tells you which case applies to the country you selected. For every other country, including Germany, Austria, Switzerland, the United Kingdom and Turkey, only the two IBAN check digits are guaranteed. The account part is random characters in the correct format, so a strict validator that knows the country's internal rules, or that looks up the bank code in a bank directory, may still reject it.

If the system you are testing only checks IBAN structure and MOD-97, any country works. If it also runs national checks, pick one of the countries in the table to get IBANs that pass both layers.

Calculating an IBAN From Bank Details

Switch Mode to From bank details when you have a domestic account and need its IBAN. Choose the Country first, because the fields adapt to it: Branch code appears only for countries whose BBAN has one, such as the United Kingdom (sort code) or France (code guichet).

Under each field a hint shows the expected format in registry notation, for example 8n for a German bank code (Bankleitzahl). Spaces, dots, dashes and slashes are removed, and shorter values are padded with leading zeros, so the German account number 532013000 becomes 0532013000.

A worked example for Germany:

  1. Country: Germany
  2. Bank code: 37040044
  3. Account number: 532013000
  4. Press Calculate IBAN and the result is DE89370400440532013000.

Some countries keep a separate national key that people rarely write on its own: the Spanish dígito de control, the French RIB key, the Italian CIN and the Hungarian bank and branch check digit. For those countries a note tells you to leave the key out, and the tool calculates it from the other parts. Entering bank 2100, branch 0418 and account 0200051332 for Spain gives ES9121000418450200051332, with the control digits 45 filled in.

Check digits that are part of the account number itself are verified, not overwritten. If they don't add up, for example in a Polish, Belgian, Norwegian or Czech number, the tool stops with a message that the national check digits are wrong. That almost always means a typo, so compare the number with your statement or banking app.

The calculator handles one account at a time, and each result can be copied or exported. To check a finished list of IBANs in one go, paste it into the bulk IBAN validator.

Test Data, Not Real Accounts

A random IBAN that passes every check is still fiction. The bank code is random, so it may not belong to any bank, and even when it happens to match one, no customer owns that account number. A transfer to it is rejected or returned, and a direct debit mandate against it fails.

That is exactly what makes generated IBANs useful for:

  • testing payment forms, checkout pages and onboarding validation
  • SEPA transfer and direct debit flows in a sandbox or staging system
  • seed data for databases and automated tests
  • screenshots, demos, documentation and tutorials

They are not for real money. Putting a generated IBAN on an invoice, a contract or an account application to mislead a person, a shop or a bank is fraud, and so is using one to get around identity or payment checks. The warning note in the form says the same: test data only.

If you calculated a real IBAN from your own bank details, confirm it against a statement or your banking app before you share it. The calculation is correct for the digits you entered, but it cannot know whether those digits are the right account.

The IBAN Generator is free, needs no sign up and has no usage limit. Generation and calculation run entirely in your browser, so no bank details you enter are sent to a server or stored.

The ones we answer the most.

How do I generate a test IBAN?

Keep Random test IBANs selected, choose a Country, enter a Number of IBANs between 1 and 100, and press Generate. The table lists each IBAN in electronic and print format with its check digits, ready to copy or export as CSV, XLSX, PDF or an image.

How can I calculate an IBAN from my account number?

Switch to From bank details, pick your country and fill in the Bank code, the Branch code if the field appears, and the Account number. Press Calculate IBAN. Shorter values are padded with zeros, and separate national keys such as the Spanish control digits or the Italian CIN are calculated for you.

Are the generated IBANs real bank accounts?

No. They have the right length, format and MOD-97 check digits, so they pass structural validation, but the bank codes and account numbers are random. No one owns these accounts.

Can I use a generated IBAN to send or receive money?

No. A payment to a generated IBAN is rejected or returned because the account does not exist. Using fake bank details on invoices, contracts or applications to mislead anyone is fraud. Generated IBANs are for testing, demos and documentation only.

What are the check digits in an IBAN?

They are the two digits right after the country code, for example 82 in GB82WEST12345698765432. They are calculated with ISO 7064 MOD 97-10 so that the rearranged IBAN, read as a number, leaves a remainder of 1 when divided by 97. This catches almost all typos.

What is a BBAN?

The BBAN (Basic Bank Account Number) is the domestic part of an IBAN, everything after the country code and the two check digits. It contains the bank code, the account number and, depending on the country, a branch code and national check digits. Its length and format are fixed per country.

Why does my bank's validator reject a generated IBAN?

Most often the validator checks more than the IBAN check digits. For countries outside the 33 with a computed national check (Germany or the United Kingdom, for example), the account part is random and may fail the country's own rule. Some validators also look up the bank code in a directory, and a random bank code does not exist there.

Why does the calculator say the national check digits are wrong?

Your account number fails the check built into that country's account format, as used in Poland, Belgium, Norway, Czechia and other countries. The tool verifies those digits instead of overwriting them, so the error almost always points to a typo in the bank code or account number.

Can I generate an IBAN for the US, Canada or Australia?

No. The United States, Canada, Australia, Japan, China and India do not use IBAN, so they are not in the country list, and an account there has no IBAN to calculate. When someone in an IBAN country pays you, they send the money to your account number together with your bank's SWIFT/BIC code. IBAN matters to you mainly when you pay into, or receive from, an account in an IBAN country.

What is the difference between an IBAN generator and an IBAN validator?

A generator creates IBANs, either random test ones or one calculated from bank details. A validator checks IBANs that already exist. Use the IBAN validator to check a single number and the bulk IBAN validator for a whole list.

Is the IBAN Generator free, and is my data sent anywhere?

It is free, with no sign up and no limit. Everything is computed in your browser, so the bank details you enter are never sent to a server or stored.

References

  1. IBAN Registry — IBAN structure per country · SWIFT
  2. ISO 13616-1:2020 — Structure of the IBAN · ISO
  3. ISO/IEC 7064:2003 — Check character systems · ISO
  4. IBAN — historic development (ECBS EBS204, EPC and ISO 13616) · Czech National Bank