DriverLicenseOCR

AAMVA barcode format: every PDF417 data element (DAQ, DCS, DBB) explained

Published 2026-11-02 · By the Koncile team

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.

Driver's license with PDF417 barcode next to a laptop displaying a magnified, labeled barcode.

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.

Key facts of the AAMVA barcode format. Source: AAMVA DL/ID Card Design Standard (2026), Annex D, read on 2 November 2026.
ItemValue in the October 2026 standard
StandardAAMVA DL/ID Card Design Standard, 2026 edition (version 1.0, October 2026)
SectionAnnex D, Mandatory PDF417 Bar Code (D.12 for the encoding structure)
Barcode version number12 for cards built to this edition
Character setPrintable text; LF ends each element, CR ends each subfile
Mandatory elements22 (Table D.3)
Optional elements34 rows in Table D.4, including placeholders and the new SIG and SCV
Alternative encodingA 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:

Header of an AAMVA barcode (Table D.1 of the standard).
FieldBytesContentValue
Compliance indicator1Marks the symbol as AAMVA compliant@
Data element separator1Ends each data elementLine feed (LF, hex 0A)
Record separator1Reserved for future use, always presentRS (hex 1E)
Segment terminator1Ends each subfileCarriage return (CR, hex 0D)
File type5Identifies the AAMVA formatANSI followed by a space
Issuer identification number (IIN)6Identifies the issuing jurisdiction636 followed by three digits for most jurisdictions
AAMVA version number2Edition of the standard the card follows00 to 12
Jurisdiction version number2The state's own revision within that editionStarts at 00
Number of entries2How many subfiles follow01 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:

Subfile designator (Table D.2 of the standard).
FieldBytesContent
Subfile type2DL for a driver license, ID for an identification card, Z plus a letter for a jurisdiction subfile
Offset4Position of the subfile, counted in bytes from the first character of the barcode (which is offset 0)
Length4Length 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).

The 22 mandatory data elements of the DL subfile, in the order of Table D.3 of the AAMVA standard (2026). Order inside a real barcode can differ.
CodeElementLength and typeWhat to know
DCAVehicle classV6ANSEach jurisdiction's own codes (D, C, M...)
DCBRestriction codesV12ANSJurisdiction codes, NONE if there are none
DCDEndorsement codesV5ANSJurisdiction codes, NONE if there are none
DBAExpiration dateF8NMMDDCCYY in the US, CCYYMMDD in Canada
DCSFamily nameV40ANSFull name kept on record, may be cut on the card
DACFirst nameV40ANS
DADMiddle namesV40ANSSeveral middle names are separated by commas
DBDIssue dateF8NDate of the current physical card
DBBDate of birthF8NSame date order as DBA
DBCSexF1N1 male, 2 female, 9 not specified or other
DAYEye colorF3AThree letter codes from AAMVA D20 (BRO, BLU, HAZ...)
DAUHeightF6ANS"073 in" or "181 cm"
DAGStreet addressV35ANS
DAICityV20ANS
DAJState or provinceF2ATwo letter code of the address, not always the issuer
DAKPostal codeV9ANSUS ZIP filled with zeros to 9 digits; Canadian format A1A 1A1
DAQCustomer ID numberV25ANSThe license number, in the issuer's own format
DCFDocument discriminatorV25ANSIdentifies this card among all cards issued to the person
DCGCountryF3AUSA or CAN
DDEFamily name truncationF1AT truncated, N not truncated, U unknown
DDFFirst name truncationF1ASame codes
DDGMiddle name truncationF1ASame 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:

Optional data elements of Table D.4 of the AAMVA standard (2026), placeholders left out.
CodeElementLength and typeValues
DAHStreet address, line 2V35ANS
DAZHair colorV12AWords or D20 three letter codes
DCIPlace of birthV33ACountry, state or city
DCJAudit informationV25ANSWhen, where and by whom the card was made
DCKInventory control numberV25ANSNumber of the card stock
DCUName suffixV5ANSJR, SR, 1ST to 9TH or I to IX
DCEWeight rangeF1N0 (up to 70 lbs) to 9 (321 lbs and more)
DCM, DCN, DCOStandard class, endorsement and restriction codesF4AN, F5AN, F12ANPlaceholders for codes harmonized across states
DCP, DCQ, DCRDescriptions of the class, endorsement and restriction codesV50ANSFree text explaining the jurisdiction codes
DDACompliance typeF1AF for a REAL ID compliant card, N otherwise
DDBCard revision dateF8NDate of the card design in use
DDDLimited duration documentF1N1 when the holder has temporary lawful status
DAW, DAXWeight in pounds, in kilogramsF3N"185", "084"
DDH, DDI, DDJUnder 18, under 19, under 21 untilF8NDate the holder reaches that age
DDKOrgan donor indicatorF1N1 or absent
DDLVeteran indicatorF1N1 or absent
DDMCDL indicatorF1N1 for a commercial license or learner's permit
DDNNon domiciled indicatorF1N1 for a non domiciled CDL holder; only with DDM
DDOEnhanced credential indicatorF1N1 for an enhanced license or ID card
DDPPermit indicatorF1N1 for a learner's, motorcycle or commercial permit
SIGDigital signatureF8080 printable characters, new in the 2026 edition
SCVSignature coverageVariableWhich 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:

AAMVA barcode version numbers and the edition each one matches.
VersionStandardVersionStandard
00Before AAMVA DL/ID-200007Card Design Standard, June 2012
01AAMVA DL/ID-200008Card Design Standard, August 2013
02Card Design Specification 1.0, September 200309Card Design Standard, September 2016
03Card Design Specification 2.0, March 200510Card Design Standard, October 2020
04Card Design Standard, July 200911Card Design Standard, June 2025
05Card Design Standard, July 201012Card Design Standard, October 2026
06Card 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

  1. 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.
  2. 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.
  3. 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.
  4. Handle both date orders. US cards write MMDDCCYY, Canadian cards CCYYMMDD. Check DCG (USA or CAN) before converting DBB, DBA and DBD.
  5. 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.
  6. 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.
  7. 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.
  8. 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

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.