Pakistani CNIC Validator
Validate Pakistani Computerized National Identity Card (CNIC) numbers in real time.
Pakistani CNIC Validation
Checks the 13-digit format (5-7-1 pattern) and validates the province administrative code.
Ensures compliance for fintech, KYC, and telecom SIM registration testing in Pakistan.
Anatomy & Structure of CNIC — Pakistan
The Pakistani National Identity Card consists of 13 digits in 3 parts (AAAAA-BBBBBBB-C):
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 | Province Code | 1 digit | 1=KPK, 2=FATA, 3=Punjab, 4=Sindh, 5=Balochistan, 6=Islamabad, 7=Gilgit | 3 |
| 2 to 5 | Division / District / Tehsil | 4 digits | Administrative geographic codes assigned by NADRA | 5201 |
| 6 to 12 | Family Tree Number | 7 digits | Unique family unit sequence number | 1234567 |
| 13 | Gender / Check Digit | 1 digit | Odd = Male (1, 3, 5, 7, 9); Even = Female (2, 4, 6, 8) | 1 |
Official CNIC Validation (NADRA Ordinance 2000)
Validation rules for Pakistani CNIC:
13 decimal digits + Province (1-7) + Gender in position 13
- 1. Verify exact length of 13 numeric digits.
- 2. Validate province code in 1st position (1 to 7).
- 3. Determine gender: last digit odd for males, even for females.