Ten checksum-valid Switzerland test IBANs with their domestic bank code and account number, ready for a payment form, fixture or unit test, plus invalid CH cases that a correct validator must reject.
Synthetic only: the bank code may belong to a real Switzerland bank, but each account number is random. Never use these values for payments or to represent a real account.
Each value is derived from the first valid IBAN above and re-checked, so the expected result is exact.
Case
Input
Expected validator result
Wrong check digits
CH2181179177379576625
Reject: MOD-97 checksum fails
Transposed BBAN digits
CH2018179177379576625
Reject: MOD-97 checksum fails
One character too short
CH208117917737957662
Reject: length does not match the country format
Wrong country prefix
FR2081179177379576625
Reject: length or checksum fails for the other country
Lowercase with spaces
ch20 8117 9177 3795 7662 5
Accept after normalizing case and whitespace
Switzerland IBAN format
CH + 2 check digits + 5 digits + 12 letters or digits = 21 characters. Validate the length and character classes first, then the MOD-97 checksum: move the first four characters to the end, convert letters to numbers (A=10 … Z=35) and the remainder modulo 97 must be 1.
Need rows for the same bank, city or BIC your integration talks to? The generator can target them, keep a stable seed and export 1,000 rows at a time.
Are these Switzerland test IBANs real bank accounts?
No. They are synthetic CH IBANs with a correct national format and MOD-97 checksum. The bank code can match a real institution, but the account number is random and must never be used for payments.
How long is a Switzerland IBAN?
A Switzerland IBAN has 21 characters: the country code CH, two check digits and a 17-character BBAN (5 digits, 12 letters or digits).
Can I get more Switzerland test IBANs for a specific bank or city?
Yes. The Switzerland generator creates up to 10 rows free. Paid plans add bank, city and exact BIC targeting, 1,000-row batches, CSV/JSON exports and the same data through the API.