Skip to main content

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:

PositionFieldLengthMeaning & RuleExample
1 to 8Civil Identification Serial8 digitsUnique numerical sequence assigned by RENIEC to Peruvian citizens12.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. 1. Strip dots and spaces.
  2. 2. Confirm total length is exactly 8 numerical digits.
  3. 3. Discard artificial repeated sequences (e.g. 00000000, 11111111).

Frequently Asked Questions