fake-iban-generator
An IBAN (International Bank Account Number) follows a strict format: country code (2 letters) + check digits (2) + bank-specific identifier (up to 30 chars), with a MOD-97 checksum. The ZTools Fake IBAN Generator produces format-valid IBANs that pass syntax + checksum validation but reference no real bank account. Used for testing form validation, payment-flow QA, schema fuzz testing, and anywhere a real IBAN would be inappropriate (test fixtures in public repos). The generator covers 70+ countries with their specific length and structure rules.
Use casesβ
Form validation testingβ
A payment form validates IBAN format. Need 50 valid samples across countries to test edge cases.
Database test fixturesβ
Seed an integration test with realistic-looking IBAN data that's safe to commit to a public repo.
API contract testingβ
Mock responses for a payment API need IBAN-shaped strings. Generated values pass the validator and behave correctly.
UI / accessibility QAβ
Test how long IBANs render in your form fields β Maltese IBANs are 31 chars, Norwegian only 15.
How it worksβ
- Pick country β Each ISO country code has a specific IBAN length and structure.
- Optional bank code β Some countries allow specifying the bank prefix; the generator fills the rest randomly.
- Compute checksum β MOD-97 algorithm: rearrange string, convert letters to digits, compute mod 97, set check digits so the total β‘ 1 mod 97.
- Output β A format-valid IBAN. Validates against any standard IBAN library β but bank rejects when used for actual transfers (account doesn't exist).
Examplesβ
Input: Country: GB (UK)
Output: GB29NWBK60161331926819 β 22-char IBAN, format-valid, no real account.
Input: Country: DE (Germany)
Output: DE89370400440532013000 β 22-char IBAN with German structure.
Input: Country: NO (Norway)
Output: NO9386011117947 β 15-char IBAN (shortest standard).
Input: Country: MT (Malta)
Output: MT84MALT011000012345MTLCAST001S β 31-char IBAN (longest standard).
Frequently asked questionsβ
Are these IBANs safe to use?
They're format-valid but reference no real account. Using them to attempt a transfer fails at the bank β no money moves. Safe for testing; never use for real transactions.
Will they pass my validator?
Yes β any IBAN library that checks format + MOD-97 checksum accepts these. Banks doing real-time bank-existence verification reject them, which is the point.
Can the same fake IBAN match a real account?
Statistically yes for very small countries; no for most. The generator picks bank-code + account-number portions randomly. To be safe, only use these in test environments.
Privacy?
All in browser.
Tipsβ
- Always label test data clearly as "TEST_ONLY" β a fake IBAN that escapes into production logs can confuse debugging.
- For load testing, generate 1000+ unique fake IBANs β checksum-valid but with high cardinality.
- For UI testing of edge cases, generate IBANs from short (NO, BE) and long (MT, RO) countries to test field width.
- Never use fake IBANs in real banking flows β even though they're harmless, the audit log noise isn't worth it.
Try it nowβ
The full fake-iban-generator runs in your browser at https://ztools.zaions.com/fake-iban-generator β no signup, no upload, no data leaves your device.
Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub