Small Business

Romanian CUI and CIF Codes: Format, Check Digit and VAT Status

How Romanian company tax codes (CUI/CIF) work, how their check digit is calculated with the key 753217532, when to use the RO prefix and how to check.

Saizul Amin
Saizul Amin28 Oct 2026 · 3 min read
Romanian CUI and CIF Codes: Format, Check Digit and VAT Status

Romanian CUI and CIF Codes: Format, Check Digit and VAT Status

Every Romanian company has a CUI, its unique registration code, which is also its fiscal code. Since Romania introduced mandatory electronic invoicing through e-Factura, a wrong CUI on an invoice is caught by the system and the invoice is rejected or lands with the wrong company. The Romania CUI and CIF Validator checks codes in bulk; this guide explains how they work.

CUI, CIF and the RO prefix

  • CUI (cod unic de înregistrare): assigned by the Trade Register (ONRC) when a company is registered.
  • CIF (cod de identificare fiscală): the fiscal code used by ANAF; for companies, it is the same number as the CUI.
  • RO prefix: added before the CUI when the company is registered for VAT, for example RO18547290.

A company not registered for VAT still has a CUI but must not write RO before it on invoices.

The structure

A CUI has between 2 and 10 digits. The last digit is a check digit calculated from the others.

The check digit

  1. Remove the check digit and pad the rest with leading zeros to 9 digits.
  2. Multiply the digits by the key 7, 5, 3, 2, 1, 7, 5, 3, 2.
  3. Add the products and multiply the sum by 10.
  4. Divide by 11 and take the remainder. If it is 10, the check digit is 0; otherwise the remainder is the check digit.

The method catches most single wrong digits and swaps.

Checking a partner

Before working with a new Romanian company, check its CUI in ANAF's public registry. The registry shows:

  • the registered name and address,
  • whether the company is registered for VAT,
  • whether it applies VAT on collection (TVA la încasare),
  • whether it is declared inactive.

Paying an inactive company or one not registered for VAT while deducting VAT can cost you the deduction. For EU trade, check the RO VAT number in VIES.

e-Factura and SAF-T

Since 2024, invoices between Romanian businesses must be issued through the national e-Factura system, and B2C invoices followed in 2025. The buyer's CUI is a key field. Larger companies also report data through SAF-T (D406). In both, correct CUI codes are essential.

Trade register number

Besides the CUI, companies have a trade register number, historically in the form J40/1234/2020, with a new format introduced in 2024. It identifies the registration file, has no check digit and is not used as a tax code.

Individuals and sole traders

Individuals use their CNP as fiscal code. Authorised persons and individual enterprises (PFA, II) registered at the Trade Register receive a CUI. Foreigners without a CNP receive a NIF from ANAF.

Validating a list

Paste codes one per line, with or without RO. The validator shows which are valid, the expected check digit for invalid ones and the RO form. Export the results as CSV, then check VAT status for the companies that matter in the ANAF registry.

Common errors

  • Writing RO before the CUI of a company that is not a VAT payer.
  • Dropping or adding a digit when copying.
  • Confusing the CUI with the trade register number.

Using the validator

Paste codes one per line, with or without RO and spaces. Each line shows whether the check digit is correct, the expected digit for failures and the RO form. Export the results as CSV and then check the VAT status of new or important partners in the ANAF registry before issuing or paying invoices.

Limits

A correct format does not prove that a company exists or is active. Use the ANAF registry and VIES for confirmation. This guide is general information.

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