Skip to main content

Indonesian NIK / KTP Generator

Generate and format valid Indonesian Nomor Induk Kependudukan (NIK) numbers for software QA.

Waiting for generation...

About the Indonesian NIK

The NIK (Nomor Induk Kependudukan) is the 16-digit national identity number found on the Indonesian KTP identity card.

It encodes geographic regional codes (6 digits), birth date (6 digits, with +40 on the day for females), and a 4-digit serial number.

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