VALIDPDF417

Tool · client-side · no upload

MRZ check digit calculator.

Paste a machine readable zone and every check digit is recomputed in the browser with 7-3-1 weighting. TD1, TD2, TD3, MRV-A and MRV-B are supported, including the composite digit.

ready

How the weighting works

Each character is mapped to a value: digits keep their value, letters run from A = 10 to Z = 35, and the filler character < is 0. Values are multiplied by the repeating weights 7, 3, 1, summed, and reduced modulo 10. The remainder is the check digit.

A worked example on the document number D23145890:

CharacterD23145890
Value1323145890
Weight731731731
Product9163712556270

The sum is 207. 207 mod 10 is 7, so the check digit is 7.

The composite digit

The composite digit is computed over the concatenation of the fields that already carry a check digit, including those digits, plus the personal number or optional data where the format defines one. For TD1 it covers the document number field, date of birth, expiry and the optional data block. For the two-line formats it covers the document number, date of birth and expiry. A single wrong field check digit therefore changes the composite as well, which is why both are shown.

What this tool does not do

It does not decode a document or tell you whether the data on it is authentic. It recomputes check digits from the characters you paste. A wrong or fabricated field can still produce a valid check digit, because the algorithm only detects transcription errors, not lies.

The AAMVA barcode on a US driver's license is a PDF417 symbol, not an MRZ. If you need to validate that payload instead, use the barcode inspector.

Generate barcode now