Skip to main content

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):

PositionFieldLengthMeaning & RuleExample
1Province Code1 digit1=KPK, 2=FATA, 3=Punjab, 4=Sindh, 5=Balochistan, 6=Islamabad, 7=Gilgit3
2 to 5Division / District / Tehsil4 digitsAdministrative geographic codes assigned by NADRA5201
6 to 12Family Tree Number7 digitsUnique family unit sequence number1234567
13Gender / Check Digit1 digitOdd = 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. 1. Verify exact length of 13 numeric digits.
  2. 2. Validate province code in 1st position (1 to 7).
  3. 3. Determine gender: last digit odd for males, even for females.

Frequently Asked Questions