Documents and Office

NIK and NPWP Decoder: Read and Check Indonesian ID Numbers

Decode an Indonesian NIK into province, district, birth date and sex, and check old 15-digit and new 16-digit NPWP formats offline in your browser.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
NIK and NPWP Decoder: Read and Check Indonesian ID Numbers

NIK and NPWP Decoder: Read and Check Indonesian ID Numbers

Every Indonesian resident has a NIK, the 16-digit population number printed on the KTP identity card and the family card. The Indonesia NIK and NPWP Decoder and Validator reads what those digits mean and checks NPWP tax numbers in their old and new forms, all without sending anything online.

What the NIK digits mean

A NIK is not a random number. Each part carries information about where it was issued and who holds it.

DigitsMeaning
1–2Province
3–4Regency or city
5–6District (kecamatan)
7–12Date of birth DDMMYY (day + 40 for women)
13–16Sequence number

The birth date is written in day, month and year order. For women, 40 is added to the day, so a woman born on the 5th has 45 in that position. That is how the tool reads the holder's sex.

How the NPWP changed

The old NPWP had 15 digits, written as 01.234.567.8-901.000, with a check digit in the ninth position. Since the tax administration reform under Minister of Finance Regulation 112 of 2022, resident individuals use their NIK as their NPWP. Other taxpayers, such as companies, use a 16-digit NPWP formed by adding a zero before the old 15 digits.

Who needs this check

HR staff, bank officers, sellers onboarding suppliers and accountants preparing tax data often need to confirm that a number has the right form before they submit it. A wrong date or sex code is a common typing mistake, and catching it early saves a rejected form.

How to use the tool

Paste one or more NIKs to see each one's province, regency and district codes, birth date, sex and sequence, with errors flagged. Paste NPWPs, with or without dots and dashes, to see which format each one uses and whether the check digit is valid. Correct any typing errors and check again.

Worked example

The NIK 3273014509950003 starts with 32, Jawa Barat, followed by regency code 73 and district code 01. The birth digits 450995 mean day 45 − 40 = 5, month 09, year 95: a woman born on 5 September 1995.

The NPWP 01.234.567.4-901.000 passes the check digit, and so does its 16-digit form 0012345674901000. When 3273014509950003 is entered as an NPWP, it is recognised as a NIK used as NPWP.

How the check digit works

The old NPWP check uses the Luhn algorithm on the first nine digits. A typing error in one digit usually makes the check fail. NIKs have no check digit, so the tool checks the province code and the birth date digits instead.

Limits

This is a structure check only. A valid structure does not prove that a number is registered; only Dukcapil and DJP services can confirm that. NIK and NPWP numbers are personal data, which is why the tool never uploads, stores or logs them. This is not legal advice.

Work in small, saved steps

Every tool in this series keeps your work as a project in your own browser. Make a change, check the preview, and use undo (Ctrl+Z) or redo (Ctrl+Y) freely; nothing is lost while you experiment. Before a big change, save a named copy from the Projects menu, so you can return to it later or compare two versions side by side. Export the project file when you want to move it to another computer or keep a backup, and import it again whenever you need it.

Privacy by design

The processing happens in the page itself. Files you open are read by code running on your device, results are calculated locally, and nothing is sent to a server or stored in a cloud account. That makes the tool suitable for customer lists, financial data and other material you would not upload to an unknown website. If a component such as a file reader or a map outline is downloaded from a public CDN, only that open-source code or public data is fetched, never your own content.

Share the result clearly

When you pass the output to colleagues, say where the data came from, when it was exported, and which settings you used, so that someone else can repeat the work and get the same answer. Keep the original file unchanged and store the cleaned or calculated version separately. A short note with the assumptions, filters and date saves a lot of questions later and makes the result easier to trust.

Privacy

The tool runs entirely in your browser. Your data stays on your device and is never uploaded.

Save your work

Projects are saved automatically in this browser. Export them as a file to keep a copy, or print a report.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages