Modern travel documents and identity cards follow strict international geometry and machine-readable encoding rules defined by ICAO Doc 9303 and ISO/IEC 7810. This reference summarizes the exact line lengths, weight factors, and typography used in production QA and design layout reviews.

1. TD3 Passport vs. TD1 ID Card MRZ Structure

FormatDocument TypeLines × CharsFont StandardCheck Digit Weights
TD3Passport Booklet2 × 44 charsOCR-B (monospaced)7, 3, 1 repeating
TD1National ID / Card3 × 30 charsOCR-B (monospaced)7, 3, 1 repeating
TD2Official Travel Card2 × 36 charsOCR-B (monospaced)7, 3, 1 repeating

2. Modulo 10 (7-3-1) Check Digit Calculation

Every MRZ check digit is computed by mapping digits 0–9 to their face values, uppercase letters A–Z to 10–35, and the filler character < to 0. Each character value is multiplied by repeating weights 7, 3, 1, summed, and reduced modulo 10.

You can test live TD3 and TD1 strings locally in your browser using our Free Passport MRZ Generator & Validator or verify canvas dimensions with the 300 DPI Pixel Calculator.

3. Related Editable Reference Templates