AAMVA Decoder & Encoder

Decode and verify AAMVA PDF417 barcode payloads against the printed card, or pack structured fields into a compliant AAMVA byte-offset payload and inspect its round-trip structure locally in your browser.

Reads & builds payloads Verifies offsets Local processing

1 · Barcode payload

The raw string a scanner returns from the PDF417 on the back of the card. Most scanners output it as plain text with control characters.

Drop a scan here — a .txt payload file, or a photo of the barcode — or
Photo decoding runs in your browser (PDF417). A sharp, straight-on photo of the back of the card works best.

Payload data stays on this device. Parsing, encoding, and verification run locally in JavaScript without sending payload text to any server. The barcode libraries (ZXing, bwip-js) are bundled with this page; only the fonts load from Google's CDN. Use synthetic/test data when experimenting.

2 · Check against the printed card

Type what’s printed on the front of the card. Each field is compared live against the barcode value — the classic forgery tell is a barcode that doesn’t match the face of its own card.

Decode a barcode first
Decode a barcode first
Decode a barcode first
Decode a barcode first
Decode a barcode first
Decode a barcode first
No comparison yet — decode a payload, then fill in the printed fields.

Verdict

—

—

    Result

    Nothing decoded yet.
    Paste a payload — or load the fictional sample — and press Decode payload.

    How an AAMVA payload is encoded & decoded

    A compliant PDF417 payload opens with a fixed header: the @ compliance character, three separators (LF, RS, CR), the string ANSI , the six-digit Issuer Identification Number (IIN), the AAMVA version, and a directory of subfiles (DL, ID, or Z*) located by 4-digit byte offset and length. Encoding serializes each 3-character element ID + value separated by \n and terminated by \r, computes exact UTF-8 byte offsets, and packs the header.

    Because the specification contains no cryptographic signature or MAC, structural validity proves internal consistency and offset math — never card authenticity on its own.