Driver's License Generator

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

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 license

Configure options and generate

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.

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.

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.

Frequently asked questions