IBAN Toolkit logoIBAN Toolkit

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:

PartExampleFormat
Country codeCH2 letters (ISO 3166)
Check digits922 digits: mod-97 checksum
Bank code961575 digits
Account numberPU8O7PAONMG012 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.

Banking in Switzerland: how the IBAN is used

Switzerland participates in SEPA without being in the EU or EEA, and its 21-character IBAN, standardised under the Swiss National Bank and SIX Interbank Clearing, covers both Swiss franc and euro payments. The market pairs the global giant UBS — which absorbed Credit Suisse in 2023 — with 24 cantonal banks, the Raiffeisen cooperatives and PostFinance. Switzerland also runs a parallel identifier worth knowing in testing: the QR-IBAN, used only for QR-bill payments, which looks like a normal IBAN but carries a special bank clearing range and a different reference scheme.

How to read a Switzerland IBAN

A Swiss IBAN is CH plus two check digits plus a seventeen-character BBAN: a five-digit bank clearing number (the IID) followed by a twelve-character account number that is usually numeric but may contain letters, right-aligned and padded. The clearing number is the trap for the unwary: values from 30000 to 31999 mark a QR-IBAN rather than a standard account IBAN, and the two types are not interchangeable in payment files even though both pass mod-97.

The worked example in the format table above — CH92 9615 7PU8 O7PA ONMG 0 — follows exactly this pattern.

Major banks in Switzerland

  • UBS — Switzerland's largest bank, which took over Credit Suisse in 2023
  • Zürcher Kantonalbank — the biggest of the 24 cantonal banks
  • Raiffeisen Schweiz — the cooperative network with the most branches
  • PostFinance — the postal financial institution, a payments heavyweight
  • Banque Cantonale Vaudoise — a leading French-speaking cantonal bank
  • Julius Bär — a major private bank, without retail payment accounts

Common Switzerland IBAN mistakes

  • Treating a QR-IBAN as a normal IBAN in accounts-payable imports: it validates, but it belongs to the QR-bill system and needs a QR reference.
  • Rejecting letters in the account field — Swiss account numbers inside the IBAN can be alphanumeric.
  • Using a bank's BIC clearing shorthand instead of the five-digit IID that actually appears in the IBAN.
  • Assuming Liechtenstein uses CH: it has its own LI IBANs, though it shares the Swiss clearing infrastructure and franc.

Country-specific testing notes

Swiss fixtures should pair an ordinary IBAN with a QR-IBAN (clearing number in the 30000–31999 range) and assert that your system routes them differently. Add alphanumeric account fields, a maximum-length value, and a case where the IID belongs to a cantonal bank rather than a big name — code tables biased to UBS miss most of the Swiss market.

What format checks can and cannot tell you

Our checks confirm the Swiss structure and mod-97 digits; they do not distinguish payment context — a QR-IBAN and a standard IBAN both pass — and they do not confirm that an IID is active in the SIX directory. For Swiss payment testing, classify the clearing range as a separate step after format validation.

More countries

Frequently asked questions

21 characters: CH + 2 check digits + 5-digit bank clearing number + 12-character account.
A Swiss IBAN variant (institution ID 30000: 31999) used with the QR-bill's QR reference instead of the Creditor Reference.
They are synthetic test values with valid structure and check digits. This site does not query live bank directories, so generated values are not guaranteed to be unassigned.
Yes: paste any Switzerland IBAN into our IBAN validator to check its length, structure and mod-97 checksum.
A QR-IBAN is a Swiss IBAN whose five-digit clearing number falls between 30000 and 31999. It is used exclusively with QR-bills and a structured QR reference; ordinary transfers should use the creditor's standard IBAN.
Yes. The twelve-character account part is alphanumeric in the Swiss specification, even though most retail accounts use digits only.
Testing and educational use. Generated identifiers are synthetic and are not checked against live bank directories. A randomly generated value can coincidentally resemble or match a real identifier. Never use generated data for real payments, account applications, identity verification, or to represent a real person or institution.