Synthetic QA data · CH

Switzerland test IBAN numbers

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.

21characters
CHcountry code
17BBAN characters
YesSEPA country

Valid Switzerland test IBANs

IBANBank codeAccount numberBank (public registry)
CH20 8117 9177 3795 7662 5 81179 177379576625 RAIFFEISEN SCHWEIZ GENOSSENSCHAFT, Escholzmatt
CH45 0024 0268 6044 3364 4 00240 268604433644 UBS SWITZERLAND AG, Geneva
CH66 8053 9889 8702 9068 1 80539 889870290681 RAIFFEISEN SCHWEIZ GENOSSENSCHAFT, Reckingen
CH38 7643 0253 3768 4723 5 76430 253376847235 BANCA DELLO STATO DEL CANTONE TICINO, Chiasso
CH74 3029 6023 7919 2055 1 30296 023791920551 CIM Banque SA
CH26 8301 5160 0435 9776 9 83015 160043597769 MBaer Merchant Bank AG
CH59 0022 5914 7673 8682 5 00225 914767386825 UBS SWITZERLAND AG, Zurich
CH07 0851 5281 9765 9519 6 08515 281976595196 Bank Julius Bär & Co AG
CH26 0021 5184 2774 6670 9 00215 184277466709 UBS Switzerland AG
CH60 3025 9095 6493 8277 9 30259 095649382779 Société Générale

Invalid CH IBANs for negative tests

Each value is derived from the first valid IBAN above and re-checked, so the expected result is exact.

CaseInputExpected 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.

curl -X POST https://ibangen.com/api/v1/generate \
  -H "X-API-Key: $IBANGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country": "Switzerland", "quantity": 100}'

Test against real bank structures, not just checksums

Free: 10 CH rows at a time. Pro adds bank targeting, 1,000-row batches, CSV/JSON exports and the API; Business adds exact BIC and branch targeting.

Questions

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.

Test IBANs for other countries

IBANgen provides synthetic QA data. It does not verify account ownership, balances, reachability or payment execution.