Driver's License Generator
Generate driver's license numbers in the correct format per country and state, or validate pasted numbers. Test data only.
For Development & Testing Purposes Only - Synthetic Mock Data. Test data only: randomly generated, may coincidentally match a real number. Never use in real applications, payments, KYC or official forms.
Settings
Alabama1–7 digits
Example 1234567
Source: State DMV / BMV / DOR licence-number descriptions as compiled in public DL-format references (AAMVA defines no number format)
Results update when you change a setting. Press Generate (or ⌘/Ctrl+Enter) for a fresh batch.
Generated numbers
Generating…
License numbers appear here.
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; a random value can coincidentally match a real, issued number.
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.
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.
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
What does this generator create?
It creates synthetic driver's-license-style data for testing forms, parsers, and mock interfaces.
Is the generated license valid?
No. The values are fictional test data and must not be used as identification or presented to an authority.
Can I choose an output format?
Yes. Use the available structured or formatted output to match the input shape your test fixture requires.
Related guides
References & standards
Related tools
National Identity Generator
Generate and validate national ID numbers for testing (TR, US, DE, UK, SA, AE, QA, KW, CA, ES, BR, FR, IT, NL, SE, NO, EG, SG)
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.
Phone Number Generator
Generate phone numbers in the correct format per country — mobile, landline and toll-free — in international, national, raw or tel: format, plus a validator. Test data only.
Tax Number Generator
Generate valid tax identification numbers for testing (TR, US, SG, etc.)
Credit Card Generator
Generate sandbox test card numbers (providers' published test numbers) and Luhn-valid random test numbers for development and QA
Mock Data Generator
Generate realistic test data in multiple formats for development and testing