
What an IBAN is and what it is for
The IBAN replaces the old account numbers, which were structured differently from bank to bank, with a uniform format. Every IBAN starts with the country code, followed by two check digits and the national account details, known as the BBAN (Basic Bank Account Number). Each country decides for itself how long the BBAN is. That is why a German IBAN has 22 characters, an Austrian one 20 and a Swiss one 21.
An SME comes across the IBAN in three places: on its own invoices, so that customers know where to pay; in e-banking, when you pay a supplier invoice yourself; and in personnel files, because salaries and expenses are paid into employees’ accounts. In all three cases, the IBAN is the address of the money. One swapped character can delay a payment or, in the worse case, send it to someone else’s account.
The IBAN on its own says nothing about the account holder. You always give the recipient’s name with a payment, but you should not rely on the bank checking it. What determines where the money is credited is the IBAN. Anyone who prints their own IBAN incorrectly on an invoice will, at best, get the money back late.
The Swiss IBAN character by character
SIX, the operator of the Swiss payment infrastructure, describes the Swiss IBAN as having 21 characters [1]. The example CH93 0076 2011 6238 5295 7 from the SIX documentation shows the structure well:
| Positions | Content | In the example | Meaning |
|---|---|---|---|
| 1 to 2 | Country code | CH | Switzerland (LI for Liechtenstein) |
| 3 to 4 | Check digits | 93 | Calculated from all other characters |
| 5 to 9 | Institution identification (IID) | 00762 | Bank or financial institution, shorter numbers padded with zeros |
| 10 to 21 | Account number | 011623852957 | Account at this bank, twelve characters, letters possible |
The IID is the successor to the former bank clearing number. It tells you which bank holds an account. SIX publishes the assignment in the bank master data, which is updated daily [2]. If positions five to nine lie between 30000 and 31999, it is a QR-IBAN. This number is only valid for QR-bills (QR-Rechnungen) with a QR reference and cannot be used for any other type of payment.
The twelve-character account number is alphanumeric. It usually contains digits, but some banks also use letters, as the second SIX example shows: CH35 0023 0230 1234 5601 X. If a form only accepts numbers for account numbers, it excludes such accounts.
The old postal account numbers in the format 12-345678-9 also live on in the IBAN. PostFinance has the IID 09000, and the former postal account number sits in the last characters. If you still keep master data with such numbers, for example for long-standing suppliers, replace them with the full IBAN. Since the QR-bill finally replaced the old payment slips (Einzahlungsscheine) in October 2022, the payment part only accepts an IBAN or QR-IBAN, no account number in any other format. The same applies to customer accounts you have stored for refunds or credit notes.
How the check digits work
The two digits in the third and fourth positions are not random. They are calculated using the Modulo 97-10 method from the ISO/IEC 7064 standard. The method detects all errors in a single character and almost all swaps of two adjacent characters. Every bank rejects an IBAN with wrong check digits before any money moves.
- Remove spaces
“CH93 0076 2011 6238 5295 7” becomes CH9300762011623852957.
- Move the first four characters to the end
Country code and check digits move to the end: 00762011623852957CH93.
- Convert letters into numbers
A becomes 10, B becomes 11 and so on up to Z as 35. C becomes 12, H becomes 17. The result is the number 00762011623852957121793.
- Take the remainder after dividing by 97
If you divide this long number by 97, the remainder must be exactly 1. For the sample IBAN this is the case, so the number is formally valid.
The check digits are created the other way round: the bank inserts two zeros in their place, calculates the remainder after dividing by 97 and subtracts it from 98. In the example the remainder is 5, and 98 minus 5 gives the check digits 93. A programme does this in a fraction of a second; by hand it is tedious because of the long numbers.
Correct check digits only mean that the number is properly constructed. They do not show whether the account exists or who it belongs to. Only the recipient’s bank can confirm that.
IBAN on invoices, payslips and in e-banking
In Switzerland there is no legal requirement to print the IBAN on every invoice. In practice, though, there is no way around it: the payment part of a QR-bill always contains the payee’s account, either the normal IBAN or the QR-IBAN. On the invoice itself, the bank details often also appear in the footer, so that companies without a scanning function can pay manually.
- On paper and in PDFs you write the IBAN in groups of four; in Switzerland the last group has only one character. That makes it easy to compare when typing it in.
- In forms and files the IBAN belongs without spaces or special characters. SIX explicitly recommends this for electronic transmission.
- For salaries you need the IBAN of every employee. It is personal data and is only shown to those who need it to make the payment.
- For payments abroad within the SEPA area, the IBAN is usually enough. Outside this area, banks also require the BIC of the recipient’s bank.
Companies with a euro account are a special case. They have a separate IBAN for this account, which also starts with CH because the account is held at a Swiss bank. For invoices to customers in Germany or Austria, this euro IBAN is the right detail to give, not the Swiss franc IBAN.
Beware of changed account details
A widespread scam targets precisely the IBAN. Criminals take over an email account or fake a supplier’s sender address and announce that the bank details have changed. The next invoice is then paid into their account. The Federal Office for Cybersecurity describes this approach as a variant of CEO fraud [3].
- Never accept a new IBAN on the strength of an email alone; call back on a known phone number.
- Read the bank from the IID: does it match the supplier and its location?
- Only allow changes to your own IBAN in the software after an additional confirmation, and log them.
- Check the first payment to new bank details deliberately before approving it.
The same applies the other way round to your own invoices. If a customer asks whether the IBAN on the invoice is really correct, that is not mistrust but diligence. A short confirmation by phone protects both sides.
A practical example
Example: a typing error when entering a supplier’s IBAN
The fictitious Schreinerei Muster GmbH, a joinery in Burgdorf, receives an invoice for CHF 2'480.00 from a new timber supplier. The bookkeeper types the IBAN in from the PDF because the payment part is badly printed. Instead of CH93 0076 2011 6238 5295 7 she enters CH93 0076 2011 6235 8295 7: the digits 8 and 5 are swapped.
The e-banking recalculates the check digits. With the swapped number, dividing by 97 leaves a remainder of 36 instead of 1, and the payment is rejected immediately. The bookkeeper compares the groups of four with the PDF, corrects the group 6238 and approves the payment. Had she typed one digit too many instead, the length of 21 characters would not have matched.
Invented example using the sample IBAN from the SIX documentation. This number does not belong to any real supplier.
How VoxCRM helps
yesIn VoxCRM’s company profile you enter the IBAN and QR-IBAN in separate fields. VoxCRM checks the length and check digits as you type, names the bank and warns you if a QR-IBAN is in the wrong field. Changing the bank details requires an additional confirmation. The IBAN then appears on every invoice in the QR payment part.
