Skip to content

Passport and vehicle plates playground

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

Passport number

Two letters and seven digits.

Try: AB1234567 · ab 1234567 · A12345678

Vehicle plate

1–4 letters, then 1–4 digits, with the optional year older Punjab plates carry.

Try: LEA-1234-19 · lea 1234 · ABC-123

Result

PassportValid
Vehicle plateValid
Series
LEA
Number
1234
Year
19
Formatted
LEA-1234

DGIP does not publish the passport format, and each province sets its own plate format, so these check the common shape only.

Usage
import { validatePassport, parseVehiclePlate } from "pakdatakit";

validatePassport("AB1234567"); // → true
parseVehiclePlate("LEA-1234-19");
// → {"series":"LEA","number":"1234","year":"19","formatted":"LEA-1234"}