Peruvian DNI Generator
Generate and format valid 8-digit Peruvian Documento Nacional de Identidad (DNI) numbers for QA testing.
Waiting for generation...
About the Peruvian DNI
The DNI is the 8-digit national identity document issued by RENIEC in Peru.
It is the primary legal identifier for personal, civic, and financial operations.
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).