Driver license codes are letters and numbers printed on your license that tell law enforcement, employers, and licensing officials what you are legally permitted to drive

Every state uses codes to mark restrictions, endorsements, and vehicle class permissions on a driver license. These codes are not optional notes—they are legal designations that determine whether you can legally operate a particular vehicle. If you drive a vehicle type your license does not authorize, you can be cited for driving without proper licensing, even if you hold a valid license for a different class.

The codes appear in different locations depending on your state. Most states print them on the front or back of the card itself, often in a section labeled "Restrictions," "Endorsements," or "Class." Some states use a separate line or box. The format varies: some use single letters (like "A" or "H"), others use two-letter combinations (like "CL" or "HZ"), and some use numbers. What matters is understanding what each code on your license means for the vehicles you can legally drive.

Key Takeaways

  • License codes are legal restrictions and permissions that determine which vehicle types you can operate; driving without the correct code is a violation even if you hold a valid license.
  • Vehicle class codes (like Class D, Class C, or Class A) define the size and type of vehicle you can drive, from standard cars to commercial trucks.
  • Restriction codes (like "B" for corrective lenses or "M" for manual transmission only) limit how or when you can drive, and violating them can result in a citation.
  • Endorsement codes (like "H" for hazmat or "P" for passenger vehicles) mean you have passed additional testing and are permitted to operate vehicles that require special qualifications.
  • Your state's DMV website or your license document itself lists all codes used in your state; if you do not understand a code on your license, contact your local DMV office for clarification.

Vehicle Class Codes and What They Authorize

Vehicle class codes define the size, weight, and type of vehicle you are permitted to drive. The most common class for personal use is Class D (or Class C in some states), which authorizes standard passenger cars, pickup trucks under a certain weight, and small vans. This is the class most people receive when they pass their standard written and road test.

Commercial vehicle classes—typically Class A, Class B, and Class C—require a Commercial Driver License (CDL) and additional testing. Class A covers the largest vehicles, including tractor-trailers and any combination of vehicles over a certain gross vehicle weight rating. Class B covers single large vehicles like straight trucks and buses. Class C covers smaller commercial vehicles. If your license shows a commercial class code, you have met CDL requirements and are legally permitted to operate those vehicles for compensation.

Some states use different naming conventions. California uses Class M for motorcycles, Class A for large trucks, and Class B for medium trucks. New York uses Class D for standard cars and Class E for commercial vehicles. Check your state's DMV handbook or website to confirm which class code appears on your license and what vehicles it covers.

Restriction Codes That Limit How You Drive

Restriction codes are conditions placed on your license that limit when, where, or how you can drive. These codes appear when you have a medical condition, vision limitation, or other factor that requires you to drive under specific conditions. Violating a restriction code—for example, driving without corrective lenses when your license requires them—is a separate violation from driving without a license.

Common restriction codes include "B" for corrective lenses (you must wear glasses or contacts), "M" for manual transmission only (you can only drive vehicles with a manual clutch), and "N" for no freeway driving (you are limited to local roads). Some states use "H" for hearing aid required or "L" for left foot accelerator (for drivers with specific physical limitations). A few states use "E" for automatic transmission only, which means you cannot operate a manual vehicle.

If your license shows a restriction code you do not recognize, your DMV office can explain it. If you believe a restriction is no longer necessary—for example, if your vision has improved or you have recovered from an injury—you can request a re-examination or medical review through your state DMV. Restrictions are not permanent unless the underlying condition is permanent.

Endorsement Codes for Special Driving Permissions

Endorsement codes indicate that you have passed additional written tests, skills tests, or background checks and are therefore permitted to operate vehicles or carry cargo that requires special qualifications. Unlike restrictions, endorsements are permissions you have earned, not limitations placed on you.

The most common endorsement is "H" for hazmat (hazardous materials), which means you have passed a federal background check and a written test on hazmat regulations. You are legally permitted to transport certain hazardous materials in a commercial vehicle. "P" for passenger vehicles means you have passed a test on passenger safety rules and can operate a bus or van carrying passengers for compensation. "T" for double/triple trailers means you can pull multiple trailers in states that permit it. "X" for tank vehicles means you can operate a vehicle designed to carry liquids in bulk.

Some states use "S" for school bus, which requires a separate written test and background check specific to transporting students. Others use "N" for tank vehicles or "O" for other vehicles depending on state regulations. If you hold an endorsement code, it means you have met the state's requirements for that specific vehicle type or cargo. If you want to add an endorsement, you must contact your DMV to schedule the required test.

How License Codes Differ Across States

There is no national standard for license codes. A code that means one thing in California may mean something entirely different in Texas or New York. This matters if you move to a new state or drive across state lines—your out-of-state license is still valid, but the codes on it are interpreted according to your home state's system, not the state you are visiting.

For example, New York uses "D" for standard cars and "E" for commercial vehicles, while California uses "D" for standard cars and "A" for large commercial trucks. If you hold a New York license with a "D" code and drive in California, you can legally operate a standard car in California, but California will not recognize your license as authorizing commercial driving because the codes do not align. If you move permanently and obtain a new license in your new state, you will receive codes based on that state's system.

The best way to understand your state's codes is to check your state DMV's official handbook or website. Most state DMV sites have a page dedicated to license classes and codes, with a complete list and explanation. If you cannot find the information online, call your local DMV office or visit in person—staff can explain every code on your license.

Reading Your License and Locating Your Codes

Your codes are printed on your physical license card, but the location varies by state. Most states print class codes prominently near the top or in a dedicated "Class" field. Restrictions and endorsements usually appear in a separate section, sometimes labeled "Restrictions," "Conditions," or "Endorsements," often on the back of the card or in a smaller text area on the front.

Some states use abbreviations (like "CL" for class or "R" for restriction), while others spell them out. A few states print codes as numbers rather than letters. Your state's DMV handbook will show you exactly where to look and what each abbreviation means. If your license is worn or the text is hard to read, you can request a replacement card from your DMV—this is usually a straightforward process and costs less than a full renewal.

If you received your license years ago, the codes may have changed since then. States periodically update their code systems to reflect new vehicle types or regulations. If you are unsure whether your license reflects current codes, contact your DMV to confirm. In some cases, you may need to pass a new test or medical examination to update your codes, but this is rare unless your license is being renewed anyway.

What Happens If You Drive Without the Right Code

Driving a vehicle type that your license does not authorize is a violation, even if you are a skilled driver or the vehicle is similar to one you are permitted to drive. Law enforcement can cite you for "driving without proper licensing" or "driving without required endorsement," depending on your state's language. This is separate from a standard traffic ticket and can result in fines, points on your driving record, and in some cases a court appearance.

For example, if your license is Class D (standard cars) and you operate a commercial truck, you can be cited even if you have driven trucks before. If your license requires corrective lenses and you drive without them, you can be cited even if you can see well enough to drive safely. If you hold a passenger vehicle endorsement but drive a bus without one, you can be cited. The violation exists because you do not have legal authorization, not because you lack skill.

If you need to drive a vehicle type your license does not currently authorize, contact your DMV to find out what test or documentation is required to add that class or endorsement. In most cases, you can schedule a test within days or weeks. This is faster and cheaper than paying a citation and dealing with a violation on your record.

Frequently Asked Questions

Can I drive a manual transmission car if my license says "M" for manual transmission only?

Yes. The "M" code means you can only drive manual transmission vehicles—you are restricted to them. If your license shows "M," you cannot legally operate an automatic transmission vehicle. If you want to remove this restriction, you must pass a road test in an automatic vehicle and request an updated license from your DMV.

What does it mean if my license has no endorsements?

It means you are not authorized to operate vehicles that require special endorsements, such as hazmat trucks, buses, or tanker vehicles. You can drive any vehicle within your class code (for example, standard cars if you hold Class D), but you cannot legally operate commercial vehicles that require endorsements unless you pass the required test and receive the endorsement code.

Do I need to update my license codes if I move to a new state?

Your out-of-state license remains valid in your new state for the duration of its expiration date. However, if you obtain a new license in your new state, it will use that state's code system. You do not have to transfer or update codes—your new state will issue a new license with its own codes based on your driving history and any tests you pass.

Can I add an endorsement to my license without renewing it?

Yes, in most states. You can contact your DMV to schedule a test for an endorsement you want to add, and if you pass, they will issue an updated license or an endorsement card. You do not have to wait for your license to expire. Some states charge a small fee for adding an endorsement between renewals.

What if I do not understand a code on my license?

Contact your state DMV directly. You can call the main DMV phone line, visit a local office, or check your state's DMV website for a code reference guide. Every state publishes a list of all codes used on licenses. Staff can explain what each code means and whether it affects your driving permissions.