Skip to content

CNIC validator and info playground

Runs in your browser: nothing you type is uploaded or stored.

Input

13-digit CNIC with optional separators.

Try: 35202-1234567-1 · 42101 1234567 2 · ۳۵۲۰۲-۱۲۳۴۵۶۷-۱

Result

Valid
Formatted
35202-1234567-1
Province
Punjab
Gender
Male

The province is where the CNIC was first registered, not necessarily where the holder lives now.

Usage
import { validateCNIC, getCNICInfo } from "pakdatakit";

validateCNIC("35202-1234567-1"); // → true
getCNICInfo("35202-1234567-1");
// → { formatted: "35202-1234567-1", province: "Punjab", gender: "male" }