Latvia VAT and Registration Number Validator (PVN)

Paste Latvian registration or VAT numbers to check the 11 digits and the check digit, and see the VAT format for invoices.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste numbers

    Registration or VAT numbers.

  2. 2
    Validate

    11 digits and check digit.

  3. 3
    Copy the VAT format

    LV plus the digits.

  4. 4
    Check status

    In VIES or the VID database.

  5. 5
    Fix errors

    Recheck failing lines.

About this tool

Latvian companies and other legal persons receive an eleven-digit registration number from the Register of Enterprises. When they register for VAT, their VAT number is simply LV followed by the same eleven digits. Registration numbers of legal persons start with a digit from 4 to 9, often 4000 for companies, while VAT numbers of individuals and sole traders are based on their personal code, which starts with 0 to 3. The last digit of a legal person's number is a check digit calculated with the weights 9, 1, 4, 8, 3, 10, 2, 5, 7, 6. This validator checks the registration and VAT numbers of legal persons and shows the VAT format.

Who this is for

Accountants, invoicing teams, procurement staff and developers working with Latvian companies.

Structure

- 11 digits. - First digit 4 to 9 for legal persons. - Last digit: check digit. - VAT number: LV + the 11 digits.

The check digit

Multiply the first ten digits by 9, 1, 4, 8, 3, 10, 2, 5, 7, 6 and add the products. Compute 3 minus the remainder of the sum divided by 11. If the result is below −1, add 11. A result of −1 means the number is invalid; otherwise the result must equal the last digit.

Individuals

Individuals registered for VAT use their personal code (personas kods) as the basis of their VAT number. Personal codes follow a different structure and check; use our Latvian personal code validator for those.

Where the number is used

- Invoices: Latvian invoices show the registration number and, for VAT payers, the VAT number. - Contracts and procurement: companies are identified by registration number. - E-services: the State Revenue Service and the Register of Enterprises use it.

Checking VAT status

The State Revenue Service publishes a public database of VAT payers. For EU reverse charge invoices, check the number in VIES. A correct format does not prove registration.

E-invoicing

Latvia is introducing mandatory structured e-invoicing between businesses. The registration number identifies buyer and seller in e-invoices, so valid numbers prevent rejected invoices.

Batch checking

Paste exports from your accounting software to check all customers at once.

Worked example

40003521600 passes the check, so its VAT number is LV40003521600. Changing the last digit to 1 makes it fail.

Common mistakes

- Using a personal code where a company registration number is required. - Missing a digit in the long string of zeros typical of older companies. - Forgetting the LV prefix in VAT fields.

For developers

Strip the LV prefix and spaces, check eleven digits, branch on the first digit for legal persons or individuals, and apply the matching check.

Keep a copy of the VIES confirmation.

Limits

The tool checks legal persons' numbers. Confirm VAT status in VIES or the VID database. It is not tax advice.

Worked example

40003521600 is a valid Latvian registration number; the VAT number is LV40003521600.

Quick facts

Frequently asked questions

What does a Latvian VAT number look like?

LV followed by 11 digits.

Is the VAT number the same as the registration number?

For legal persons, the VAT number is LV plus the registration number.

How is the check digit calculated?

With weights 9,1,4,8,3,10,2,5,7,6 and a mod 11 rule.

What if the number starts with 0 to 3?

It is based on an individual's personal code, checked differently.

Can I check many numbers?

Yes, one per line.

Is my data stored?

Only in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages