Swiss IBAN generator

IBANs in Switzerland have 21 characters and start with CH. The one below is random, follows the national structure and passes the MOD-97 check, so form validation accepts it. No bank issued it.

Format

CH8700700965448902659

  1. Country CH
  2. Check digits 87
  3. Bank code 00700
  4. Account number 965448902659
Generate a list Up to 100 IBANs, as CSV, JSON, SQL or plain text

In CSV, JSON and SQL, every IBAN segment (bank, branch, account, check digits) gets its own column.

MOD-97 valid

Realistic mode: real bank code, random account number. No bank issued this IBAN, but it could match a real account by chance. Never use it for payments.

Check an IBAN

Paste an IBAN from any country to check its length, format and check digits.

Without JavaScript, this form opens the full IBAN validator.

Full IBAN validator

Swiss IBAN format

Length, pattern and the position of each segment in CH IBANs, with a sample IBAN.

IBAN length 21
BBAN length 17
BBAN pattern 5n12c
Structure CHkk bbbbb cccc cccc cccc
Example, electronic CH9300762011623852957
Example, print CH93 0076 2011 6238 5295 7
Letters in the BBAN Positions 10–21: letters or digits
National check digits None
Same structure as Liechtenstein (LI)
SEPA Member (EPC list, December 2025)
Source SWIFT IBAN Registry, Release 102 (June 2026)

Position by position

Segment Positions Length Example
Country 1–2 2 CH
Check digits 3–4 2 93
Bank code 5–9 5 00762
Account number 10–21 12 011623852957

In the pattern, n stands for a digit, a for an uppercase letter and c for a letter or digit. The number before each letter is how many characters that block has.

Real bank codes in realistic mode

In realistic mode, the default, the generator takes the bank code from this list and keeps the account number random, so no bank issued these IBANs. With Realistic off, the bank code is random too.

Bank Bank code
UBS Switzerland 00230
PostFinance 09000
Zürcher Kantonalbank 00700
Raiffeisen Schweiz 80000
Banque Cantonale Vaudoise 00767
Basler Kantonalbank 00770
Berner Kantonalbank 00790

What to test with CH IBANs

  • Accept exactly 21 characters for CH, after removing spaces, and reject 20 or 22.
  • Letters or digits at positions 10–21: a digits-only regex rejects valid CH IBANs. Realistic mode, the default, uses digits only there; with Realistic off, the generator puts letters there about half the time.
  • Same structure as Liechtenstein (LI). The country code is part of the MOD-97 calculation, so a valid CH IBAN with another country code in front must fail.
  • Ready-made invalid values for negative tests: CH9300762011623852958 (last character changed, MOD-97 fails) and CH930076201162385295 (one character missing).
  • Bank directory checks: by default the generator uses real bank codes such as 09000 (PostFinance), and random ones with Realistic off, so you can test a known and an unknown bank.

About IBANs in Switzerland

Swiss IBANs have 21 characters: a 5-digit bank clearing number followed by a 12-character account number that can contain letters. Switzerland is not in the European Union, but Swiss banks take part in SEPA, so these IBANs also work for euro transfers.

Questions about IBANs in Switzerland

How long is an IBAN in Switzerland?

21 characters: the country code CH, two check digits and a national part (BBAN) of 17 characters.

What does an IBAN from Switzerland look like?

For example CH93 0076 2011 6238 5295 7. That is the print format, in groups of four. Forms and files usually take it without spaces: CH9300762011623852957.

Can Swiss IBANs contain letters?

Yes. Letters or digits are allowed at positions 10–21, although the registry example has only digits there.

Where is the bank code in Swiss IBANs?

The bank code, at positions 5–9: 00762 in the registry example. By default (realistic mode) the generator uses real bank codes, such as 00230 for UBS Switzerland.

Will a test IBAN for Switzerland pass validation?

It passes the checks most forms run: country code, length, character format and MOD-97 check digits. In realistic mode, the default, the bank code is real too, so a bank directory check accepts it. An account lookup or a payee name check will not confirm it, because the account number is random.

Can I use a generated Swiss IBAN to sign up for a service or receive money?

No. It is test data that no bank issued to you. Money sent to it is rejected or, if the number happens to belong to someone, reaches a stranger, and using it for a sign-up, a free trial or a direct debit is misuse. Your own IBAN is in your banking app and on your statements.

Other countries

Pick a country to see its IBAN format and get a valid test IBAN. The number next to each code is the IBAN length.