Skip to main content
Skip to main content

Costa Rica Corporate ID Validator (Cédula Jurídica)

Validate the structural syntax, corporate class codes, and length of 10-digit Costa Rican Corporate IDs (3-XXX-XXXXXX).

How does Costa Rica Cédula Jurídica validation work?

Validation checks that the number contains exactly 10 digits, starts with '3' indicating a legal entity, and features a recognised entity classification code according to the National Registry of Costa Rica.

Both hyphenated (3-XXX-XXXXXX) and unformatted (3XXXXXXXXX) inputs are accepted.

Structural Layout of Cédula Jurídica

Composition of the 10 digits in the Costa Rican corporate identifier:

PositionFieldLengthMeaningExample
1st digitClass1 digitPrefix for legal entities (always '3').3
Digits 2 to 4Entity Type3 digitsCorporate type code (e.g. 101, 102, 108, 110).101
Digits 5 to 10Consecutive6 digitsSequential registration number.654321

Validation Algorithm

Verification steps executed by the validator:

Format = 3-XXX-XXXXXX (Strict 10 digits)
  1. 1. Sanitization: Strip hyphens, whitespace, and formatting characters.
  2. 2. Length: Confirm total character count is exactly 10 decimal digits.
  3. 3. Class: Verify first digit is '3'.
  4. 4. Entity Code: Check that digits 2-4 match a valid corporate entity code (101-115).
  5. 5. Sequential: Ensure the final 6 digits are non-zero.

Frequently Asked Questions (FAQ)