MRZ Calculator

A simple and free Machine Readable Zone generator that calculates check digits correctly.

ICAO 9303 CERTIFIED OPTICAL OCR-B ZONE MODULO 10
P<CANSMITH<<JANE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
AC183937<8CAN9902288F3106191<<<<<<<<<<<<<<<<64

Choose ID type

Enter a surname. The field must not be empty.
Enter a given names. The field must not be empty.
Enter a number. The field must not be empty.
Requires a date in the DD.MM.YYYY format.
Requires a date in the DD.MM.YYYY format.
Enter a surname. The field must not be empty.
Enter a given names. The field must not be empty.
Enter a number. The field must not be empty.
Requires a date in the DD.MM.YYYY format.
Requires a date in the DD.MM.YYYY format.
Enter a surname. The field must not be empty.
Enter a given names. The field must not be empty.
Enter a number. The field must not be empty.
Requires a date in the DD.MM.YYYY format.
Requires a date in the DD.MM.YYYY format.
Enter a surname. The field must not be empty.
Enter a given names. The field must not be empty.
Enter a number. The field must not be empty.
Requires a date in the DD.MM.YYYY format.
Requires a date in the DD.MM.YYYY format.
Enter a surname. The field must not be empty.
Enter a given names. The field must not be empty.
Enter a number. The field must not be empty.
Requires a date in the DD.MM.YYYY format.
Requires a date in the DD.MM.YYYY format.

IDUSA1234567897<<<<<<<<<<<<<<<
7001017M3012121USA<<<<<<<<<<<0
DOE<<JOHN<WILLIAM<<<<<<<<<<<<<

Copied to clipboard! Fill in the fields and click the "Create" button and your mrz code will appear here.

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 .

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):

9D0000024 🍁
Place of Landing / Lieu d'établissement: OTTAWA
PR Since / RP depuis: 01 JUN / JUIN 15
Eyes / Yeux: BROWN / BRUN
Height / Taille: 164 cm
COB / PDN: UTP 0018-5978
MACHINE READABLE ZONE (OCR-B) — TD1 3×30 ICAO 9303 ✓
I<CAN9D00000248<<<<<<<<<<<<<<<<<<<<< 90070003CAN6511178F3806157<<<<<<<<<<<<<<4 SMITH<<JANE<<<<<<<<<<<<<<<<<<<<<<<<<
Line 1: Document type (I<CAN) + card number 9D0000024 + check digit • Line 2: Personal number + DOB 651117 + sex F + expiry 380615 + check • Line 3: Surname << Given names

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).

PASSPORT / PASSEPORT CANADA 🍁
Surname / Nom: SMITH
Given / Prénoms: JANE
Type / Pays: P   CAN
Passport No.: AC183937
DOB / Naissance: 28 FÉV / FEB 99
Sex / Sexe: F
Expiry / Expiration: 19 JUN 31
Nationality / Nationalité: CAN
OCR-B MRZ — TD3 (2 × 44 chars) ICAO 9303 ✓
P<CANSMITH<<JANE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< AC1839378CAN9902288F3106191<<<<<<<<<<<<<<<<64
Line 1: P<CAN + surname + << + given names, padded to 44
Line 2: Passport# AC183937 · chk 8 · CAN · DOB 990228 · chk 8 · Sex F · Expiry 310619 · chk 1 · Composite chk 64
PERSONALAUSWEIS GERMANY 🇩🇪
L01XM00CH8 · MUSTERMANN ERIKA <<< BUNDESDRUCKEREI
Name: MUSTERMANN
Vorname: ERIKA
Geburtstag: 12.08.1983
Augenfarbe: GRÜN
Größe: 160 cm
Behörde: STADT KÖLN
Anschrift: 51147 KÖLN, HEIDESTRASSE 17
OCR-B MRZ — TD1 (3 × 30 chars) ICAO 9303 ✓
ID<DEU122000129<1230<<<<<<<<<<<<<<< 8308126F3008018DEU<<<<<<<<<<<<<<<2 MUSTERMANN<<ERIKA<<<<<<<<<<<<<<
Line 1: ID<DEU + doc# 122000129 · chk <1 + optional
Line 2: DOB 830812 · chk 6 · Sex F · Expiry 300801 · chk 8 · DEU · composite 2
Line 3: Surname MUSTERMANN + << + given ERIKA