What Kind of Barcode Is on a Driver’s License?

The barcode on a driver’s license is a PDF417 two-dimensional barcode, printed on the back of the card. It looks like a small rectangle of stacked black-and-white bars, and it stores a machine-readable copy of the personal information printed on the front of your license. Every U.S. state uses the same format, following a standard set by the American Association of Motor Vehicle Administrators (AAMVA).

PDF417 stands for “Portable Data File.” The numbers describe its internal structure: each codeword is 4 bars and spaces across a pattern 17 modules wide. Unlike the one-dimensional barcodes on grocery items, PDF417 layers multiple rows of linear barcodes on top of each other, which is how it fits so much data into a small space. At maximum configuration it can hold up to 1,850 alphanumeric characters or 2,710 numeric digits.

What Information the Barcode Contains

The AAMVA Card Design Standard defines which data fields go into the barcode. Some are mandatory in every state; others are optional. The mandatory fields include:

  • Full legal name, with first, middle, and last in separate fields
  • Date of birth, formatted MMDDCCYY
  • Street address, city, state, and postal code
  • Document issue date and expiration date
  • Sex, eye color, and height
  • Vehicle class, restrictions, and endorsements

Optional fields vary by state and can include weight, hair color, race or ethnicity, organ donor status, and whether the card is REAL ID compliant.

What the Barcode Does Not Contain

People often assume the barcode holds more than it does. Your Social Security number is not in the barcode. Neither is your driving record, points, insurance information, or any criminal history. The barcode is essentially a machine-readable version of what’s already printed on the card, plus some jurisdiction-specific codes. It does not connect to a live database on its own. When a police officer scans your license and pulls up your driving record, that information comes from a separate database query triggered by your license number, not from the barcode itself.

Who Scans the Barcode and Why

The most visible everyday use is age verification. Liquor stores, bars, and tobacco retailers scan the barcode to confirm a customer is old enough to buy restricted products. A scan gives a faster yes-or-no than reading the birth date off the card.

Law enforcement uses the barcode heavily during traffic stops. Scanning it auto-populates citation forms and feeds the license number into state and federal databases to check for warrants, suspensions, or stolen vehicles. That cuts the time an officer spends on a routine stop and reduces data-entry errors.

At airports, the TSA’s Credential Authentication Technology (CAT) units scan the barcode to verify your identity and confirm you’re ticketed for travel that day. The system also checks your pre-screening status for programs like TSA PreCheck, without needing a boarding pass at the security checkpoint.1Transportation Security Administration. Credential Authentication Technology You still need the boarding pass at the gate.

Banks, car rental companies, hotels, and pharmacies also scan the barcode for identity verification during account openings, check-ins, and prescription pickups. The appeal everywhere is the same: faster data entry with fewer typos.

Why the Barcode Keeps Working When the Card Gets Beat Up

PDF417 uses Reed-Solomon error correction, the same mathematical technique that keeps CDs and satellite transmissions readable despite interference. The format supports nine error correction levels, with higher levels adding redundant data that lets a scanner reconstruct information even when part of the barcode is scratched, faded, or obscured. A license that’s been through the washing machine a few times will often still scan.

Barcodes do eventually wear out, though. If yours stops scanning reliably, you’ll need a replacement license from your state’s motor vehicle agency. Replacement fees vary by state, but most fall in the $10 to $40 range. Don’t wait until you’re at a TSA checkpoint to find out the barcode is unreadable.

What a Scan Can and Cannot Prove

The barcode adds a verification layer beyond visual inspection. If someone alters the printed text on a license, a scan will show that the barcode data doesn’t match what’s on the card’s face. The AAMVA standard allows jurisdictions to implement digital signatures within the barcode data, which lets a scanner verify that the barcode was generated by an authorized issuing agency.2American Association of Motor Vehicle Administrators. 2020 AAMVA DL/ID Card Design Standard Not every state uses digital signatures, and the standard doesn’t require the barcode data itself to be encrypted.

Because PDF417 is a published open standard, anyone with the right software can create a barcode that scans correctly. Fake IDs with fully functional barcodes are common. A standard barcode scan at a bar or liquor store confirms that the barcode is properly formatted and contains plausible data, but it doesn’t verify that the data matches any government database. Only systems that cross-reference the scanned data against a state motor vehicle database in real time, like law enforcement terminals or TSA’s CAT units, can catch a well-made fake. A bouncer with a handheld scanner is checking format, not authenticity.

Privacy When Businesses Scan Your License

Anyone with a free smartphone app can read every data field in your license barcode. When you hand your license to a bartender, a hotel clerk, or a rental car agent and they scan it, they’ve just captured your full name, home address, date of birth, and physical description in a digital format that’s easy to store.

You may think the bartender is checking your age. The bar’s scanning system may be logging your name, address, and visit frequency into a marketing database. Some states have passed laws regulating the practice. A few restrict businesses to collecting only the specific data needed for the transaction, others prohibit storing or sharing barcode data entirely, and some require scanned data to be deleted after a set period. Enforcement varies widely, and many states have no restrictions at all.

Treat your license barcode like any document containing your home address and date of birth. If a business scans your ID and you’re uncomfortable with what they might store, you can ask what happens to the data.

Mobile Driver’s Licenses Use a Different Technology

A growing number of states now offer mobile driver’s licenses (mDLs) that live in your phone’s digital wallet. These don’t rely on PDF417 at all. Instead, mDLs use near-field communication (NFC) or QR codes and are built on a different international standard (ISO 18013-5) designed specifically for digital identity credentials. The key privacy advantage is selective disclosure: an mDL can confirm you’re over 21 without revealing your name, address, or any other personal data. The PDF417 barcode on a physical card can’t do that.

TSA’s CAT units already accept digital IDs at participating airports. Adoption by businesses and state agencies is still uneven, so for most people the physical card and its PDF417 barcode remain the primary credential.