Ecuador cédula validator
Every Ecuadorian citizen is assigned a 10-digit cédula de identidad by the Registro Civil. The number is not random: it encodes a province code, a holder-type digit, a birth-order serial, and a final modulo-10 verifier that detects typos. This tool checks all three structural rules and reports instantly whether a cédula is well-formed.
How it works
The validator applies the official Módulo-10 (Luhn-style) algorithm. First it reads the first two digits as a province code and requires them to be 01–24 or 30. The third digit must be below 6 to mark a natural person. Then it runs the check digit: each of the first nine digits is multiplied by the coefficients 2,1,2,1,2,1,2,1,2; any product over 9 has 9 subtracted; the products are summed; and the expected verifier is (10 − (sum mod 10)) mod 10, which must equal the tenth digit. A cédula is valid only when the province, type and check digit all pass.
Example
Take 1710034065. The province is 17 (Pichincha) — valid. The third digit is 1 (< 6) — a natural person. Running the coefficients over 171003406 and reducing gives a sum whose check digit is 5, matching the final digit. The number is reported valid.
| Position | Digits | Meaning |
|---|---|---|
| 1–2 | 17 | Province (Pichincha) |
| 3 | 1 | Holder type (natural person) |
| 4–9 | 003406 | Birth-order serial |
| 10 | 5 | Modulo-10 check digit |
It is privacy-first: nothing leaves your browser. The validator checks the algorithm and structure only — it never confirms the number against the Registro Civil.