UK Driving Licence Decoder

Enter a 16-character UK driving licence number to check its structure and read back the date of birth and sex encoded in it. It runs in your browser and reveals nothing about the holder's name.

Processed entirely in your browser. This validator runs on your device using JavaScript. The number you enter is never sent to a server, stored, or logged, and nothing leaves your device.

The driver number is the long code in field 5 of the licence.

How It Works

A UK driving licence number, the long code shown in field 5 of the photocard, is 16 characters and is built from the holder's own details rather than assigned at random. Reading it left to right, the first five characters come from the surname, padded with 9s if the surname is short. The block in the middle is the date of birth, and the last few characters are initials and a computer-generated check.

The date of birth is the part worth decoding. The sixth character is the decade of the birth year, the next two are the month, then the day, and then a single digit for the last figure of the year. Sex is folded into the month: a man's month is stored as 01 to 12, while a woman's has 50 added to it, so it reads as 51 to 62. Because only two digits of the year are stored, the century is not recorded, so the exact year cannot be pinned down from the number alone.

Worked Example

Take the sample number MORGA855157NJ9XY, which is fabricated and belongs to no one. The middle block reads 8, then 55, then 15, then 7. The 55 is a month with 50 added, so the holder is female and the month is May. The day is 15. The decade digit 8 and the final year digit 7 give a year ending in 87. So this number decodes to a woman born on 15 May in a year ending 87, most likely 1987, while the name stays private.

When You Would Use This

This is handy when you are checking a licence number on a form and want to confirm it is at least the right shape and that the encoded birth date matches what you expect, for example an employer running a routine check, or someone confirming they have copied the number down correctly. It is also a simple way to understand what the long number on your own licence actually means, without needing to share it with any website.

Frequently Asked Questions

What can this tool actually tell me?

It confirms the number is shaped like a real DVLA driver number and reads back the two pieces that are reliably encoded: the date of birth and the sex of the holder. It deliberately does not try to reveal the name.

Why does it not show the surname or name?

The first five characters come from the surname, but they are only a fragment padded with 9s, and the initials are just single letters. There is no way to turn them back into a real name with any certainty, so showing one would be a guess. The tool sticks to what can genuinely be decoded.

How is the sex encoded in the number?

It is hidden in the month of birth. For men the month is stored normally, 01 to 12. For women 50 is added, so the same months become 51 to 62. Reading that offset back is how the tool reports the sex.

Can it work out my full year of birth?

Not with certainty. The number stores only two digits of the year, the decade and the final digit, and not the century. So a number ending the year in 87 could mean 1987, and the tool says so rather than guessing between centuries.

Does a valid structure mean the licence is genuine?

No. A number can be perfectly well formed and still be invented. Only the DVLA can confirm that a licence is real, current, and belongs to a particular person. This is a format and decode tool, not a lookup.

Does it work for Northern Ireland licences?

No. Northern Ireland licences are issued by the DVA, not the DVLA, and use a different eight-digit driver number that does not carry the surname and date of birth in this way.