The numbers and letters on your driver's license are a standardized code that identifies you, your driving privileges, and restrictions

Your driver's license contains several distinct pieces of information arranged in a specific order. The format varies slightly by state, but every license includes your name, date of birth, a unique driver's license number, and a photograph. Beyond those basics, the numbers and codes tell the Department of Motor Vehicles (and law enforcement) what vehicles you can legally drive, whether you need corrective lenses, and whether you have any restrictions on when or how you can drive.

Understanding what each element means helps you verify the license is correct, know what you're legally permitted to do behind the wheel, and catch errors before they cause problems during a traffic stop or insurance claim.

Key Takeaways

  • Your driver's license number is a unique identifier assigned by your state's DMV and does not encode your personal information the way a Social Security number does.
  • The class or type code (usually a letter like D, C, or M) determines what category of vehicle you can legally operate.
  • Restriction codes are single letters that indicate conditions you must follow, such as corrective lenses required or automatic transmission only.
  • Endorsement codes show additional driving privileges you have earned, such as the ability to drive a motorcycle or commercial vehicle.
  • The expiration date tells you when you must renew your license; driving on an expired license is illegal even if you are otherwise may have access to.

Your Driver's License Number and What It Represents

The driver's license number is a unique identifier assigned to you by your state's DMV. It is not derived from your Social Security number, date of birth, or any other personal information — each state generates these numbers using its own system. The number stays with you as long as you hold a license in that state, even if you renew multiple times.

This number is what law enforcement enters into their system during a traffic stop, and it is what insurance companies use to pull your driving record. If you move to a different state, you will receive a new driver's license number because each state maintains its own licensing database. Some states use a format based on your name and birth date, while others use a purely random sequence; the format depends entirely on the state's DMV system.

Class or Type Codes That Show What You Can Drive

The class or type code is a letter (or sometimes a number) that indicates the category of vehicle you are licensed to operate. The most common class is Class D, which covers regular passenger cars, pickup trucks, and vans under a certain weight. This is what most people hold after passing their standard driving test.

Class C typically covers the same vehicles as Class D but may have lower age requirements or different restrictions in some states. Class M or Class A indicates you are licensed to operate a motorcycle. Class A, B, or C commercial licenses (often labeled CDL for Commercial Driver's License) allow you to drive larger trucks or vehicles carrying passengers or hazardous materials, but these require additional testing and medical certification.

If your license shows a class you did not test for, contact your DMV when ready — this is a serious error that could result in a citation if you drive a vehicle outside your class. Conversely, if you want to upgrade your class (for example, to add a motorcycle endorsement), you must pass the written and practical tests for that class before the DMV will issue a new license.

Restriction Codes That Limit How You Can Drive

Restriction codes are single letters printed on your license that indicate conditions you must follow while driving. These are not optional — violating a restriction is a traffic violation. The most common restriction is B, which means corrective lenses (glasses or contacts) are required. If you have restriction B and are stopped without wearing your glasses, you can receive a citation even if your vision is otherwise legal.

Other common restrictions include D (automatic transmission only), E (no freeway driving), and F (outside mirror required). Some states use I to indicate ignition interlock device required — this means you must have a breathalyzer device installed in your vehicle. The specific letters and what they mean vary by state, so check your state's DMV handbook if you see a restriction code you do not recognize.

Restrictions are typically added when you first receive your license (such as corrective lenses) or as a condition of license reinstatement after a suspension or revocation. If a restriction no longer applies to you — for example, you had eye surgery and no longer need glasses — you can request removal by visiting your DMV with proof (such as an eye doctor's letter) and passing a vision test.

Endorsement Codes for Additional Driving Privileges

Endorsements are codes that show you have passed additional tests to operate specific types of vehicles or carry specific cargo. The most common endorsement is M, which means you are licensed to ride a motorcycle. To add an M endorsement, you must pass a written test and a practical riding test (or complete an approved motorcycle safety course in some states).

H typically indicates you can tow a trailer, P means you can drive a taxi or for-hire vehicle, and T means you can tow a double or triple trailer. Commercial endorsements like N (tank vehicle) and X (hazmat and tank) require additional testing and background checks. Unlike restrictions, endorsements are privileges you have earned and can choose to use or not use.

If you want to add an endorsement, visit your DMV with your current license and proof of residency. You will need to pass the written test for that endorsement and, in most cases, a practical test as well. The fee varies by state and endorsement type.

Expiration Date and License Validity

The expiration date on your license is the last day it is valid for driving. Driving on an expired license is illegal, even if you are otherwise may have access to and have no violations. Law enforcement can cite you for an expired license the same way they would for any other traffic violation, and your insurance may not cover an accident if your license was expired at the time.

Most states issue licenses that are valid for four to eight years, depending on your age and state law. Some states issue shorter-term licenses to drivers under 21 or over 70. You can renew your license before it expires — most states allow renewal up to six months in advance — and many now offer online or mail-in renewal for standard renewals (not for address changes or license class upgrades).

Check your expiration date regularly and mark your calendar for renewal. If your license expires while you are out of state or unable to visit the DMV, contact your state's DMV office to ask about extension options or temporary permits.

Other Codes and Information on Your License

Your license also displays your date of birth, which law enforcement uses to verify your age during traffic stops or when you purchase age-restricted items. The issue date shows when your current license was issued; this matters for insurance purposes and for determining whether you have held a license for the minimum time required for certain endorsements.

Some states print a Real ID indicator (usually a star or marking) to show whether your license meets federal identification standards for air travel and federal building access. If your license does not have this marking and you plan to fly domestically, you will need a passport or other federal ID starting in 2025. Your state's DMV can upgrade your license to Real ID status, usually for a small fee.

The address on your license must match your current residence. If you move, you are required by law to update your address with the DMV within a specific timeframe (usually 10 to 30 days, depending on your state). Driving with an outdated address can result in a citation and may cause problems if you are stopped and the officer cannot verify your current residence.

Frequently Asked Questions

Can I drive a vehicle that is not listed on my license class?

No. Driving a vehicle outside your license class is illegal. If your license is Class D (passenger vehicles) and you drive a commercial truck, you can be cited. If you need to drive a different class of vehicle, you must pass the test for that class and receive a new license before operating it.

What happens if I ignore a restriction code on my license?

Violating a restriction is a traffic violation. If you have restriction B (corrective lenses) and are stopped without glasses, you can receive a citation. Repeated violations can result in fines, points on your record, and license suspension. Always follow the restrictions listed on your license.

Do I need to pass a new test to add an endorsement?

Yes. Each endorsement requires passing a written test specific to that endorsement, and most require a practical test as well. For example, to add a motorcycle endorsement, you must pass the motorcycle written test and riding test. Some states allow completion of an approved safety course in place of the riding test.

What should I do if my license has an error on it?

Contact your DMV when ready with proof of the correct information (such as a birth certificate for a birth date error or a marriage certificate for a name change). Errors on your license can cause problems during traffic stops, with insurance claims, and when traveling. Most DMVs can issue a corrected license within one to two weeks.

Is my license still valid if it is damaged or faded?

A damaged or faded license is still valid as long as it is not expired and your information is still readable. However, if the damage makes your information hard to read or verify, a law enforcement officer may ask you to obtain a replacement. Most states allow you to request a replacement license for a small fee if yours is damaged.