Peru DNI validator
Validate a Peruvian DNI (Documento Nacional de Identidad), the national ID issued by RENIEC. The DNI is an 8-digit serial number; this tool confirms the format and computes the RENIEC-style modulo-11 verification digit that banks and online services often require alongside it. You can also enter a digit to check whether it matches.
How it works
The verification digit comes from a weighted modulo-11 checksum of the 8 digits:
weights = 3, 2, 7, 6, 5, 4, 3, 2 (applied left to right)
sum = Σ (digit × weight)
r = 11 − (sum mod 11)
digit = 0 if r = 10, 1 if r = 11, otherwise r
The 8-digit format check is exact. The DNI itself carries no official check digit, so this is a format and verification-digit tool, never a registry lookup.
Example
For DNI 10203040:
- Products: 1×3 + 0×2 + 2×7 + 0×6 + 3×5 + 0×4 + 4×3 + 0×2 = 3 + 14 + 15 + 12 = 44
- 44 mod 11 = 0 → r = 11 − 0 = 11 → verification digit = 1
So this DNI would be written 10203040-1 where a check digit is required.
| Step | Value |
|---|---|
| Weighted sum | 44 |
| sum mod 11 | 0 |
| 11 − remainder | 11 |
| Verification digit | 1 |
It is privacy-first: nothing leaves your browser. The validator checks format and computes the verification digit only — it never confirms the DNI against any registry.