Driver's License Decoding
The data encoded in the PDF417 barcode on the back of the driver’s license can be decoded as below.
@<0A><1E><0D> # fixed header
ANSI # "ANSI ": fixed
636012030001DL # 636012: IIN(Issuer Identification Number)
# 03:AAMVA version number
# 00:Jurisdiction Version Number
# 01: number of entries(the "DL00000367" part)
00000367 # DL=Driver's License/ID=non-DL
# 0000: offset for this subfile
# 0367: subfile length
DL
DCAG<0A>
DCBX<0A>
DCDNONE<0A>
DBA20170325<0A>
...
Definications for data elements:
DCA Jurisdiction-specific vehicle class
DCB Jurisdiction-specific restriction codes
DCD Jurisdiction-specific endorsement codes
DBA Document Expiration Date
DCS Customer Family Name
DCT Customer Given Name
DBD Document Issue Date
DBB Date of Birth
DBC Sex, 1=male 2=female
DAY Eye Color
DAU Height, a number followed by " cm" or " in"
DAG Address - Street 1
DAI Address - City
DAJ Address - State
DAK Address - Postal Code
DAQ Customer ID Number
DCF Document Discriminator
DCG Country Identification
DCK Inventory control number
RESOURCES
- Driver’s Licence Card Design Standards from AAMVA, PDF available. see Annex D
- ISO IINs issued to U.S, Canadian & Mexican Jursdictions
- Magnetic Strip and Barcode Decoding
- Magnetic Strip Encoding
- Drivers License Bar Code & Mag Stripe - By State, A map for current status of barcode vs mag.stripe
- MVR Driver’s License Requirements and Order Guidelines
- Unique ID, some instructions about how to calculate your driver’s license ID
- About the barcode encryption