Driving Licence Validator
EverydayValidate whether an Indian driving licence number follows the official 15-character format — state code, RTO code, year, and serial number. Instant check.
Reviewed by the thecalcu.com team · Last updated 24 July 2026
What is a DL?
The Driving Licence Validator checks whether an Indian driving licence number follows the official 15-character format assigned by Regional Transport Offices (RTOs) under the Ministry of Road Transport and Highways (MoRTH). Every driving licence issued in India carries a unique number that encodes four pieces of information: the issuing state, the RTO code, the year of issue, and a serial number, and that number must follow a specific structure to be structurally valid.
The format is: two uppercase letters (state code) + two digits (RTO code) + four digits (year) + seven digits (serial) = 15 characters. For example, MH012020001234 is a Maharashtra-issued licence (MH), from RTO 01, issued in 2020, with serial 0012345.
This validator accepts numbers with or without hyphens, the format MH-01-2020-001234 is equivalent to MH012020001234. It also validates the state code against the complete list of officially assigned 2-letter codes for all 28 states and 8 union territories, and checks that the year falls within a plausible range (1990 to the present).
For related document validation, use the Aadhaar Number Validator and Vehicle Registration Validator.
Why Use a Driving Licence Validator?
Driving licence numbers are entered in a range of official contexts, vehicle loan applications, insurance forms, job applications, KYC verification, and police verification for rented accommodation. A mistyped DL number in any of these forms causes processing delays or outright rejections.
Common entry errors include: copying only 14 characters (missing the last digit), writing the state registration prefix (from the vehicle number plate) instead of the DL state code, entering the year in 2-digit form instead of 4-digit, and confusing hyphens as mandatory characters that need to be excluded. This validator catches all of these with specific error messages.
Who Should Use This Validator?
Individuals submitting vehicle loan or insurance applications, Lenders and insurers require the DL number as part of KYC. A format check before submitting the application prevents rejection due to a simple transcription error.
HR and background verification teams, Companies running employee background checks or vehicle operator verification often collect DL numbers in bulk. Validating format at the point of collection prevents bad data from entering the HR system.
Transport and logistics companies, Fleet operators who maintain driver records and submit DL numbers to insurance companies benefit from a quick format check during onboarding of new drivers.
Developers building KYC or onboarding flows, Applications that collect DL numbers for identity verification need a client-side format validator. This tool documents the exact rules and state code list to implement.
Individuals applying for DigiLocker or Parivahan services, Linking your DL on DigiLocker or Parivahan requires entering the number correctly. A format check before entry catches typos that would cause a "DL not found" error on the portal.
What Insights Does the Driving Licence Validator Give You?
The validator decodes the number into its four components, state, RTO, year, and serial, and names the state associated with the state code. This allows a quick sanity check: if you entered a Maharashtra address but the state code decodes to Rajasthan, the number was likely copied incorrectly.
The year check confirms whether the issue year is plausible, it must be between 1990 (when computerised issuance became widespread) and the current year. An obviously wrong year (like 1975 or a future year) is flagged immediately.
How to use this DL calculator
- Type or paste the driving licence number into the input field. You can enter it with or without hyphens (e.g.
MH012020001234orMH-01-2020-001234), both are accepted. - The result updates automatically as you type, no button press needed.
- Check the Valid or Invalid badge.
- If Invalid, read the error message, it will tell you specifically whether the state code is unrecognised, the year is out of range, or the number is too short or too long.
- If Valid, check the details section to see the decoded state name, RTO code, year, and serial number.
- To validate a different number, clear the field and enter the new value.
Show formula & methodology ↓Show less ↑
Formula & Methodology
Format rule: An Indian driving licence number must satisfy all conditions: 1. Exactly 15 characters (after stripping hyphens and spaces) 2. Characters 1–2: valid state or UT code from the official MoRTH list (e.g. MH, DL, KA) 3. Characters 3–4: 2-digit RTO code (digits 00–99) 4. Characters 5–8: 4-digit year between 1990 and the current year 5. Characters 9–15: 7-digit serial number (digits only) Regular expression:/^[A-Z]{2}[0-9]{2}[0-9]{4}[0-9]{7}$/Valid examples: -MH012020001234, Maharashtra, RTO 01, year 2020, serial 0012345 -DL042015001234, Delhi, RTO 04, year 2015, serial 0012345 -KA032018001234, Karnataka, RTO 03, year 2018, serial 0012345 Invalid examples: -MH01202000123, only 14 characters (serial has 6 digits instead of 7) -XX012020001234, 'XX' is not a valid state code -MH012030001234, year 2030 is in the future -MH-01-2020-001234without stripping, treated as 19 characters; the validator strips hyphens automatically
Related Tools
You may also find these useful: Pincode / ZIP Validator.
Frequently Asked Questions