Generator i kontroler numerów referencyjnych Bankgiro OCR (Szwecja)

Sprawdź numery OCR z faktur lub wygeneruj je z numerów klientów i faktur za pomocą cyfry kontrolnej mod 10 oraz, jeśli umowa ją używa, cyfry długości.

Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić

…

Jak to zrobić

  1. 1
    Ustaw swoje zasady

    W przypadku umowy należy zaznaczyć cyfrę długości i ustawić limity.

  2. 2
    Sprawdź odniesienia

    Wklej numer OCR, jeden na wiersz, żeby zobaczyć który przechodzi.

  3. 3
    Wygenerować

    Użyj przycisku próbki lub dodaj cyfry kontrolne do własnych liczb bazowych.

  4. 4
    Naprawa błędów

    Użyj oczekiwanej cyfry kontrolnej do poprawienia błędnych odniesień.

  5. 5
    Wywóz

    Pobierz wyniki w CSV.

O tym narzędziu

Most Swedish invoices ask the payer to enter an OCR number with the payment. The OCR reference lets the payee's bank match the payment automatically to the right invoice. For Bankgiro receivables with OCR control, the reference must end with a check digit calculated with the modulo 10 (Luhn) method, and some agreements also require a length digit, the last digit of the total length, placed just before the check digit. Payments with a wrong reference are rejected by the payer's bank, which saves you from unmatched payments. This tool generates valid OCR numbers from your invoice or customer numbers and checks existing ones in bulk, with your agreement's length limits.

Who this is for

Small businesses and associations that send invoices with Bankgiro, developers building invoicing software, and accountants checking reference lists.

How the check digit works

Starting from the right of the number without the check digit, every other digit is doubled. When a doubled digit is 10 or more, its two digits are added. The sum of all digits is taken, and the check digit is what brings the sum up to the next multiple of 10. For 123456789 the check digit is 7, so the OCR number is 1234567897. This method catches every single wrong digit and almost all swaps of two neighbouring digits.

The length digit

With OCR control at the highest level, Bankgirot can also check the length. The length digit is the last digit of the total number of digits, including the length digit and the check digit, and it sits just before the check digit. For a base of 12345, the full number has 7 digits, so the length digit is 7 and the check digit is calculated over 123457. Tick the box if your Bankgiro agreement uses length control.

Length limits

OCR references can have from 2 to 25 digits. Your agreement may set a fixed length or a range; enter it so that the checker rejects numbers outside it. A fixed length is common because it makes the length digit unnecessary.

Building good references

A common pattern is customer number plus invoice number, for example 1002 and 3456 become 10023456 plus the check digit. Keep the length fixed if you can, avoid leading zeros that a payer might drop, and print the reference clearly on the invoice and in the payment slip.

Batch

Paste a list of base numbers to see their check digits, or paste references from a bank file to find the ones that are wrong. Export the results as CSV.

Plusgiro

Plusgiro uses the same modulo 10 method for its OCR references, so the checker works for those too, but check your agreement for length rules.

Worked example

The base 123456789 gets the check digit 7, giving 1234567897. With length control, the base 12345 becomes 1234577: length digit 7, then the check digit.

Limits

The tool follows the published method; your bank decides what it accepts. It is not affiliated with Bankgirot.

Przykład z rozwiązaniem

The base number 123456789 gets the check digit 7, so the OCR reference is 1234567897.

W skrócie

Najczęstsze pytania

Jak oblicza się cyfry kontrolne OCR?

Z metodą modulo 10 (Luhn): podwoj każdą drugą cyfrę od prawej, dodaj cyfry i zaokrągnij do następnej dziesiątki.

Jaka jest liczba długości?

Ostatnia cyfra całkowitej długości, umieszczona przed cyfrą kontrolną, używana tylko w przypadku gdy umowa ma kontrolę długości.

Jak długo może być numer OCR?

Od 2 do 25 cyfr, chyba że umowa określa ustalony zakres lub długość.

Dlaczego zapłata została odrzucona?

Zwykle dlatego, że numer OCR został błędnie wpisany i cyfra kontrolna nie pasuje.

Czy to działa na Plusgiro?

Tak, w referencjach Plusgiro OCR używa się tej samej kontroli modulo 10.

Czy moje numery są przesyłane?

Nie, sprawdzanie działa tylko na twoim urządzeniu.

Całkowicie za darmoBez opłat i rejestracji
Pliki zostają prywatneWszystko działa w Twojej przeglądarce
Łatwo w Twoim językuDostępne w wielu językach