What a barcode scanner reads from your driver's license
A barcode scanner reads the magnetic stripe or 2D barcode printed on the back of your driver's license and extracts the data encoded there. That data includes your name, date of birth, address, license number, license class, restrictions, and expiration date. Some scanners also read whether you are an organ donor, whether you hold a commercial license, and your height and eye color.
The barcode itself does not contain your Social Security number, fingerprints, or medical history — only the information that appears in text form on the front of your license. Different states encode slightly different fields, and the format varies between a traditional magnetic stripe (older licenses) and a 2D barcode (newer licenses). A scanner straightforward reads what is already printed there and converts it into digital text that a business or law enforcement officer can view on a screen.
The purpose of the barcode is speed and accuracy. Instead of manually typing your license number and address, a police officer or a clerk at a liquor store can scan your license in one second and have all the information they need. This reduces typing errors and confirms that the license is genuine — a fake or altered barcode will not scan correctly.
Key Takeaways
- A barcode scanner reads only the information already printed on your license: name, date of birth, address, license number, class, and expiration date.
- The barcode does not contain Social Security numbers, medical records, or any data not visible on the front of your license.
- Older licenses use a magnetic stripe; newer licenses use a 2D barcode that stores the same information in a smaller space.
- Law enforcement, retailers, and age-verification services use barcode scanners to confirm your identity and check license validity in seconds.
- Each state encodes slightly different fields in its barcode, so a scanner designed for one state may not read all fields from another state's license.
How states encode barcode data differently
The American Association of Motor Vehicle Administrators (AAMVA) sets a standard format for driver's license barcodes, but states choose which fields to include and in what order. This means a barcode scanner built to read licenses from one state may read a license from another state but might miss certain fields or display them incorrectly.
For example, some states encode your middle name; others do not. Some include your Social Security number in the barcode (though this is rare and discouraged); most do not. Some states add fields for hazmat endorsements or medical conditions. A scanner that knows the AAMVA standard can usually read any state's license, but a scanner programmed only for one state's format may fail on an out-of-state license.
This variation matters if you move to a new state or if you are traveling and need to show your license to someone using a state-specific scanner. Most modern scanners are built to handle multiple state formats, but older or specialized scanners (such as those used by a specific police department) may not. If a scanner cannot read your license, it is usually because the scanner is outdated or programmed for a different state, not because your license is invalid.
Magnetic stripe versus 2D barcode technology
Older driver's licenses used a magnetic stripe — a thin band of magnetic material on the back that stored data in a format similar to a credit card. A magnetic stripe reader passes a head over the stripe and decodes the data magnetically. These licenses are still valid, and many scanners can still read them, but magnetic stripes wear out over time and can become unreadable if the stripe is scratched or exposed to extreme heat.
Newer licenses use a 2D barcode, usually a PDF417 barcode (a rectangular grid of black and white squares) or a QR code. A 2D barcode scanner uses a camera or laser to read the pattern and decode the data. 2D barcodes are more durable than magnetic stripes because they are printed directly on the card and do not rely on a magnetic material that can degrade. They also store more data in less space and are harder to counterfeit.
Most states have transitioned to 2D barcodes on new licenses, but the timeline varies. Some states began the switch in the 2010s; others are still issuing magnetic stripe licenses on renewals. If your license has a magnetic stripe and you renew it, your new license will likely have a 2D barcode. Both formats are legal and valid; the barcode type does not affect your driving privileges or the information stored.
Who uses barcode scanners and why
Law enforcement officers use barcode scanners during traffic stops to verify your identity, check your driving record, and confirm that your license is valid and not suspended. A scanner takes seconds and is more reliable than reading the license by eye, especially in poor lighting or if the officer is unfamiliar with your state's license design.
Retailers use barcode scanners to verify your age when you purchase alcohol, tobacco, or other age-restricted items. The scanner confirms your date of birth and checks that your license has not expired. Some retailers also use scanners to detect fake or altered licenses, because a counterfeit barcode will not scan or will return data that does not match the printed information on the card.
Banks and financial institutions may scan your license during account opening or when you cash a check. Rental car companies, hotels, and other businesses that need to verify identity also use scanners. In each case, the scanner straightforward reads the data already on your license — it does not access any external database or pull information beyond what is encoded in the barcode.
What happens when a barcode will not scan
If your license barcode will not scan, the most common reasons are physical damage, an outdated scanner, or a state mismatch. A scratched, bent, or faded barcode may not be readable, especially if the damage is on the back of the card where the barcode is printed. If your license is physically damaged, you should request a replacement from your state's DMV.
An outdated scanner may not recognize newer 2D barcode formats or may be programmed only for one state's license format. If a retailer or officer tells you their scanner cannot read your license, ask them to read it manually or try a different scanner. A valid license should always be acceptable even if a particular scanner fails.
If you have a valid, undamaged license and a modern scanner still cannot read it, contact your state's DMV to confirm that your license is active and has not been suspended or revoked. A barcode that will not scan can sometimes indicate a problem with the license itself, though this is rare. The DMV can issue a replacement or clarify your license status.
Privacy and security of barcode data
The data in your driver's license barcode is the same data printed on the front of your card — it is not hidden or encrypted. Anyone with a barcode scanner can read your name, address, date of birth, and license number. This is by design: the barcode exists to make identity verification faster and more accurate.
However, the barcode does not contain sensitive information like your Social Security number (in most states) or your full medical history. If you are concerned about privacy when showing your license, you can ask the person scanning it what information they need and request that they read only specific fields. Retailers and officers are required to use the information only for the stated purpose — age verification, identity confirmation, or a traffic stop — and not to store or share it beyond what the law requires.
If you believe your license information has been misused or if you see fraudulent activity linked to your license number, report it to your state's DMV and to local law enforcement. You can also place a fraud alert with the credit bureaus if you are concerned about identity theft.
Frequently Asked Questions
Can a barcode scanner read my Social Security number from my license?
No. Most states do not encode your Social Security number in the barcode, even though it may appear on the front of your license for DMV records. A few states historically included it, but this practice has been phased out. The barcode contains only your name, date of birth, address, license number, and driving record information.
What if I have an out-of-state license and a scanner will not read it?
Ask the person scanning it to read your license manually or try a different scanner. Modern scanners are built to handle multiple state formats, but older or specialized scanners may not. Your out-of-state license is still valid; the scanner limitation is not your problem. If a business refuses service because their scanner fails, you can ask to speak to a manager or provide the information verbally.
Does scanning my license give someone access to my driving record or criminal history?
No. A barcode scanner reads only the data encoded in the barcode itself. It does not connect to any government database or pull information beyond what is printed on your card. To access your full driving record, a person would need to submit a separate request to your state's DMV and provide a reason for the request.
Is my license barcode the same as a QR code?
Not exactly. Most driver's licenses use a PDF417 barcode, which is a 2D barcode format designed specifically for ID cards. Some newer licenses may include a QR code as well, but the primary barcode is PDF417. Both formats store the same information; they just use different encoding methods.
What should I do if my license barcode is damaged or faded?
Request a replacement license from your state's DMV. A damaged barcode may not scan, and while you can still use your license for identification, replacing it ensures that scanners will work correctly. Most states allow you to request a replacement online, by mail, or in person at a DMV office.