Skip to main content
Skip to main content

CIF Validator (Romania Tax ID / Cod Fiscal)

Validate authenticity, structure, and Modulo 11 checksum of Romanian CIF / Cod Fiscal numbers.

About Romanian CIF Validation

This tool verifies that the CIF contains 2 to 10 digits and validates the final check digit against the official ANAF Modulo 11 algorithm.

Supports inputs with or without the 'RO' prefix, performing real-time in-memory client-side validation.

CIF Validation Algorithm

  1. Remove whitespace and dashes, detecting optional 'RO' prefix.
  2. Ensure the numeric part contains between 2 and 10 decimal digits.
  3. Left-pad the base number with zeros to 9 digits.
  4. Calculate weighted sum using weights [7, 5, 3, 2, 1, 7, 5, 3, 2] and formula (Sum × 10) % 11.
  5. Compare computed check digit with the final digit provided.

Frequently Asked Questions & Technical Guidelines