Skip to main content

Pakistani CNIC Generator

Generate and format valid Pakistani Computerized National Identity Card (CNIC) numbers for QA testing.

Waiting for generation...

About the Pakistani CNIC

The CNIC is the 13-digit national identity card issued to citizens of Pakistan by NADRA.

It follows the 5-7-1 pattern: 5 digits for province/division code, 7 serial digits, and 1 gender check digit (odd for male, even for female).

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