MRZ Calculator
Generate, calculate, and validate Machine Readable Zone data according to ICAO Doc 9303.
Build MRZ
Document format
Control Digits Generator
The check digit is calculated using ICAO Doc 9303 weights 7, 3, 1.
About this tool
The MRZ Calculator implements the full ICAO Doc 9303 specification for TD1, TD2, TD3, MRV-A and MRV-B documents. Use it to compute check digits with weights 7-3-1, normalize names with transliteration of diacritics, validate dates and country codes, and produce ready-to-print MRZ lines that pass standard verification.
With support for multiple document types and all required field formats, it dramatically reduces the risk of human error and failed scans at border control or automated checkpoints. Instead of manually juggling character sets, length constraints, and complex weighting rules, you can rely on a single, consistent process that gives you immediate, standards-compliant output.
Whether you are integrating MRZ generation into an enrollment workflow, building a verification system, or simply testing sample documents, this tool offers both precision and reliability. It not only catches common issues—such as invalid characters, incorrect field lengths, and miscalculated check digits—but also guides you toward fully compliant corrections. By automating the intricate details of ICAO 9303, the MRZ Calculator lets you focus on your core application, confident that every MRZ it produces will stand up to real-world inspection and machine reading.
In addition to its robust standards compliance, the MRZ Calculator is designed to fit comfortably into real development environments. A clean, well-documented interface allows you to feed in raw data—names, dates, document numbers, issuing states—and receive fully formatted MRZ lines in return. Clear error messages and actionable hints make it easy to refine your inputs until they match the strict structure required by ICAO 9303, even if you are not an expert in the specification.
How to use this tool
Tutorial video coming soon.
Frequently asked questions
What is an MRZ?+
The Machine Readable Zone is the band of monospaced text at the bottom of passports, visas and ID cards, defined by ICAO Doc 9303.
Which formats does this tool support?+
TD1, TD2 and TD3 travel documents plus MRV-A and MRV-B visa formats.
Do you store any of my data?+
No. All calculations and validations run locally in your browser. Nothing is uploaded or saved.