VALIDPDF417

Northeast · NY · IIN 636001

New York driver's license PDF417 barcode.

New York's AAMVA issuer identification number is 636001. The encoder targets revision 2020-09 and writes 28 required elements into a single DL subfile. Everything needed to reproduce the symbol is on this page: the header value, the element table, the error correction recommendation, a JSON body, the cURL and the full payload string.

Generate a New York barcode in three steps

  1. Fill the field map. The form below is preset to NY and preloaded with the sample record this page documents. Replace the values with the real ones.
  2. Generate. Every value is validated against the New York element table above before the single DL subfile is written, so a blank required element fails here rather than at a scanner.
  3. Download and print. Take the PNG or SVG and print at 600 DPI at native size with the quiet zone intact.
aamva encoder
Raw AAMVA payload

    
idle

Jurisdiction IIN

636001 is written at byte offsets 9 to 14, immediately after the five-byte ANSI file type marker. It is six digits, zero-padded, and it identifies the issuing jurisdiction to every reader that parses the header. A New York symbol carrying any other IIN is a valid PDF417 and an invalid New York credential.

The IIN is not the state code and it cannot be computed from one. New York's two-letter code is NY; that value appears in DAJ inside the subfile, in a different part of the payload. Both are required, and swapping them produces a symbol that parses and then fails jurisdiction checks.

Current card revision

The same jurisdiction is also published at each revision the encoder can target: version 10 (2020) · version 11 (2025).

The encoder builds New York payloads against AAMVA DL/ID Card Design Standard, September 2020 (version 10), with jurisdiction version 04 and AAMVA version 10. That pair is fixed for every jurisdiction in the table. With one entry the header is 21 bytes and the directory entry is 10, so the subfile starts at byte 31 with its own designator.

The revision field states what the encoder targets. It is not a claim about the print date on the card in your hand. If a batch is being produced against a specific card stock or a state-issued template, confirm the version on that template before the run, and treat a mismatch as a reason to stop rather than a reason to hand-edit the header.

Required elements

The jurisdiction table is published as JSON, and the element codes the encoder accepts are at fields.json.

New York requires 28 elements. Each row is the AAMVA element identifier, the label the API uses for it, and the format the encoder enforces before it will build a symbol.

CodeElementFormat
DAQLicense number25 characters max
DCSFamily name40 characters max
DACGiven name40 characters max
DBBDate of birthCCYYMMDD input; MMDDYYYY on the v10 wire
DBAExpiry dateCCYYMMDD input; MMDDYYYY on the v10 wire
DBCSex1 · 2 · 9
DAGStreet address40 characters max
DAICity25 characters max
DAJJurisdiction2 characters max
DAKPostal code9 characters max
DCFDocument discriminator25 characters max
DCKInventory control25 characters max
DCAVehicle class4 characters max
DCBRestrictions12 characters max
DCDEndorsements12 characters max
DDACompliance typeF · N
DDBCard revision dateCCYYMMDD input; MMDDYYYY on the v10 wire
DDDLimited duration1 · 0
DDEFamily name truncatedT · N
DDFGiven name truncatedT · N
DDGMiddle name truncatedT · N
DBDIssue dateCCYYMMDD input; MMDDYYYY on the v10 wire
DAYEye colourBRO · BLU · GRN · HAZ · BLK · GRY · DIC
DAUHeight10 characters max
DCGCountry3 characters max
DDKOrgan donor1 · 0
DDLVeteran1 · 0
DAHCounty / line 225 characters max

New York (636001) is the one jurisdiction in this table that adds a required element: DAH, county or address line 2. Omitting it fails validation.

New York-specific encoding notes

The New York license number takes one of these shapes: one letter, then seven digits, or one letter, then eighteen digits, or eight to nine digits, or sixteen digits, or eight letters, for example A1111111. The encoder accepts any of them and rejects anything outside them, so a malformed number never reaches the symbol; the 25-character standard ceiling stays the hard cap. The discriminator is caller-supplied with no verified derivation recorded, and DCF and DCK each cap at 25 characters.

DCF and DCK rules

DCF is required for New York. The document discriminator is jurisdiction-assigned and changes when a card is reissued. When the request asks for generation, the encoder writes 12 characters from an alphabet that omits I, O, 0 and 1, so a discriminator read off a card cannot be mistaken for those glyphs. That generated value is a deterministic stand-in built from DAQ, DBB and DCS; it is not the discriminator printed on a real New York card, and it must not be presented as one.

DCK is required for New York. The inventory control number is 12 digits from the same basis, so one record always produces one DCF/DCK pair and a different DAQ changes both. An explicit value in the request wins over generation, and neither element is taken from the licence number. Send the card's own values for a production run and generated values only for tests and fixtures.

Recommended error correction

Use level 6 for New York. The reason is the substrate: laminated or overprinted card stock. Wear after issuance adds errors that level 5 can only correct up to a point, and the extra codewords are cheaper than a replacement card.

Level 6 adds 128 error correction codewords. Raising it widens the symbol by adding rows, which is the wrong trade on a fixed label. If a print run starts failing, check density, head condition and laminate before raising EC, because correction budget cannot fix a symbol that has lost its start pattern or been cropped by the label template.

Sample JSON body

This body is complete: every required element for New York is present, plus a small optional set so the payload length is realistic. Change the values, keep the keys.

json
{
  "state": "NY",
  "eclevel": 6,
  "format": "png",
  "dpi": 600,
  "fields": {
    "DAQ": "1234567",
    "DCS": "SAMPLE",
    "DAC": "JORDAN",
    "DBB": "19900314",
    "DBA": "20300115",
    "DBC": "1",
    "DAG": "1234 SAMPLE ST",
    "DAI": "BEVERLY HILLS",
    "DAK": "90210",
    "DCF": "QHCHQ8WX3J83",
    "DCK": "123456789012",
    "DCA": "C",
    "DCB": "NONE",
    "DCD": "NONE",
    "DDA": "F",
    "DDB": "20200101",
    "DDD": "1",
    "DDE": "N",
    "DDF": "N",
    "DDG": "N",
    "DBD": "20240115",
    "DAY": "BRO",
    "DAU": "070 IN",
    "DCG": "USA",
    "DDK": "0",
    "DDL": "0",
    "DAH": "ALBANY",
    "DAD": "A",
    "DAZ": "BRO",
    "DAW": "165 LB",
    "DAJ": "NY"
  }
}

Copy-ready cURL

The response is image/png at 600 DPI. Set format to svg for vector output; that requires a Pro or Team key.

bash
curl -s https://validpdf417.com/api/v1/aamva \
  -H "Authorization: Bearer $PDF417_KEY" \
  -H "Content-Type: application/json" \
  -d '{"state":"NY","eclevel":6,"format":"png","dpi":600,"fields":{"DAQ":"1234567","DCS":"SAMPLE","DAC":"JORDAN","DBB":"19900314","DBA":"20300115","DBC":"1","DAG":"1234 SAMPLE ST","DAI":"BEVERLY HILLS","DAK":"90210","DCF":"QHCHQ8WX3J83","DCK":"123456789012","DCA":"C","DCB":"NONE","DCD":"NONE","DDA":"F","DDB":"20200101","DDD":"1","DDE":"N","DDF":"N","DDG":"N","DBD":"20240115","DAY":"BRO","DAU":"070 IN","DCG":"USA","DDK":"0","DDL":"0","DAH":"ALBANY","DAD":"A","DAZ":"BRO","DAW":"165 LB","DAJ":"NY"}}' \
  -o ny-dl.png

Full sample payload string

The string below is what the encoder hands to PDF417. Control characters are shown as visible glyphs: ␊ is the element separator (0x0A), ␞ is the record separator (0x1E) and ␍ is the segment terminator (0x0D). This payload is 318 bytes.

payload
@␊
␞␍ANSI 636001100401DL00310287DLDAQ1234567␊
DCSSAMPLE␊
DACJORDAN␊
DBB03141990␊
DBA01152030␊
DBC1␊
DAG1234 SAMPLE ST␊
DAIBEVERLY HILLS␊
DAJNY␊
DAK90210      ␊
DCFQHCHQ8WX3J83␊
DCK123456789012␊
DCAC␊
DCBNONE␊
DCDNONE␊
DDAF␊
DDB01012020␊
DDD1␊
DDEN␊
DDFN␊
DDGN␊
DBD01152024␊
DAYBRO␊
DAU070 IN␊
DCGUSA␊
DDK0␊
DDL0␊
DAHALBANY␊
DADA␊
DAZBRO␊
DAW165 LB␊
␍

The header is 31 bytes: 21 bytes before the directory and one 10-byte directory entry. The subfile offset is the decimal value in the four digits after DL, and the subfile length counts its own two-byte designator, its elements and the closing 0x0D. The offset and length are not repeated inside the subfile; a second copy is read as a DL0 element.

Three scanner rejections

These are the failures that show up most often on New York records, in the order they are usually found.

  1. DAH missing. New York's required list is 28 elements, not 27.
  2. County field set to the city name.
  3. Level 5 on a card kept in a phone case and then laminated.

Questions

What IIN does New York use?

New York uses IIN 636001, written at header bytes 9 to 14. The two-letter code NY is not the IIN: it appears in DAJ inside the DL subfile. A symbol carrying a different IIN parses and still fails the jurisdiction check.

How many elements does a New York record require?

The encoder requires 28 elements for New York, written into a single DL subfile. DCF is on that list, so a blank discriminator is rejected before encoding. DCK is on it as well. The element table on this page lists every code and the format the encoder enforces.

Can the API generate the DCF and DCK for New York?

Yes, when the request includes "generate": {"dd": true, "icn": true}. Both values are derived deterministically from DAQ, DBB and DCS, so the same record produces the same pair on every call, and an explicit value in fields always overrides the generated one. Neither value is derived from the licence number.

Compare

A single New York barcode costs $3.00 from pdf417.pro and $2.00 here, and the gap holds down the ladder: $239 against $299 at 500. The arithmetic and the API differences are in VALIDPDF417 vs pdf417.pro for New York barcodes, and the switching case is in the pdf417.pro alternative for New York. The per-symbol pricing at every rung is on the cheapest AAMVA generator page, and the volume break-even is in the cost calculator.

Reference

Read the byte layout in AAMVA payload structure, the element rules in Parameters, and the substrate decision table in Error correction.

To check a finished symbol instead of a payload, use the barcode inspector. It recomputes the offset and length and checks every element against the same registry this page uses.

Other jurisdictions

Connecticut · Massachusetts · Maine · New Hampshire · New Jersey · Pennsylvania · all 63 jurisdictions

Generate barcode now