Skip to content
faker.tools
All 79

Plate I · User & Personal Identity Generators

Passport & Driver's Licence Number Generator

Document numbers in six national formats, with dates and an MRZ line.

#HolderIssuerPassport No.IssuedExpires
1Alice YoungUS9724726022026-08-222036-08-19
2Matthew ScottUS7288433902020-10-252030-10-23
3Elijah PerezUS4510302942019-11-182029-11-15
4Nora GarciaUS1800711782024-11-282034-11-26
5Michael MooreUS7185326292019-03-132029-03-10
6Owen WilsonUS2528637562019-01-282029-01-25
7Joseph WilliamsUS5365460622020-12-042030-12-02
8Nancy ThomasUS3890894482021-04-172031-04-15
9Steven JacksonUS2102306082025-11-212035-11-19
10Elizabeth JacksonUS5725338672019-01-182029-01-15
10 rows · 877 BGenerated in your browser · Passport & Driver's Licence Number Generator

Travel document numbers vary more than you would expect — nine digits in the US, a letter-and-digits mix in Germany, a fixed sixteen-character string on a UK driving licence. Each format here follows its country's pattern so your field validation gets a real workout.

What you can control

  • Six issuing countries, each with the correct pattern for both document types.
  • Issue and expiry dates are ten years apart, matching the usual validity period for an adult passport.
  • The optional MRZ line follows the ICAO 9303 shape, padded to 44 characters, for testing document scanners.
  • Generate both document types on one row when you are seeding a full identity record.

Testing ideas

  • Country formats. Generate for each issuing country you support. Passport numbers range from nine digits to mixed alphanumerics, and a single regex rarely covers them all.
  • Expiry logic. Include issue and expiry dates to test warnings for documents that expire within six months — the rule many countries and airlines apply.
  • MRZ parsing. Turn on the MRZ line to test OCR post-processing and parsers that expect the ICAO 9303 layout and < fillers.
  • Masking. Confirm document numbers are masked in logs and support tools.

What this is not

These match the format of real document numbers without corresponding to an issued document. Presenting one as genuine identification is a criminal offence; keep them in your test environment.

Questions

Is the MRZ line fully valid?

It follows the ICAO 9303 layout and length but does not carry correct check digits. It is shaped for testing a parser's field extraction, not for passing a border reader.

Do these numbers correspond to real documents?

No. They are generated from the format pattern only. There is no issuing authority behind any of them.

Why are passport and licence formats so different?

They are issued by different authorities under different rules. That inconsistency is exactly why a single regex for identity documents is a bad idea.

Next in Identity

All 12 →