How to use QR-Referenz check digit
- 01Type your numberUp to 26 digits, or a full reference.
- 02Read both referencesQR reference and RF reference.
- 03Copy the QR referenceAll 27 digits.

21 00000 00003 13947 14300 0901 → check digit 7.
A QR reference is 26 digits of your own plus a check digit worked out with Modulo 10 rekursiv, as SIX’s QR-bill guidelines describe. The tool pads your number, adds the check digit, and also builds the ISO 11649 RF reference you use with a normal IBAN.
QR-Referenz Prüfziffer berechnen without a spreadsheet: type the customer or invoice number you want on the QR-bill and the tool returns the full 27-digit QR reference, ready for the payment part. It also builds the RF Creditor Reference for invoices paid to a normal IBAN, and it checks references you already have.
How a QR reference is built
SIX’s Swiss Implementation Guidelines for the QR-bill define the QR reference as 26 digits followed by one check digit. What goes into the 26 digits is up to you: most invoicing tools put a customer number and an invoice number there and fill the rest with zeros in front.
The reference must not be all zeros, it contains digits only, and it may only be used together with a QR-IBAN for invoices in CHF.
- Positions 1–26: your own digits, padded with zeros in front.
- Position 27: the check digit from Modulo 10 rekursiv.
- Printed in blocks of five from the right: 21 00000 00003 13947 14300 09017.
Modulo 10 rekursiv, step by step
The method in Annex B of the guidelines reads the digits from left to right with a running carry that starts at 0. For each digit, the carry and the digit are looked up in a fixed table, and the result is the new carry. After the 26th digit, the check digit is 10 minus the carry, and 10 becomes 0.
In the guidelines’ own example, 21 00000 00003 13947 14300 0901, the carry goes 0 → 4 after the 2, 4 → 2 after the 1, and ends at 3 after the last digit, so the check digit is 10 − 3 = 7. Type that number above and the working shows every carry.
QR reference or Creditor Reference?
The RF check digits follow ISO 11649: put RF00 after the reference, turn letters into numbers (A = 10 … Z = 35), divide by 97 and subtract the remainder from 98. The guidelines’ example RF18 5390 0754 7034 passes this check.
- QR-IBAN (its bank code is between 30000 and 31999): use the QR reference, type QRR.
- Normal IBAN: use the Creditor Reference, type SCOR. It starts with RF and two check digits, followed by up to 21 letters or digits, and works for CHF and EUR.
- No reference at all: type NON, with an optional free-text message.
If the bank rejects the reference
- Check that it has exactly 27 digits and no letters. Paste it above to see whether the check digit is right.
- Make sure the account on the QR-bill is a QR-IBAN. A QR reference with a normal IBAN is rejected; use an RF reference there.
- If the 27th digit is wrong, the tool shows which one it should be. Regenerate the reference from your 26 digits rather than editing it by hand.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
When do I use a QR reference and when an RF reference?
A QR reference only works together with a QR-IBAN, the special IBAN your bank gives you for QR-bills with reference. With a normal IBAN you use the Creditor Reference (RF) instead, or no reference.
Can the QR reference contain letters?
No. It is always 27 digits. If your invoice numbers contain letters, use an RF reference, which allows letters and digits.
Is the check digit worked out like on the old orange ESR slips?
Yes. The old ESR reference number also used Modulo 10 rekursiv, so the check digit is calculated the same way.
Is anything sent to a server?
No. The calculation runs in your browser.
Can I use the same reference twice?
The check digit doesn’t prevent it, but the reference exists so you can match each payment to one invoice. Most invoicing tools make every reference unique.
What is the difference between QRR, SCOR and NON?
They are the three reference types in the QR-bill: QRR is the 27-digit QR reference, SCOR the RF Creditor Reference, and NON means no structured reference.
Does the tool make the QR code too?
No. It only works out the reference. Your invoicing software or bank puts it into the Swiss QR code.