| Code | Scope | Length | Check digit | Confidence |
|---|---|---|---|---|
CL_RUT |
both (universal) | 1-8 base + 1 DV | mod-11 cyclic | high |
CL_RUT — Rol Único Tributario / Rol Único NacionalUniversal personal + tax identifier. Naturales receive a RUN from the Servicio de Registro Civil; jurídicas receive a RUT from the Servicio de Impuestos Internos. Both share the same number space and validation algorithm — nationid exposes them as a single document type.
12.345.678-5 or 8.765.432-K with thousands separatorsmod-11 with cyclic weights 2, 3, 4, 5, 6, 7 applied right-to-left.
weights = cycle [2, 3, 4, 5, 6, 7] applied right-to-left over the base digits
sum = sum(digit_i * weight_i)
r = sum mod 11
dv = 11 - r
if dv == 11: '0'
if dv == 10: 'K'
otherwise: str(dv)
rut.js (npm) and validator.jsvalid:
- 12345678-5
- 8765432-K
- 12.345.678-5
- 8.765.432-K
invalid (format):
- 1234 (no DV)
- abcdefg (non-digits)
invalid (checksum):
- 12345678-0
- 8765432-9
K is case-insensitive in input but normalized to uppercase K in outputCL_PASAPORTE — PasaporteTravel document issued by the Servicio de Registro Civil e Identificación (SRCeI). Until Aug 2013 the passport number equaled the holder's RUN; since then numbers are unique and independent of RUN. Current samples are 8-9 alphanumeric chars.
None on the printed number. MRZ check digit lives in
algorithms/icao-9303.ts.
low — no SRCeI public format spec.