MRZ Calculator
A simple and free Machine Readable Zone generator that calculates check digits correctly.
Choose ID type
IDUSA1234567897<<<<<<<<<<<<<<<
7001017M3012121USA<<<<<<<<<<<0
DOE<<JOHN<WILLIAM<<<<<<<<<<<<<
What is a MRZ?
MRZ (Machine-Readable Zone) is a section found on documents like passports, visas, and some ID cards that is specifically designed for quick and accurate machine reading. The MRZ encodes essential information about the document holder, including their name, nationality, date of birth, document number, and expiration date. It is typically located at the bottom of the document's information page and consists of two or three lines of text. The text is formatted in a standardized way using letters, numbers, and special characters like < to ensure that the data can be processed efficiently by scanners at border controls and other checkpoints. You can read more information about the MRZ in this article.
Usage Example — Canada PR Card (TD1)
With our generator you can create any MRZ for any document. For example, here is how the MRZ looks on a Canadian Permanent Resident Card (TD1 format, 3 lines × 30 characters each):
Multi-Document MRZ Specimen Showcase
The following are ICAO 9303-compliant specimen MRZ strings for two common document types.
All check digits are calculated using the Modulo 10 algorithm (weights: 7 · 3 · 1, repeated).
P<CAN + surname + << + given names, padded to 44Line 2: Passport# AC183937 · chk 8 · CAN · DOB 990228 · chk 8 · Sex F · Expiry 310619 · chk 1 · Composite chk 64
ID<DEU + doc# 122000129 · chk <1 + optionalLine 2: DOB 830812 · chk 6 · Sex F · Expiry 300801 · chk 8 · DEU · composite 2
Line 3: Surname MUSTERMANN +
<< + given ERIKA