Switzerland IBAN Generator
Free test CH IBANs: 21 characters, official registry format, valid check digits.
Switzerland IBAN generator
21-character format, official registry structure.
Same country + seed + row order gives the same test values. Leave blank for random samples. Seed algorithm: v1. Do not enter personal data.
Switzerland IBAN format
A Switzerland IBAN is 21 characters long: the CH country code, 2 check digits, and a 17-character BBAN (5 digits + 12 letters/digits). Here is how a generated test IBAN breaks down:
| Part | Example | Format |
|---|---|---|
| Country code | CH | 2 letters (ISO 3166) |
| Check digits | 92 | 2 digits: mod-97 checksum |
| Bank code | 96157 | 5 digits |
| Account number | PU8O7PAONMG0 | 12 letters/digits |
Full test IBAN: CH92 9615 7PU8 O7PA ONMG 0 (random test value)
About Switzerland IBANs
- Switzerland's 21-character IBAN: 5-digit clearing/BC number + 12-character account number.
- Switzerland also uses the QR-IBAN variant for the Swiss QR-bill: IBANs whose institution ID falls in 30000: 31999 trigger QR-reference handling.
- Switzerland is not in the EU but participates in SEPA.
Use test Switzerland IBANs for
- Testing payment forms that accept Switzerland bank details.
- QA fixtures and demo data with the correct 21-character structure.
- Validating your own mod-97 implementation against known-correct outputs.
Country-specific testing notes
The bank identifier is numeric, while the account component permits alphanumeric characters. A national account field should be stored as text to retain its full representation.
Test more than the happy path
Generate with seed country-regression-v1, preserve the selected country and quantity, then run again to reproduce the same rows. Include an invalid-checksum input and a shorter input in your form tests. The versioned fixture pack supplies expected results for the implemented format checks.
Interpret the result correctly
Our checks cover the registered length, character pattern and international check digits. They do not certify domestic checksums, reserved-value rules, active bank codes, account existence or recipient ownership. Use bank-issued details for payments and your provider’s documented sandbox values for integration tests.