Documents and test data

U.S. driver's license number formats by state: what you can actually confirm

Anyone building a form for the American market runs into the same question sooner or later: "how many characters is a driver's license number?" The honest answer is that it depends on the state, and within one state it can even depend on the year the card was issued. There is no federal standard for the number itself. What exists is a standard for the card (fields, barcode, layout), maintained by the association of motor vehicle administrators, while each state agency decides how to number its drivers. This guide separates what official sources confirm from what circulates in regex lists of unclear origin, shows why some numbers carry the holder's name and birth date, and explains how to use the [U.S. driver license generator](tool:gerador-carteira-motorista-eua) to test validation without producing anything that could pass as a real document.

J-Kit11 min readIntermediate
  • Driver's license
  • United States
  • Form validation
  • Test data

Key takeaways

  • There is no national format: the AAMVA standard covers the card, and each state numbers its drivers its own way.
  • Confirmed by an official source: Pennsylvania uses 8 digits, New York has a 9-digit ID, Florida uses 1 letter + 12 digits and Illinois uses 12 positions (1 letter + 11 digits).
  • Some numbers embed personal data (Illinois still does); Washington and Florida moved to randomization to protect identity.
  • A number that matches the state pattern does not prove the license exists. Validate the shape loosely and never treat synthetic data as a document.

Why there is no national format

In the United States a driver's license is issued by each state (and the District of Columbia), not by the federal government. AAMVA, the association of North American motor vehicle administrators, publishes the driver license and ID card design standard, in a 2025 edition, which addresses card aspects such as one- and two-dimensional barcodes. The page does not define a format for the document number, and that is where the diversity comes from: each state inherited its own numbering system, often decades old, from when the number was just an internal database key.

The practical result is a patchwork. Some states use digits only, others start with a letter, some mix letters in the middle, and several accept more than one format at once because older cards remain valid. Pattern lists used by data-loss-prevention tools, such as the Skyhigh Security reference for U.S. license numbers, show this: Arizona appears as 9 digits or 1 letter followed by 8 digits, and North Dakota as a 3-letter, 2-digit, 4-digit layout. Treat that kind of list as a third-party hint, not a specification; the next section uses only what the agencies themselves say.

License number (DLN)
The driver's identifier inside the state's system. It is what forms, insurers and employment checks ask for.
Document number
Identifies one specific physical card and changes at every renewal or replacement. New York separates the two explicitly.
Issuing state
The party that defines the format. The same digits can be valid in one state and impossible in another.

The formats official sources confirm

The table below gathers only what we could check on state agency pages, law-enforcement manuals or federal documents. States missing from it are not "unknown": they just do not publish the format in a way we can cite. California is a good example, since the DMV asks for the number on dozens of forms without describing its structure on any of the pages we consulted.

License number formats confirmed by an official source
StateConfirmed formatWhat the source adds
Pennsylvania8 digitsThe "DD" number printed at the bottom center of the card is not the license number.
New York9-digit DMV ID; document number of 8 or 10 charactersThe 9-digit ID identifies the person and never changes; the document number changes with each new card and mixes letters and digits.
Florida13 characters: 1 letter + 12 digitsSince July 2024, new numbers include at least 4 randomly generated digits.
Washington12 characters, starting with "WDL" on current numbersSince September 4, 2018: "WDL" followed by 9 random letters or numbers, unrelated to name or birth date.
Illinois12 positions: 1 letter + 11 digitsComputed by a formula from name, sex and birth date (details in the next section).

When the number carries your name and birth date

The most instructive case is Illinois. The state police LEADS manual, dated May 11, 2022, explains that the number is "computed by a special formula" and that each number encodes the driver's name (last name, first name or initial, and middle initial), sex and birth date. That is why an officer can query the database by name, sex and birth date: the system recalculates the number and uses it as the search key.

  1. Letter and three digits from the last nameThe first letter of the last name, followed by 3 digits derived from the rest of it. In the manual's example, "Y620".
  2. Three digits for first and middle nameA 3-digit code representing the first name (or initial) and the middle initial. In the example, "930".
  3. Two digits of the birth yearThe last two digits of the year. In the example, "57" means 1957.
  4. Three digits for sex and birth dayThe last three digits signal sex and the encoded birth day. In the example, "270".

The manual also fixes rules that work as sanity checks. The digits 7, 8 and 9 never appear in the first three numeric positions. The last three digits run from 001 to 372 for men and from 601 to 972 for women; the 373 to 600 range is not produced by the formula. When two people compute to the same number, the last three digits are replaced by an assigned value between 400 and 599. Applying that: a number ending in 270 falls in the male range, one ending in 725 would fall in the female range, and one ending in 450 could only be a tie-breaker number. The photo ID card, per the same manual, has the letter at the end rather than the front.

  1. Up to 2018Washington: numbers tied to the person

    The old numbers were built from personal details, according to coverage of the 2018 change.

  2. September 4, 2018Washington starts issuing "WDL" + 9 random characters

    All newly issued or renewed cards get the new 12-character number, unrelated to name or birth date.

  3. May 11, 2022Illinois still documents the formula

    The LEADS manual of that date describes the computation from name, sex and birth date as the current method.

  4. July 31, 2024Florida randomizes part of the number

    New numbers now contain at least 4 random digits, under an amendment to statute 322.14(1)(a); the number only changes again if the last name changes.

The direction of the story is clear: numbers derived from personal data let anyone who knows a name and a birth date reconstruct much of the identifier, which makes identity fraud easier. That is why Washington and Florida changed. The details of the two changes are in KOMO's report on Washington and the Ocala Gazette coverage of Florida. For software developers the lesson resembles the one from other identifiers with check digits: do not infer business rules from a format the agency can change without notice.

Testing validation with synthetic data

For QA the goal is to have numbers with each state's right shape, in volume, without using a real person's document. The tool below generates a full synthetic profile for all 50 states and the District of Columbia (name, birth date, address, issue and expiry dates), draws a card with a "SPECIMEN" watermark, and offers a deterministic mode: with the same name, birth date, state and sex you always get the same profile, which is useful for reproducible fixtures. A validation tab checks whether a number has the expected shape for the state.

Generate a synthetic profile per state, use the deterministic mode for fixtures and validate the shape of a number.Open the tool full page

What a synthetic generator does well

  • Produces strings with the expected length and letter/digit mix, to exercise masks and regexes.
  • Lets you repeat the same test case (deterministic mode) and generate batches for CSV.
  • Keeps a watermark and notice on the card so the image is not mistaken for a document.

What it cannot do

  • Reproduce official formulas such as Illinois: a random number with the right shape does not "match" a name and birth date.
  • Prove that a license exists. Only the state agency, or a service it authorizes, can confirm that.
  • Cover every coexisting format: the tool adopts one canonical pattern per state, a deliberate simplification.

Validating without blocking real users

Whoever writes the validation for a "license number" field faces two opposite risks: accepting garbage and rejecting legitimate numbers. Given what we saw, the second is the more expensive, because a real user who gets blocked abandons the signup. The New York example shows how easy it is to get wrong: the card has two numbers, one of 9 digits and another of 8 or 10 characters, and the DMV page itself warns that characters such as I and 1 or O and 0 can look alike.

  • Accept spaces and hyphens on input and strip them before validating (Illinois prints hyphens on the card).
  • Normalize to uppercase, but do not silently swap O for 0 or I for 1.
  • Validate per state once the state is chosen, and use a wide length range when it is not.
  • Do not assume the format is stable: Florida and Washington changed in 2024 and 2018.
  • Treat a format match as "plausible", never as "verified".
  • Do not write the number to application logs or echo it in error messages; it is personal data.
An example of a tolerant regex for Florida and Pennsylvania

After stripping spaces and hyphens and uppercasing, Florida fits "one letter + 12 digits" (13 characters) and Pennsylvania fits "8 digits". In a per-state validation those two shapes are enough; in a stateless validation, prefer checking only that the value is 5 to 20 alphanumeric characters. The stricter rule should exist only where you know which state the number comes from.

Frequently asked questions

Do all U.S. states use the same driver's license number format?
No. The AAMVA standard covers the card, and each state defines its own number. Pennsylvania uses 8 digits, Florida uses 1 letter and 12 digits, Washington uses 12 characters starting with WDL, and Illinois uses 1 letter and 11 digits. Several states accept more than one format at once.
Does the license number change when I renew?
It depends on the state and on which number. In New York the 9-digit ID does not change, but the document number changes with each new card. In Florida the number only changes again if the last name changes. In Washington, anyone who renewed or replaced a card after September 4, 2018 received the new number.
Can you work out a name or birth date from the number?
Only in some states and only for formula-generated numbers. In Illinois the number encodes name, sex and birth date, per the state police manual. Washington (since 2018) and Florida (since 2024, partly) moved to random digits precisely to prevent that.
Can I use the generator to make a fake driver's license?
No. The tool exists for software testing, demos and format study. The card comes out with a specimen watermark and no photo, seal or hologram, and presenting a fake document as real is a crime.
Why is California not in the table?
Because we did not find a description of the number format on the California DMV official pages we consulted. Third-party lists point to 1 letter followed by 7 digits, but we prefer not to assert it without an agency source.

A U.S. driver's license number has no national format: each state decides, and some change the scheme over time. Rely only on what the state agency publishes, validate the shape loosely, treat a match as "plausible" and use synthetic data, never real documents, for testing. The generator gives the right shape per state for QA; it does not prove a license exists or replace checking with the agency.

Sources & references

  1. AAMVA, Driver License and ID Card Design Standard (2025 edition)
  2. New York DMV, sample documents: 9-digit ID and document number
  3. PennDOT, where to find your license number (8 digits)
  4. E-Verify, Florida fact sheet: 13 characters, 1 letter and 12 digits
  5. Ocala Gazette, Florida updates driver license numbering (July 2024)
  6. KOMO News, changes to Washington driver licenses (WDL + 9 characters)
  7. Washington DOL, driver guide: the WDL number
  8. Illinois State Police, LEADS manual: computation of the number (05/11/2022)
  9. Skyhigh Security, U.S. driver license number pattern reference (third-party source)