Skip to main content

Indonesian NIK / KTP Validator

Validate Indonesian Nomor Induk Kependudukan (NIK) numbers in real time.

Indonesian NIK Validation

Validates the 16-digit structure, calendar date consistency, and regional administrative codes.

Essential for fintech, KYC, and e-commerce platforms operating in Indonesia.

Anatomy & Structure of NIK (Nomor Induk Kependudukan)

The Indonesian NIK consists of 16 digits structured in 4 parts:

PositionFieldLengthMeaning & RuleExample
1 & 2Province Code2 digitsOfficial BPS province code (11 to 94, e.g., 31 = DKI Jakarta)31
3 to 6Regency & District4 digitsKabupaten/Kota (pos 3-4) and Kecamatan code (pos 5-6)7101
7 to 12Date of Birth6 digitsFormat DDMMYY; Females have day increased by 40 (days 41 to 71)470390
13 to 16Unique Sequential4 digitsSequential number issued by Dukcapil (0001 to 9999)0001

Official NIK Validation Rules (Law No. 24/2013)

Structural validation and decoding of Indonesian NIK:

Province validation (01-94) + Date DDMMYY (Female: day - 40)
  1. 1. Verify exact length of 16 decimal digits.
  2. 2. Validate province code (positions 1 and 2).
  3. 3. Extract date: if day > 40, subtract 40 (gender female); otherwise gender male.
  4. 4. Validate date consistency for day (1-31), month (1-12), and year.

Frequently Asked Questions