Home🇵🇰 PakistanComputerised National Identity Card Number

CNIC generator (Pakistan)

A Pakistani CNIC is thirteen digits formatted 00000-0000000-0 — a five-digit locality code, a seven-digit serial, and a final digit that encodes sex. NADRA publishes no checksum. These test values are synthetic.

Synthetic · not collision-guaranteed Validate a number →
50599-2674944-2

Synthetic CNIC (format-valid; no public checksum exists). Not a real issued number.

Format specification

IdentifierComputerised National Identity Card Number (CNIC)
Country🇵🇰 Pakistan
Format00000-0000000-0
Length13 characters
ChecksumNone
Example52913-6335394-7
Safe strategy Synthetic
Data qualityBest-effort

Computerised National Identity Card Number: what each part means

00000 Locality of registration: the first digit is the province/region (1–7), followed by division, district and tehsil digits.
0000000 Seven-digit family/serial number assigned by NADRA.
0 Final digit encodes sex: odd = male, even = female.

Validation regex

Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()

^[1-7]\d{12}$

References

  1. en.wikipedia.org/wiki/CNIC_(Pakistan)

Common questions

Will these pass my validation?

Yes — they are well-formed Computerised National Identity Card Number values (00000-0000000-0) and pass standard format checks.

Could one belong to a real person?

These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.

Can I generate many at once?

Increase the count, or use the free API and CSV/JSON export for large datasets.

Validate an existing number →

For software testing only. These numbers are synthetic and must never be used for real-world identification, applications, or to impersonate anyone.