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
| Format | Document Type | Lines × Chars | Font Standard | Check Digit Weights |
|---|---|---|---|---|
| TD3 | Passport Booklet | 2 × 44 chars | OCR-B (monospaced) | 7, 3, 1 repeating |
| TD1 | National ID / Card | 3 × 30 chars | OCR-B (monospaced) | 7, 3, 1 repeating |
| TD2 | Official Travel Card | 2 × 36 chars | OCR-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.