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
Generated values are valid in shape but randomized (Test Data).
Examples
Generate a US California license number
country: US · state: CAD1234567Illustrative 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
country: CA · province: ONA1234-56789-01234Ontario 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
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.
Generate
Click Generate to produce a license number matching that jurisdiction's pattern (and Luhn check for Ohio).
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
| Jurisdiction | Pattern |
|---|---|
| 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 Kingdom | 5 letters + 6 digits + 5 letters |
| Germany | 10-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
Related guides
References & standards
Related tools
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
Address Generator
Generate realistic addresses in the correct format for 21 countries — single-line, multi-line, JSON or HTML — plus a postcode validator. Test data only, runs in your browser.
ASCII Text Art Generator
Turn text into large ASCII art banners with multiple figlet fonts
Credit Card Generator
Generate Luhn-valid test credit card numbers for development and QA (not real cards)
Crypto Address Generator
Create testnet-shaped ETH, BTC, SOL and TRON addresses with checksums.
DUNS Number Generator
Generate 9-digit mock DUNS numbers in XX-XXX-XXXX format.