Generate country-correct passport number stubs
Passport-number fields vary widely by issuing country, which makes them easy to get wrong in test data. This tool emits strings that match each country’s published length and character pattern so they pass front-end validation, while keeping the value entirely random and meaningless. It is built for testing travel-booking, KYC, and registration forms — not for producing anything that resembles a usable document.
How it works
Each country has a document-number scheme. The tool stores a representative pattern and fills it with random characters:
- United States — 9 numeric digits (newer books may start with a letter, but 9 digits is the common form).
- United Kingdom — 9 numeric digits.
- Canada — 2 letters followed by 6 digits.
- Australia — 1 letter followed by 7 digits.
- Germany / France / Spain / Italy — alphanumeric, typically 9 characters mixing letters and digits.
- India — 1 letter followed by 7 digits.
The generator picks characters from the allowed set for each position. Because the value is random, it cannot correspond to a real passport, and it will not satisfy any genuine machine-readable-zone (MRZ) check digit.
Tips and notes
- Use a batch to test how your form handles different lengths and mixed alphanumeric input across countries.
- Pair with the fake address generator to build coherent test profiles per country.
- These never carry valid MRZ check digits — they exist purely to exercise format validation.
- Never store these as if they were real identity documents or use them to deceive anyone.