Peruvian DNI Validator
Validate 8-digit Peruvian Documento Nacional de Identidad (DNI) numbers in real time.
Peruvian DNI Validation
Checks the 8-digit pattern and rejects repetitive dummy sequences.
Ensures compliance for Peruvian user registration and billing systems.
Anatomy & Structure of Peruvian DNI (RENIEC)
The National Identity Document serves as civil identity in Peru:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 8 | Civil Identification Serial | 8 digits | Unique numerical sequence assigned by RENIEC to Peruvian citizens | 12.345.678 |
Official Peruvian DNI Validation Rules
RENIEC verifies civil identity cards via strict numerical format integrity:
length === 8 && /^[0-9]{8}$/.test(digits) && !/^(\d)\1+$/.test(digits)
- 1. Strip dots and spaces.
- 2. Confirm total length is exactly 8 numerical digits.
- 3. Discard artificial repeated sequences (e.g. 00000000, 11111111).