Valid random IBAN generator
Generate valid random IBANs with correct MOD-97 check digits for 40+ countries, including Spain, Germany, France and the UK. Create a single test IBAN or bulk-export up to 100 values to CSV, JSON, or TXT for QA, payment-form testing, demos, and fixtures — all in your browser, with no real banking data and no sign-up.
Configure your IBAN
More than thirty countries with official formats and dynamically calculated checksum digits.
Select a country to generate an IBAN.
Length
—
BBAN structure
—
History stored locally. Clear anytime.
How to generate test IBANs
-
1. Choose a country
Select the national format your form accepts. Germany uses 22 characters, Spain 24 and France 27.
-
2. Generate your test data
Set Quantity from 1 to 100, then select Generate IBAN. Changing the country or quantity does not replace an existing result until you generate again.
-
3. Copy or download
Copy a single value with its copy button. For a batch of 2 or more, use Copy All or download CSV, JSON or TXT. CSV has an IBAN header; JSON contains an ibans array.
Check both passing and failing inputs
Use these examples to test format validation. A passing checksum does not confirm an account exists. For payment-provider sandbox tests, use the provider’s own test values.
| Example input | Expected format check |
|---|---|
ES9121000418450200051332 |
Pass: Spanish format, 24 characters and a MOD-97 remainder of 1. |
ES7621000418450200051332 |
Fail: the length is correct, but the check digits are wrong. |
ES912100041845020005133 |
Fail: one character is missing from the Spanish format. |
ES91 2100 0418 4502 0005 1332 |
Pass after removing display spaces; the underlying value is unchanged. |
Popular country IBAN generators
Jump straight to a country-specific test IBAN generator with the right length, structure, and checksum.
Methodology & sources
What the generator verifies — and what it cannot
The browser selects characters that fit the configured national BBAN pattern and computes the two international check digits with MOD97-10. Some supported countries also use curated bank-code lists or domestic check-digit logic where implemented.
Passing length, pattern, and MOD-97 checks proves only structural validity. It does not prove that a bank code is current, that an account exists, that it can receive funds, or that a generated value is unassigned.
Country lengths and BBAN patterns are reviewed against the public SWIFT IBAN Registry, version 102 (June 2026).
Methodology last reviewed July 18, 2026. RandomIBAN is not affiliated with SWIFT, ISO, or any bank.
Understanding IBAN Structure
Supported Countries
Click any country to generate an IBAN for it.
Frequently Asked Questions
Common questions about IBAN generation and usage
What is an IBAN?
An IBAN (International Bank Account Number) is a standardized international numbering system developed to identify bank accounts across national borders. It consists of a country code, two check digits, and a Basic Bank Account Number (BBAN) that includes the bank identifier and account number. IBANs were introduced to reduce errors in cross-border transactions and are used in over 70 countries worldwide.
Are the generated IBANs safe to use?
Generated IBANs are intended for isolated testing, development, and demonstrations. They include a country pattern and correct MOD-97 check digits, but are not checked against bank or account directories, so an accidental match cannot be ruled out. Never use them for a payment, a live customer record, or a production payment system.
Which countries are supported?
Our generator supports over 30 countries including all major European markets (Germany, France, Spain, Italy, United Kingdom, Netherlands, Belgium, Portugal, Ireland, Switzerland, Austria), Nordic countries (Sweden, Norway, Finland, Denmark, Iceland), Eastern European countries (Poland, Czech Republic, Slovakia, Hungary, Romania, Bulgaria, Croatia, Slovenia, Serbia), Baltic states (Estonia, Latvia, Lithuania), and select Middle Eastern and other regions (Saudi Arabia, UAE, Qatar, Turkey, Cyprus, Malta, Brazil, Costa Rica, Dominican Republic, Israel). Each country implementation follows the official IBAN format specifications published by national banking authorities.
How does IBAN validation work?
IBAN validation uses the modulo 97 algorithm defined in ISO 13616. The process involves moving the first four characters (country code and check digits) to the end of the IBAN, converting all letters to numbers (A=10, B=11, ... Z=35), and performing a modulo 97 operation on the resulting number. If the result equals 1, the IBAN is valid. Our generator automatically calculates the correct check digits for each generated IBAN to ensure they pass this validation.
Can I use these IBANs in production systems?
No, absolutely not. The generated IBANs are synthetic test data and must never be used in production payment systems, live transactions, or any real financial operations. They are intended solely for testing environments, quality assurance, demonstrations, training materials, and documentation. Using fake IBANs in production could lead to payment failures, compliance issues, and potential legal problems.
Can I generate multiple IBANs at once?
Yes. The quantity control creates between 1 and 100 IBANs in one batch. You can copy the batch or export CSV, JSON, or plain text. Larger datasets should be generated with reviewed code in an isolated test environment.
What is the structure of an IBAN?
An IBAN consists of up to 34 alphanumeric characters with the following structure: a two-letter country code (e.g., DE for Germany), two check digits calculated using modulo 97, and a Basic Bank Account Number (BBAN) that varies by country. The BBAN typically includes a bank code, branch identifier, and account number. For example, a German IBAN has 22 characters, while a UK IBAN has 22 characters, and a French IBAN has 27 characters. The exact length and format depend on each country''s banking standards.
What is a test IBAN?
A test IBAN is a synthetic value used in development, QA, or demonstrations. It can match a configured country pattern and pass MOD-97, but it is not checked against bank directories, account assignments, or provider sandboxes; an accidental match cannot be ruled out. Use generated values only in isolated format tests and use a provider's current designated values for integration testing.
How do I generate a valid fake IBAN?
Select a country and click "Generate IBAN". The tool builds a BBAN matching its configured national pattern and calculates the MOD-97 check digits. The result can pass structural validation, but bank-code currency, account existence, and assignment are not verified. Generate up to 100 values and export CSV, JSON, or plain text.
What is the format of a Spanish IBAN?
A Spanish IBAN has 24 characters with the format ES + 2 check digits + 20-digit BBAN. The BBAN consists of: bank code (4 digits), branch code (4 digits), national check digits (2 digits), and account number (10 digits). For example: ES76 2100 0418 4502 0005 1332. Major Spanish banks include Santander (0049), BBVA (0182), CaixaBank (2100), and Sabadell (0081). Our generator draws Spanish bank codes from a configured reference list, but does not certify that a code is current or that an account exists.
How do I validate an IBAN number?
IBAN checksum validation uses the MOD-97 algorithm defined in ISO 13616. The process involves moving the first 4 characters to the end, converting all letters to numbers (A=10, B=11... Z=35), and dividing the resulting number by 97. A remainder of 1 means the checksum passes, not that the bank or account exists. Our validator performs this check in your browser without submitting the IBAN value to RandomIBAN.
What is an IBAN calculator?
An IBAN calculator is a tool that computes valid IBAN numbers from basic bank account details. It takes a country code and BBAN (bank code, branch, and account number) and calculates the two check digits using the MOD-97 algorithm defined in ISO 13616. Our IBAN generator works as a full IBAN calculator — it generates structurally correct BBANs for supported countries and automatically calculates the check digits, producing valid IBANs ready for testing, QA, and development environments.
How is an IBAN number generated?
An IBAN is generated in three steps: first, a Basic Bank Account Number (BBAN) is created following the configured character pattern for the target country. Where implemented, the generator also uses a curated bank-code list or national checksum rule; otherwise those positions are synthetic pattern-matching values. Second, the check digits are calculated using the MOD-97 algorithm. Third, the final IBAN is assembled as country code + check digits + BBAN. Passing these checks establishes structural validity only, not bank-code currency or account existence.
Explore More IBAN Tools
Discover other useful tools for working with IBAN numbers.
Important: generated IBANs are structurally valid and include correct check digits, but RandomIBAN does not query any bank or account directory. An accidental match with an issued account cannot be ruled out. Use values only in isolated test or demo environments, never for payments or production customer records.