Skip to main content

Costa Rica Identity Card Validator (TSE)

Validate the structural integrity of 9-digit Costa Rica Cédula de Identidad numbers.

How does Costa Rica Cédula validation work?

It verifies that the document contains exactly 9 decimal digits, a valid province code (1-9), and non-zero volume and entry numbers.

Accepts both formatted (P-TTTT-AAAA) and raw numeric input.

Cédula Structure

Components of the 9-digit code:

PositionFieldLengthMeaningExample
1Province1 digitProvince code (1 to 9)1
2-5Volume4 digitsRegistry volume0234
6-9Entry4 digitsRegistry entry0567

Structural Validation Algorithm

TSE Verification:

Strict 9-Digit Number Validation
  1. 1. Strip non-digits and assert exactly 9 digits length.
  2. 2. Check province within [1..9].
  3. 3. Reject volume or entry with '0000'.

Frequently Asked Questions