Virtual barcode: create and decode an invoice's bank barcode
A virtual barcode (virtuaaliviivakoodi) is the content of an invoice's bank barcode as digits. It has 54 digits that combine the payee's account number, the amount, the reference and the due date. The payer copies it into online banking, and the details don't need to be typed one by one. With this calculator, you can create the code for your own invoice or decode a code you've received and see which account and reference the payment goes to.
What does a virtual barcode consist of?
The first digit of the code is the version. It is followed by the payee's IBAN account number without the FI country code, the amount in euros and cents, the reference and the due date in the format YYMMDD. The table shows the structure of version 4 according to Finance Finland's bank barcode guide.
The Decode code tab does the same the other way round. It separates the fields, shows the account number and the bank and checks whether the check digits of the account number and reference match. A wrong check digit usually means the code has been copied incorrectly.
| Field | Digits | Content |
|---|---|---|
| Version | 1 | 4 or 5 |
| Payee's account number | 16 | IBAN without the FI code |
| Euros | 6 | 000000–999999 |
| Cents | 2 | 00–99 |
| Reserved | 3 | 000 (version 4 only) |
| Reference | 20 | domestic reference with leading zeros |
| Due date | 6 | YYMMDD or 000000 |
Version 4 or version 5?
Version 4 is used when the invoice has a domestic reference number. Version 5 is used when the reference is an RF reference. The calculator chooses the version based on the reference, so a reference starting with RF produces a version 5 code.
Version 5 has no reserve field. The reference field has 23 digits: the two check digits of the RF reference, padding zeros and the reference part. In the guide's example, the reference RF04 9991 appears in the code as 04000000000000000009991. If the RF reference contains letters, no barcode is made, because a bank barcode only contains digits.
Amount and due date in the code
The amount field has six digits for euros and two for cents, so the largest amount is €999,999.99. When the amount is larger, the biller writes zeros in the amount field or leaves the barcode out. Zeros are also written when the payer can decide the amount themselves.
The due date is in the format YYMMDD in the code, so 30 November 2026 is 261130. The due date field may be filled with zeros, in which case the code has no due date. A reference is always mandatory in a bank barcode, and a code can't be made without a reference.
Bank barcode for the invoice
On a paper invoice, the same series of digits is printed as a barcode. The code type is Code 128 with character set C, and a check character calculated with the modulo 103 method is added at the end of the barcode. The calculator draws the barcode for you. A barcode is only made for a Finnish account, because the account number field contains the 16 digits of an FI account number.
If you make the invoice yourself, the invoice form in the invoice template adds the virtual barcode and the barcode to the invoice automatically. You can calculate the reference with the reference number calculator.
Source: Finance Finland (Finanssiala ry), bank barcode guide (Pankkiviivakoodi-opas), version 5.3. The calculator's results have been checked against the guide's test invoices.
Frequently asked questions
What is a virtual barcode?+
The content of an invoice's bank barcode as a series of 54 digits. It contains the payee's account number, the amount, the reference and the due date. The payer copies it into online banking, and the payment details are filled in at once.
How is a virtual barcode created?+
Version number 4, the payee's IBAN without the FI code (16 digits), the amount (6 digits of euros and 2 of cents), the reserve field 000, the reference with leading zeros to 20 digits and the due date in the format YYMMDD. With an RF reference, version 5 is used, which has no reserve field and a 23-digit reference field.
Can a virtual barcode be made for a foreign account?+
No. The code contains the 16 digits of a Finnish IBAN account number without the FI code, so it only works for a Finnish account.
Why is the amount in a virtual barcode all zeros?+
Zeros are written in the amount field when the invoice amount is over €999,999.99 or when the payer can decide the amount themselves. The payer then enters the amount in online banking.
Is a virtual barcode mandatory on an invoice?+
No. The barcode speeds up payment, but it isn't mandatory. Still, the invoice should clearly show the account number, reference, amount and due date so the payment is matched correctly.
Read more
- Invoice template: create an invoice with a barcode in your browser
- Reference number calculator and RF reference
- IBAN account number format
- Mandatory details on an invoice
- VAT calculator
- Margin calculator
- Mileage allowance calculator
- YEL calculator
- Per diem calculator
- Hourly rate calculator
- Dividend calculator
- Payroll cost calculator
- Net pay calculator
- Depreciation calculator
- Penalty interest calculator
- Car benefit calculator
- Holiday compensation calculator
- Entrepreneur's tax calculator
- Sole trader or limited company calculator
- Foreign per diem calculator
- Back tax and additional prepayment calculator
- YEL daily allowance calculator
- Late-filing penalty calculator
- Business valuation calculator
- Reference number calculator
- Company search by Business ID
- IBAN calculator
- Working day calculator