Indonesia NIK (KTP) decoder
The NIK (Nomor Induk Kependudukan) is the 16-digit number printed on every Indonesian KTP identity card. It is not random — it packs your area of registration, date of birth and gender into a fixed layout. This decoder reads those fields back out, with Bahasa Indonesia labels next to the English ones, so you can quickly check what a NIK encodes for KYC, HR onboarding, or your own curiosity.
How it works
The 16 digits are read positionally as [PP][KK][CC][DDMMYY][NNNN]:
- PP (digits 1–2) — province code, looked up in a built-in reference list.
- KK (digits 3–4) — regency or city (kabupaten/kota).
- CC (digits 5–6) — district (kecamatan).
- DDMMYY (digits 7–12) — date of birth. If the day is between 41 and 71 the holder is female, and the real day is that value minus 40.
- NNNN (digits 13–16) — a computer-generated serial for that area and birth date.
The birth century is inferred: a two-digit year above the current year is treated as 1900s, otherwise 2000s.
Example
Take the NIK 3201234567890001 (illustrative):
| Field | Digits | Decoded |
|---|---|---|
| Province | 32 | Jawa Barat |
| Regency/City | 01 | — |
| District | 23 | — |
| Date of birth | 45 67 89 | day 45 → female, real day 5; month 07; year 89 → 1989 |
| Serial | 0001 | Running number |
Because the day (45) is over 40, the tool reports Perempuan (Female) and a birth date of 5 Juli 1989.
Privacy: nothing leaves your browser. The decoder only interprets the structure of the number — it does not check it against any government database.