DevTools Logo

Driver's License Generator

Driver's License Generator

Generate driver's license numbers in the correct format per country and state — valid in shape, for software testing only

For Development & Testing Purposes Only - Synthetic Mock Data

Privacy Notice: This tool runs entirely in your browser. Nothing you generate or enter is sent to any server or stored anywhere.

Generator

Pick a country — and state where the format varies.

Format \d{1,7} · example 1234567

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It does not belong to real individuals. Using it to impersonate real people or for any fraudulent activity is illegal.

Examples

Generate a US California license number

Input
country: US · state: CA
Output
D1234567

Illustrative sample only — the format follows California's letter + 7 digits convention. Generate a fresh value for testing; it is not a real assigned license.

Generate an Ontario (Canada) license number

Input
country: CA · province: ON
Output
A1234-56789-01234

Ontario uses a letter followed by three groups of digits. The output is format-valid test data, not a live credential.

About this tool

A driver's license number's format depends on the issuing country — and in the United States, Canada, Australia, the UAE, India and China, on the state or province as well. This generator encodes the known pattern (letters, digits, length, separators) for 21 countries and all 50 US states plus DC, and produces a number that matches it.

Switch between the Generator and Validator tabs. The Generator emits one number for the country and state you pick; the Validator checks whether a pasted number matches that jurisdiction's format. Ohio's 8-digit license additionally carries a Luhn check digit, which the generator computes correctly and the validator verifies.

These numbers are valid in shape but randomized — test data for input-mask checks, form validation, database seeding and similar development work. Everything runs locally in your browser; nothing is uploaded. The numbers do not belong to real people and must not be used to impersonate anyone.

How to use

  1. Pick country and state

    Choose the issuing country; if its format varies by region (US, Canada, Australia, UAE, India, China), a state/province selector appears.

  2. Generate

    Click Generate to produce a license number matching that jurisdiction's pattern (and Luhn check for Ohio).

  3. Validate (optional)

    On the Validator tab, paste a number and confirm whether its format — and Ohio's Luhn digit — check out.

Use cases

Seeding test databases

Populate user fixture rows with plausible license numbers when developing forms, validation, or KYMO mock flows.

Testing form validation

Confirm a field accepts each country/state's expected shape (length, letter/digit positions) before it rejects real customers.

Demo and screenshot data

Fill realistic-looking license fields in product screenshots and demos without exposing any real person's ID.

Sample formats

JurisdictionPattern
California (US)1 letter + 7 digits, e.g. F1234567
Florida (US)L + 3-3-2-3-1 digits, e.g. A123-456-78-901-0
Ohio (US)8 digits with Luhn check digit
Texas (US)8 digits
United Kingdom5 letters + 6 digits + 5 letters
Germany10-11 digits
Brazil (CNH)11 digits

21 countries, 50 US states + DC. Ohio carries a Luhn check digit.

Common mistakes

Mistake:Treating a generated number as a real, assigned license.

Fix:These are format-valid fictions for development only. They are not linked to any person and must never be presented as genuine identification.

Mistake:Assuming one regex covers every US state.

Fix:US license formats differ by state (e.g. California D + 7 digits vs. New York 9 digits). Pick the issuing state so the generator applies the right template.

Mistake:Using generated IDs for age or identity verification.

Fix:The generator encodes no date of birth and no checksum that an issuer would verify. Use it for UI/data testing, not for any compliance or verification decision.

Frequently asked questions

References & standards