Check a Swiss QR-IBAN and its QR reference
Paste an IBAN or QR-IBAN and, if the invoice has one, its reference. Every rule of the QR-bill is checked as you type, and a failure shows the character it is about.
Swiss or Liechtenstein. Spaces and lower case are fine.
A QR reference of 27 digits, or a creditor reference starting with RF. Empty means no reference.
Type or paste an IBAN to start.
- Country
- 1 to 2
- Check digits
- 3 to 4
- Institution
- 5 to 9
- Account
- 10 to 21
None
With its check digit:
IBAN or QR-IBAN
- Not checked yet: Characters Letters and digits only.
- Not checked yet: Country CH or LI in positions 1 and 2.
- Not checked yet: Length 21 characters.
- Not checked yet: Check digits Positions 3 and 4, modulo 97.
- Not checked yet: QR-IBAN or IBAN Positions 5 to 9: 30000 to 31999 is a QR-IID.
Reference and pairing
- Not checked yet: Type QR reference, creditor reference, or none.
- Not checked yet: Format 27 digits, or RF and 3 to 23 more characters.
- Not checked yet: Check digit Modulo 10 recursive, or modulo 97 for RF.
- Not checked yet: Pairing QR-IBAN with QR reference; IBAN with RF or none.
Checked in your browser. Nothing you type is sent, stored or put in the address bar.
How it works
The checks run in this order, on the value without spaces and in capitals, which is the form the QR code carries.
| Check | Rule | Where it is written |
|---|---|---|
| Country | Positions 1 and 2 are CH or LI. The QR-bill accepts IBANs from Switzerland and Liechtenstein only. | Guidelines 2.4, Swiss QR Code, account |
| Length | 21 characters. Spaces belong to the printed form only; the QR code carries none. | Guidelines 2.4, Swiss QR Code, account |
| Check digits | Positions 3 and 4. Move the first four characters to the end, turn each letter into two digits (A = 10 to Z = 35) and divide by 97: the remainder must be 1. | ISO 13616, as the QR-IID document applies it (3.2) |
| QR-IBAN or IBAN | Positions 5 to 9 are the institution identifier. A value from 30000 to 31999 is a QR-IID, and the account is a QR-IBAN. Any other value is an ordinary IBAN. | QR-IID document 1.1, 1.3.4 and Illustration 2 |
| QR reference | 27 digits, not all zeros. The 27th is a check digit worked out from the first 26 with modulo 10 recursive. | Guidelines 2.4, 2.12.1 and Annex B |
| Creditor reference | RF, two check digits, then 1 to 21 letters or digits: 5 to 25 characters in all. Moved and counted like an IBAN, the remainder by 97 must be 1. | Guidelines 2.4, 2.12.2 (ISO 11649) |
| Pairing | A QR-IBAN takes a QR reference (type QRR) and nothing else. An ordinary IBAN takes a creditor reference (SCOR) or no reference (NON). QR-IBAN and QR reference are for CHF only. | Guidelines 2.4, reference type, 2.10 and 7.1 |
| Printed form | The IBAN in blocks of four, the last character on its own. The QR reference as two digits, then five blocks of five. The creditor reference in blocks of four. | Guidelines 2.4, 3.5 |
How the QR reference check digit works
Start with a carry of 0. For each of the 26 digits, add the digit to the carry, take the last digit of the sum, and look it up in the row 0, 9, 4, 6, 8, 2, 7, 1, 3, 5: the number in that place is the new carry. After the 26th digit, the check digit is 10 minus the carry, or 0 when the carry is 0.
SIX's own example: for 21 00000 00003 13947 14300 0901 the last carry is 3, so the check digit is 7 and the full reference is 21 00000 00003 13947 14300 09017. If you paste the 26 digits alone, the checker offers the full reference.
Examples
The valid values are examples that SIX publishes in its QR-bill guidelines. The others are those values with one thing changed. Each button puts the values into the checker above.
-
QR-IBAN with a QR reference
SIX guidelines 2.4, Annex A, example 2
- IBAN
- CH44 3199 9123 0008 8901 2
- Reference
- 21 00000 00003 13947 14300 09017
Valid. 31999 makes it a QR-IBAN, and the QR reference ends in its check digit 7.
-
Ordinary IBAN with a creditor reference
SIX guidelines 2.4, Annex A, examples 5 and 6
- IBAN
- CH58 0079 1123 0008 8901 2
- Reference
- RF18 5390 0754 7034
Valid. 00791 is an ordinary institution, and RF18 passes the modulo 97 check.
-
Ordinary IBAN without a reference
SIX guidelines 2.4, Annex A, example 3
- IBAN
- CH52 0483 5012 3456 7100 0
- Reference
- None
Valid. Without a reference the QR-bill uses type NON.
-
QR-IBAN with a creditor reference
Two values from SIX examples 2 and 5, paired wrongly
- IBAN
- CH44 3199 9123 0008 8901 2
- Reference
- RF18 5390 0754 7034
Not valid. Each value passes alone, but a QR-IBAN takes only a QR reference.
-
One character mistyped
SIX example 2 with its last character changed
- IBAN
- CH44 3199 9123 0008 8901 3
- Reference
- None
Not valid. The last character of example 2 is changed, and the check digits 44 no longer match.
-
QR reference without its check digit
SIX guidelines 2.4, Annex B, figure 22
- IBAN
- CH44 3199 9123 0008 8901 2
- Reference
- 21 00000 00003 13947 14300 0901
Not valid yet. 26 digits: the checker works out the 27th and shows the full reference.
Where Finray does this for you
Corebanq Accounting is accounting software for Swiss SMEs (KMU): Swiss VAT, QR-bill invoicing, bank statement import and payroll, on a journal you can drill back from a statement figure.
Create invoices with a QR-bill. You print them or save them as a file from the browser.
Incoming QR-bills can be scanned from a PDF, from an image or with the camera.
Import camt.053 and camt.054 bank statements by uploading the file.
Sources
- SIX Interbank Clearing: Swiss Implementation Guidelines for the QR-bill, version 2.4 (valid from 14 November 2026)
- SIX Interbank Clearing: Swiss QR-bill, Technical information about the QR-IID and QR-IBAN, version 1.1 (29 February 2020)
ISO 13616 (IBAN) and ISO 11649 (creditor reference) are sold by ISO and were not opened for this page. The rules above are quoted as the SIX documents state them.
In the demo we walk through how documents are prepared, approved and posted, and how a VAT return is reviewed and exported.
Book a demo