Skip to main content

UK Driving Licence Validator

Validate UK Driving Licence Numbers. Enforces structural DVLA standards.

How UK DLN validation works

The validator cleans input hyphens/spaces and validates total length (exactly 16 characters). It checks if it matches the official regex template (5 letters/9s, birth year decade, month, day, year unit, initials, and overlap letters).

It decodes calendar coordinates from the middle positions to determine birth month, day, and gender mapping, verifying the logical consistency of the licence.

Anatomy & Structure of British DLN (16 Characters)

The DVLA driving licence number encodes personal demographic data in 16 characters:

PositionFieldLengthMeaning & RuleExample
1 to 5Surname5 lettersFirst 5 letters of surname (padded with "9" if shorter)SMITH
6Decade Digit1 digitDecade digit of birth year (e.g. "8" for 1985)8
7 & 8Birth Month2 digitsMonth 01-12 (+50 added for female drivers: 51-62)62
9 & 10Birth Day2 digitsCalendar day of birth (01 to 31)15
11Year End Digit1 digitFinal digit of birth year (e.g. "5" for 1985)5
12 & 13Initials2 charsFirst and middle name initials (padded with "9")JD
14 to 16Security & Version3 charsSecurity digit (usually "9") and two-letter issue code9AA

DLN Demographic Encoding Algorithm (DVLA)

The British driving licensing agency (DVLA) encodes gender and dates using arithmetic rules in positions 6 to 11:

Real_Month = Encoded_Month >= 50 ? Encoded_Month - 50 : Encoded_Month
  1. 1. The first 5 characters contain the uppercase surname.
  2. 2. Positions 7 & 8: if value >= 50, the driver is female; subtract 50 to find the true birth month (1 to 12).
  3. 3. If positions 7 & 8 are between 01 and 12, the driver is male.
  4. 4. Positions 9 & 10 represent calendar day of birth (01 to 31).
  5. 5. The decade digit (pos 6) and year-end digit (pos 11) reconstruct the birth year.

Frequently Asked Questions