Generador y verificador de números de referencia Bankgiro OCR (Suecia)

Verifique los números OCR de las facturas o génerelos a partir de los números del cliente y de la factura con el dígito de verificación mod 10 y, si su acuerdo lo utiliza, el dígitos de longitud.

Se ejecuta en tu navegador. Tus archivos nunca salen de tu dispositivo. Cómo comprobarlo

…

Cómo hacerlo

  1. 1
    Establece tus reglas

    Marque el dígito de longitud si su acuerdo lo utiliza y establezca los límites de longitud.

  2. 2
    Verifique las referencias

    Pegar números de OCR, uno por línea, para ver cuál pasa.

  3. 3
    Generar

    Utilice el botón de muestra o agregue dígitos de verificación a sus propios números base.

  4. 4
    Corregir errores

    Utilice el dígito de verificación esperado para corregir referencias incorrectas.

  5. 5
    Exportación

    Descarga los resultados como CSV.

Sobre esta herramienta

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.

Ejemplo práctico

El número de base 123456789 obtiene el dígito de verificación 7, por lo que la referencia OCR es1234567897.

Datos rápidos

Preguntas frecuentes

¿Cómo se calcula el dígito de verificación del OCR?

Con el método de módulo 10 (Luhn): duplica cada otro dígito desde la derecha, suma los dígitos y redondea hasta el siguiente diez.

¿Cuál es el dígito de longitud?

El último dígito de la longitud total, colocado antes del dígito que se comprueba, solo se utiliza si su acuerdo tiene un control de longitud.

¿Cuánto tiempo puede durar un número de OCR?

De 2 a 25 dígitos, salvo que su acuerdo establezca una longitud o un rango fijo.

¿Por qué se rechazó un pago?

Por lo general, porque el número de OCR fue escrito mal y el dígito de verificación ya no coincide.

¿Esto funciona para Plusgiro?

Sí, las referencias OCR de Plusgiro utilizan el mismo control modulo 10.

¿Se han subido mis números?

No, el cheque se ejecuta solo en tu dispositivo.

Totalmente gratisSin coste, sin registro
Tus archivos son privadosTodo se ejecuta en tu navegador
Fácil en tu idiomaDisponible en muchos idiomas