AAMVA barcode format: every PDF417 data element (DAQ, DCS, DBB) explained
An AAMVA barcode is the PDF417 on the back of a US or Canadian driver's license, encoded as plain text by the rules of the AAMVA DL/ID Card Design Standard. It starts with a fixed header of 21 characters, then a directory of subfiles, then one data element per line, each behind a three letter code: DAQ for the license number, DCS for the family name, DBB for the date of birth. This guide lists every element of the October 2026 edition (barcode version 12), the parsing rules that trip people up, and what the barcode cannot tell you.

What is the AAMVA barcode format?
AAMVA, the American Association of Motor Vehicle Administrators, publishes the DL/ID Card Design Standard that every US state, the District of Columbia and the Canadian provinces follow for their cards. Annex D of that standard makes a PDF417 barcode mandatory on the back of the card and defines exactly how the data inside it is laid out. The symbol itself is a generic two dimensional barcode (PDF417, ISO/IEC 15438); the AAMVA part is the text format it carries.
If you only need to know what the barcode holds and why it exists, our guide to the DMV barcode covers it in plain terms. This page is the reference for people who write or debug a parser: the header byte by byte, the subfiles, every element code, and the edge cases found on real cards.
| Item | Value in the October 2026 standard |
|---|---|
| Standard | AAMVA DL/ID Card Design Standard, 2026 edition (version 1.0, October 2026) |
| Section | Annex D, Mandatory PDF417 Bar Code (D.12 for the encoding structure) |
| Barcode version number | 12 for cards built to this edition |
| Character set | Printable text; LF ends each element, CR ends each subfile |
| Mandatory elements | 22 (Table D.3) |
| Optional elements | 34 rows in Table D.4, including placeholders and the new SIG and SCV |
| Alternative encoding | A compact encoding, described in informative Annex I |
The header: the first 21 characters
Every compliant barcode begins with a fixed header. Each field has a fixed number of bytes, and numbers are filled with leading zeros, so a parser can read the header by position before looking at any data:
| Field | Bytes | Content | Value |
|---|---|---|---|
| Compliance indicator | 1 | Marks the symbol as AAMVA compliant | @ |
| Data element separator | 1 | Ends each data element | Line feed (LF, hex 0A) |
| Record separator | 1 | Reserved for future use, always present | RS (hex 1E) |
| Segment terminator | 1 | Ends each subfile | Carriage return (CR, hex 0D) |
| File type | 5 | Identifies the AAMVA format | ANSI followed by a space |
| Issuer identification number (IIN) | 6 | Identifies the issuing jurisdiction | 636 followed by three digits for most jurisdictions |
| AAMVA version number | 2 | Edition of the standard the card follows | 00 to 12 |
| Jurisdiction version number | 2 | The state's own revision within that edition | Starts at 00 |
| Number of entries | 2 | How many subfiles follow | 01 to 99, usually 01 or 02 |
Add up the bytes and the header is always 21 characters long. The AAMVA version number is the field to read first, because it tells you which element list and which conventions to expect. Cards stay in wallets for five to ten years, so a reader in 2026 meets versions 08, 09 and 10 every day, alongside the 11 and 12 cards that issuing offices are starting to print.
Subfile designators: DL, ID and the Z subfiles
Right after the header comes one designator of 10 characters per subfile, one behind the other:
| Field | Bytes | Content |
|---|---|---|
| Subfile type | 2 | DL for a driver license, ID for an identification card, Z plus a letter for a jurisdiction subfile |
| Offset | 4 | Position of the subfile, counted in bytes from the first character of the barcode (which is offset 0) |
| Length | 4 | Length of the subfile in bytes, including its two letter type and its final CR |
With two subfiles, the header and the two designators take 21 + 10 + 10 = 41 bytes, which is why the example in the standard shows DL00410480: a DL subfile that starts at byte 41 and runs for 480 bytes. The second designator then points to the jurisdiction subfile right after it.
Jurisdiction subfiles are named Z followed by the first letter of the jurisdiction's name: ZV for Virginia, ZQ for Quebec. The letter is ambiguous (ZC can be California, Colorado or Connecticut), so the standard tells readers to use the IIN or the address to know who issued the card. Elements inside follow the same pattern and alphabetical order: ZVA, ZVB and so on. Their meaning is set by each state and is not in the standard.
The mandatory data elements
Table D.3 lists 22 elements that every DL subfile must carry. Length codes follow the standard: F for a fixed length, V for a variable maximum length, then the allowed characters (A letters, N digits, S special characters).
| Code | Element | Length and type | What to know |
|---|---|---|---|
| DCA | Vehicle class | V6ANS | Each jurisdiction's own codes (D, C, M...) |
| DCB | Restriction codes | V12ANS | Jurisdiction codes, NONE if there are none |
| DCD | Endorsement codes | V5ANS | Jurisdiction codes, NONE if there are none |
| DBA | Expiration date | F8N | MMDDCCYY in the US, CCYYMMDD in Canada |
| DCS | Family name | V40ANS | Full name kept on record, may be cut on the card |
| DAC | First name | V40ANS | |
| DAD | Middle names | V40ANS | Several middle names are separated by commas |
| DBD | Issue date | F8N | Date of the current physical card |
| DBB | Date of birth | F8N | Same date order as DBA |
| DBC | Sex | F1N | 1 male, 2 female, 9 not specified or other |
| DAY | Eye color | F3A | Three letter codes from AAMVA D20 (BRO, BLU, HAZ...) |
| DAU | Height | F6ANS | "073 in" or "181 cm" |
| DAG | Street address | V35ANS | |
| DAI | City | V20ANS | |
| DAJ | State or province | F2A | Two letter code of the address, not always the issuer |
| DAK | Postal code | V9ANS | US ZIP filled with zeros to 9 digits; Canadian format A1A 1A1 |
| DAQ | Customer ID number | V25ANS | The license number, in the issuer's own format |
| DCF | Document discriminator | V25ANS | Identifies this card among all cards issued to the person |
| DCG | Country | F3A | USA or CAN |
| DDE | Family name truncation | F1A | T truncated, N not truncated, U unknown |
| DDF | First name truncation | F1A | Same codes |
| DDG | Middle name truncation | F1A | Same codes |
Two words have a special meaning in these fields. NONE means the element does not apply to this cardholder, for instance a license without restrictions. unavl means the data exists in principle but was not available when the card was made. Neither should be stored as a real value.
The optional data elements
Table D.4 lists the elements a jurisdiction may add. Some are placeholders reserved for the future (DBN, DBG, DBS, DCL, DDC) and carry nothing yet. The others:
| Code | Element | Length and type | Values |
|---|---|---|---|
| DAH | Street address, line 2 | V35ANS | |
| DAZ | Hair color | V12A | Words or D20 three letter codes |
| DCI | Place of birth | V33A | Country, state or city |
| DCJ | Audit information | V25ANS | When, where and by whom the card was made |
| DCK | Inventory control number | V25ANS | Number of the card stock |
| DCU | Name suffix | V5ANS | JR, SR, 1ST to 9TH or I to IX |
| DCE | Weight range | F1N | 0 (up to 70 lbs) to 9 (321 lbs and more) |
| DCM, DCN, DCO | Standard class, endorsement and restriction codes | F4AN, F5AN, F12AN | Placeholders for codes harmonized across states |
| DCP, DCQ, DCR | Descriptions of the class, endorsement and restriction codes | V50ANS | Free text explaining the jurisdiction codes |
| DDA | Compliance type | F1A | F for a REAL ID compliant card, N otherwise |
| DDB | Card revision date | F8N | Date of the card design in use |
| DDD | Limited duration document | F1N | 1 when the holder has temporary lawful status |
| DAW, DAX | Weight in pounds, in kilograms | F3N | "185", "084" |
| DDH, DDI, DDJ | Under 18, under 19, under 21 until | F8N | Date the holder reaches that age |
| DDK | Organ donor indicator | F1N | 1 or absent |
| DDL | Veteran indicator | F1N | 1 or absent |
| DDM | CDL indicator | F1N | 1 for a commercial license or learner's permit |
| DDN | Non domiciled indicator | F1N | 1 for a non domiciled CDL holder; only with DDM |
| DDO | Enhanced credential indicator | F1N | 1 for an enhanced license or ID card |
| DDP | Permit indicator | F1N | 1 for a learner's, motorcycle or commercial permit |
| SIG | Digital signature | F80 | 80 printable characters, new in the 2026 edition |
| SCV | Signature coverage | Variable | Which elements the signature covers, new in the 2026 edition |
The organ donor and veteran flags deserve a note: the standard says they mirror the issuer's records when the card was made, and that their absence does not mean the person is not a donor or not a veteran. The same caution applies to every indicator of the form "1 or absent".
What changed in versions 11 and 12
The AAMVA version number has moved with each edition of the standard since 2000. The list below comes from section D.12.3 of the 2026 edition:
| Version | Standard | Version | Standard |
|---|---|---|---|
| 00 | Before AAMVA DL/ID-2000 | 07 | Card Design Standard, June 2012 |
| 01 | AAMVA DL/ID-2000 | 08 | Card Design Standard, August 2013 |
| 02 | Card Design Specification 1.0, September 2003 | 09 | Card Design Standard, September 2016 |
| 03 | Card Design Specification 2.0, March 2005 | 10 | Card Design Standard, October 2020 |
| 04 | Card Design Standard, July 2009 | 11 | Card Design Standard, June 2025 |
| 05 | Card Design Standard, July 2010 | 12 | Card Design Standard, October 2026 |
| 06 | Card Design Standard, July 2011 |
- Version 11 (June 2025) is the edition just before the current one, and many states still print to it. The optional list of the current standard includes four document type indicators: CDL (DDM), non domiciled (DDN), enhanced credential (DDO) and permit (DDP). When they are present, a parser no longer has to guess a commercial or learner's card from each state's class codes; a card built to an older version may simply not carry them.
- Version 12 (October 2026) adds a standard digital signature. The SIG element holds an ECDSA signature (P-256 curve, SHA-256) over the barcode data, converted to exactly 80 printable characters with Base85. The optional SCV element lists, as "signed elements;unsigned elements", which fields the signature covers when the issuer could not sign everything, for example a document discriminator set later by the card factory. AAMVA announced the update on 28 October 2026.
- Before version 12, some jurisdictions already signed their barcode inside their own Z subfile, each in its own way. The standard tells readers to use the version number to set expectations and to look for a signature in the jurisdiction elements when SIG is absent.
Cards built to versions 01 to 03 also use a few identifiers that later editions retired, notably for names and for class, restriction and endorsement codes. A parser that must read very old cards needs the edition matching their version number.
Rules a parser has to get right
- Read the version before the data. The version number decides the element list, the date conventions and the presence of SIG. Even the example printed in the 2026 standard shows 12 in the encoded header and 11 in its own explanation below: trust the encoded string.
- Use the directory, not a search for "DL". The offset and length of each subfile tell you where it starts and ends. Searching the text for the letters DL breaks on names and addresses that contain them.
- Split on LF, end on CR. Each element starts with its three letter code and ends with a line feed; each subfile ends with a carriage return. Some scanners in keyboard mode change or drop these control characters, which is the cause of many "corrupt" barcodes.
- Handle both date orders. US cards write MMDDCCYY, Canadian cards CCYYMMDD. Check DCG (USA or CAN) before converting DBB, DBA and DBD.
- Trim the padding. Padding of variable length fields is optional, so values may arrive with trailing spaces, and US postal codes end with zeros when the last four digits are unknown.
- Respect truncation flags. When DDE, DDF or DDG is T, the name in the barcode is shorter than the legal name. Matching it against another document should allow for that.
- Treat NONE and unavl as empty, and keep unknown codes. A state may add elements, and future editions will fill the placeholders. Store unknown codes as raw pairs instead of rejecting the card.
- Expect the compact encoding. Annex I allows an alternative compact structure. It is rare on cards in circulation, but a strict parser that only knows D.12 will fail on it.
A minimal parser, step by step
The sketch below reads the header, the subfile directory and the elements of each subfile. It is written for clarity, not production: it does not check the signature and does not convert dates. The excerpt it reads comes from a fictional specimen.
def parse_aamva(raw: str) -> dict:
assert raw[0] == "@" and raw[4:9] == "ANSI ", "not an AAMVA barcode"
header = {
"iin": raw[9:15],
"aamva_version": int(raw[15:17]),
"jurisdiction_version": int(raw[17:19]),
"entries": int(raw[19:21]),
}
subfiles = {}
for i in range(header["entries"]):
d = raw[21 + 10 * i: 31 + 10 * i] # e.g. DL00410480
kind, offset, length = d[:2], int(d[2:6]), int(d[6:10])
body = raw[offset: offset + length].rstrip("\r")
if body.startswith(kind):
body = body[2:]
fields = {}
for line in body.split("\n"):
line = line.strip()
if len(line) >= 3:
fields[line[:3]] = line[3:].strip()
subfiles[kind] = fields
return {"header": header, "subfiles": subfiles}
# parse_aamva(barcode_text)["subfiles"]["DL"]["DAQ"] -> "D1234567"Real barcodes add their share of surprises: offsets that are off by a few bytes on some older cards, a first element glued to the subfile type, or a scanner that already stripped the control characters. Production libraries such as the open source aamva barcode library on GitHub or the parsers built into barcode SDKs (Dynamsoft, Scandit, Microblink, barKoder) carry years of these fixes, which is a good reason not to start from zero. To decode the barcode from a photo in the first place, our tutorial shows how to extract data from a driver license with zxing-cpp, and how that compares with OCR on the front.
What the barcode does not tell you
A parsed barcode gives you clean fields. It does not give you proof:
- Unsigned data proves nothing. Nearly every card in circulation has no SIG element, and anyone with the published standard can produce a well formed barcode. The standard's own section B.6.2.3 adds that even a valid signature only shows the data was not altered and came from an issuer's key: it says nothing about the portrait, or about whether the data still matches the state record.
- The right to drive is elsewhere. A suspended driver's genuine card decodes perfectly. Status comes from the state, through a motor vehicle record (MVR) or the AAMVA Driver's License Data Verification service (DLDV). Our page on the driver license verification API separates what a document check can see from what only the state can confirm.
- The printed side is the cross check. Comparing the decoded DBB, DBA and DAQ with what is printed on the front catches cards that were edited on one side only.
Koncile, which publishes this guide, works on that printed side: it reads the front and the back of a license from a photo, a scan or a PDF, returns the fields with a confidence score, checks the expiration and the consistency of the dates, and scores signs of editing on the file. It does not guarantee decoding of the PDF417, does not verify the SIG signature and does not query any state record, so a team that needs the raw barcode keeps a barcode SDK for it and compares the two results.
Frequently asked questions
01What is an AAMVA barcode?
It is the PDF417 barcode on the back of US and Canadian driver's licenses and ID cards, encoded in the text format defined by Annex D of the AAMVA DL/ID Card Design Standard: a fixed header, subfile designators, then data elements identified by three letter codes.
02What does DAQ mean on a driver's license barcode?
DAQ is the customer ID number, which on a driver's license is the license number assigned by the issuing state or province. Its format is set by each jurisdiction and can hold up to 25 characters.
03What are DCS, DAC and DBB?
DCS is the family name, DAC the first name and DBB the date of birth. DBB is written MMDDCCYY on US cards and CCYYMMDD on Canadian cards, so 01151990 on a US card means 15 January 1990.
04Which AAMVA version is the current one?
Version 12, which matches the AAMVA DL/ID Card Design Standard of October 2026. Version 11 matches the June 2025 edition and version 10 the October 2020 edition. Cards built to older versions stay valid until they expire, so readers must handle several versions.
05Is the AAMVA barcode encrypted?
No. The data is plain text. Since the 2026 edition, an issuer can add a digital signature (SIG element) that shows whether the data was altered, but the signature does not hide anything and cards issued before carry none.
06Where can I get the AAMVA standard?
AAMVA publishes the DL/ID Card Design Standard on its website, in the Driver License and Identification Standards section. The barcode format is in Annex D; the digital signature rules are in Annex B.
07Why does my AAMVA parser fail on some licenses?
The usual causes are a scanner that drops the line feed and carriage return characters, a parser that ignores the version number, Canadian date order, padding with spaces, unknown jurisdiction elements in a Z subfile, or the rare compact encoding of Annex I.
08Does Koncile decode the AAMVA barcode?
Not as a guaranteed feature. Koncile reads the printed fields on both sides of the license and checks the document. If you need the raw AAMVA data, decode the barcode with a barcode SDK and compare it with the printed fields.
Sources
- AAMVA DL/ID Card Design Standard (2026)), Annex D (D.12.3 header, D.12.4 subfile designator, Tables D.3 and D.4) and Annex B (B.6.2 digital signature), version 1.0 of October 2026, read on 2 November 2026
- AAMVA: digital signature update to the Card Design Standard, 28 October 2026
- AAMVA: Driver License and Identification Standards
- Dynamsoft: North America Driver License and Identification fields, read on 2 November 2026
- Microblink: keys for US driver's license data, read on 2 November 2026
- aamva barcode library (open source, GitHub), read on 2 November 2026
Read the printed fields of a license, front and back
Compare your decoded AAMVA data with the printed card: drop a photo, a scan or a PDF and get the fields, the expiration check and the editing score.
Create a Koncile account, 20 free creditsTalk to an expert
20 free credits, no credit card. For professional use only; documents are deleted after analysis.