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.
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.
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.
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
Frequently Asked Questions