Invoicing
What is an OCR number and how does it work?
2026-09-18
If you have ever received an invoice with a long string of digits under a heading like "OCR" or "OCR number," you have run into a common but often misunderstood part of Swedish invoicing. Here is what it actually is, how it differs from an ordinary payment reference, and whether your business needs one.
What is an OCR number?
An OCR number is a unique numeric code attached to an invoice that lets the recipient's bank automatically match an incoming payment to the correct invoice, with no person needing to read who paid what. The number usually includes a check digit calculated with a fixed mathematical formula (the Luhn algorithm), so the banking system can catch a mistyped number before the payment is recorded.
OCR number vs. an ordinary payment reference
People often conflate an OCR number with a regular payment reference or invoice number, but they solve different problems. An ordinary payment reference (such as the invoice number) is text the customer types in manually when paying, which you then read and match to the right invoice yourself. A true OCR number is instead tied to a Bankgiro or Plusgiro agreement with automatic scanning, where the entire process happens by machine with no manual reconciliation.
Does your business need an OCR number?
OCR numbers with automatic scanning mainly matter for businesses handling very large volumes of incoming payments, such as housing associations, utility companies, or other operations billing thousands of customers a month. For most small businesses and sole traders, a clear, consistent payment reference on the invoice, such as the invoice number, is entirely sufficient, since the number of payments to reconcile each month is easily manageable by hand or with a simple bookkeeping view.
In FakturaKlar you can add a payment reference to every invoice so both you and the customer can easily connect a payment to the right invoice. If you later grow and need a true OCR agreement with automatic scanning, you arrange that separately with your bank, and that number can then be entered manually as the payment reference on your invoices.
Summary
OCR numbers are a powerful tool for large-scale, automated payment handling, but for most small businesses a clear, consistent payment reference is entirely enough. What matters is that the reference is always included, is readable, and that the customer actually uses it when paying.