VALIDPDF417

Reference · 33 element codes · derived from fields.json

AAMVA element codes, DAA to DDL.

An AAMVA payload is a sequence of three-letter codes followed immediately by their values. There is no key, no colon and no delimiter: the reader finds each element by its code and reads the width the standard fixes for it. This table lists every code the encoder accepts, the pattern it enforces before encoding, the maximum number of characters it takes, and how many of the 63 jurisdictions require it.

The counts are computed from the jurisdiction table rather than typed, which is why the last column is not 63 everywhere. New York adds DAH; most other rows do not require it.

Cite this table

VALIDPDF417. "AAMVA element codes, DAA to DDL."
validpdf417.com. https://validpdf417.com/data/aamva-element-codes/
(accessed 2026-12-05).

Machine-readable: /schema/fields.json

Document

16 codes

CodeElementTypeWidthInput patternRequired by
DAQ License number text 25 ^[A-Z0-9-]+$ 63 / 63
DBA Expiry date date 8 ^[0-9]{8}$ 63 / 63
DBD Issue date date 8 ^[0-9]{8}$ 63 / 63
DCF Document discriminator text 25 ^[A-Z0-9-]+$ 63 / 63
DCK Inventory control text 25 ^[A-Z0-9-]+$ 63 / 63
DCA Vehicle class text 4 ^[A-Z0-9]+$ 63 / 63
DCB Restrictions text 12 ^[A-Z0-9 ]+$ 63 / 63
DCD Endorsements text 12 ^[A-Z0-9 ]+$ 63 / 63
DDA Compliance type select 1 F N 63 / 63
DDB Card revision date date 8 ^[0-9]{8}$ 63 / 63
DDD Limited duration select 1 1 0 63 / 63
DDE Family name truncated select 1 T N 63 / 63
DDF Given name truncated select 1 T N 63 / 63
DDG Middle name truncated select 1 T N 63 / 63
DDK Organ donor select 1 1 0 63 / 63
DDL Veteran select 1 1 0 63 / 63

Identity

7 codes

CodeElementTypeWidthInput patternRequired by
DCS Family name text 40 ^[A-Z0-9 '-]+$ 63 / 63
DAC Given name text 40 ^[A-Z0-9 '-]+$ 63 / 63
DAD Middle name text 40 ^[A-Z0-9 '-]+$ 0 / 63
DBB Date of birth date 8 ^[0-9]{8}$ 63 / 63
DBC Sex select 1 1 2 9 63 / 63
DCI Place of birth text 25 ^[A-Z '.-]+$ 0 / 63
DCL Race / ethnicity text 3 ^[A-Z]+$ 0 / 63

Address

6 codes

CodeElementTypeWidthInput patternRequired by
DAG Street address text 40 ^[A-Z0-9 '.#-]+$ 63 / 63
DAH County / line 2 text 25 ^[A-Z '.-]+$ 1 / 63
DAI City text 25 ^[A-Z '.-]+$ 63 / 63
DAJ Jurisdiction derived 2 derived by the API 63 / 63
DAK Postal code text 9 ^[0-9]{5}([0-9]{4})?$ 63 / 63
DCG Country text 3 ^[A-Z]{3}$ 63 / 63

Physical description

4 codes

CodeElementTypeWidthInput patternRequired by
DAU Height text 10 ^[0-9]{3} (IN|CM)$ 63 / 63
DAW Weight text 6 ^[0-9]{1,3} (LB|KG)$ 0 / 63
DAY Eye colour select 3 BRO BLU GRN HAZ BLK GRY DIC 63 / 63
DAZ Hair colour select 3 BRO BLK BLN RED GRY WHI SDY BAL 0 / 63

Code and value, with nothing in between

A subfile is a run of DXX codes each followed by its value. The decoder does not need a separator because the three-letter code marks the boundary, but that also means an unlucky value cannot contain something that looks like a code at the right offset. The patterns above are the rule the API applies before encoding: a value outside its pattern is rejected with 422 and the reason, rather than written and rejected later by a reader.

Width is a maximum, not a padding instruction. A short value is written short; the standard's subfile grammar fixes where the next code begins, not the value's length. The exception is a field the standard pads to a fixed width on the wire, and the one most people meet first is DAK: the API accepts up to nine characters, while a version 10 payload space-fills the value to eleven and a version 11 payload zero-fills it to nine. On the California sample that is DAK90210 at version 10 and DAK902100000 at version 11, a two-byte difference in the record.

Dates: accepted format versus wire format

Every date element is validated as eight digits with no separators. A value such as 1990-03-14 is rejected at the pattern stage, which is deliberate: a reader that receives a hyphenated date parses it as a different element entirely. The encoder accepts the ISO-style order that humans type and writes the order the targeted revision specifies. The revision pages show the bytes each one produces, so the conversion is visible rather than assumed.

Truncation has its own flags

DDE, DDF and DDG mark a truncated family, given or middle name. Setting one to T does not shorten the name; it tells a reader that the value it just read is incomplete. Leaving the flag at N while cutting the name produces a payload that parses cleanly and claims a person whose name is shorter than it is, which is the failure mode this pair exists to prevent. The encoder derives the flag from the source length rather than trusting a client to remember it.

The two values nobody types

DCF is the document discriminator and DCK is the inventory control number. Both are jurisdiction-assigned, both are required by most rows, and both are routinely copied from a sample where they are wrong. The API can derive a deterministic pair from DAQ, DBB and DCS when the request asks for it, and an explicit value always wins. The DCF and DCK calculator runs the same function in the browser, and the glossary entry explains why a discriminator that changes per card cannot be derived from the licence number.

Which codes a jurisdiction requires

Required-by in the table is a count, not a rule for one state. The jurisdiction index gives the exact list for each row, and the IIN table pairs that list with the issuer number the header will carry. Most US rows require 27 elements; New York requires 28 because it adds DAH. A Canadian province page prints the US base set and says, above the table, that the provincial element list is unverified.

If you are checking an existing symbol rather than generating one, the payload inspector reads the codes back out in order and reports a missing required element against the jurisdiction you select.

Generate barcode now