Knowledge base · Guides

ICAO Doc 9303 and the MRZ: Structure, Check Digits and Common Misreads

ICAO Doc 9303 defines MRZ line count, character set, field positions and check digit algorithms. Understanding the structure helps judge whether a reading result is reliable.

Standards6 min read

What ICAO Doc 9303 specifies

Doc 9303 divides travel documents by size into ID-1 (card type, such as some identity cards), ID-2 (such as some visas) and ID-3 (passport booklet), and specifies the position, number of lines and field layout of the machine readable zone for each type.

The specification also constrains the character set (upper-case letters, digits and filler), the check digit algorithm and the name separation, so the same document read by devices from different vendors should produce a consistent field structure.

Typical structure of the machine readable zone

For a passport, for example, the machine readable zone has two lines of 44 characters each: the first line contains the document type, issuing country and name; the second line contains the document number, nationality, date of birth, sex, expiry date and personal number, with several check digits guarding key fields.

  • Document number check digit: verifies that the number is entered completely.
  • Date of birth and expiry date check digits: verify that the date fields are not misread.
  • Composite check digit: validates several fields of the second line together to judge whether the whole line is reliable.

Common misreads and how to judge them

Wear, creases, laminate glare and print offset can all cause individual characters to be misread. In practice the check digits are examined first, then the field value ranges (for example, a month no greater than 12 and a date consistent with the calendar); combining the two filters out most misreads.

If the check digits pass but the business system reports an abnormal field, field mapping and character-set conversion should be checked rather than attributing the problem directly to the device's recognition capability.

Relationship with chip data

The data groups stored in an e-passport chip correspond to fields of the machine readable zone. Comparing the MRZ parsing result with the chip reading result during verification can reveal a substituted document or tampered data, which is why checkpoints and financial scenarios use cross-checking.

Related models

Document reading devices referenced in this article; open a model for its full specifications, interfaces and deployment notes.

Keep reading