MRZ checker for passports and ID cards
Paste two or three MRZ lines from a passport, ID card or visa to check each field and spot a character that may be wrong.
Result Passport
A scan or typist read O on line 2, position 6, where the document most likely has 0.
| Issuer | Utopia (Sample) (UTO) |
|---|---|
| Nationality | Utopia (Sample) (UTO) |
| Surname | Eriksson |
| Given names | Anna Maria |
| Document number | L8989O2C3 |
| Date of birth | Aug 12, 1974 |
| Sex | Female |
| Date of expiry | Apr 15, 2034 |
| Detail | Printed | MRZ | Result |
|---|---|---|---|
| Surname | Eriksson | Eriksson | Agree |
| Given names | Anna María | Anna Maria | Agree |
| Document number | L898902C3 | L8989O2C3 | Differ |
| Date of birth | Aug 12, 1974 | Aug 12, 1974 | Agree |
| Date of expiry | Apr 15, 2034 | Apr 15, 2034 | Agree |
MRZ map
Green outlines mark matching check digits, red marks a mismatch, and orange marks a character that was probably misread. Click a row below to outline that field.
MRZ fields
| Field | Position | Decoded | Check digit | Result |
|---|---|---|---|---|
| Layout | – | 2 × 44 · TD3 | – | Pass |
| 1 Document code | Line 1, 1 to 2 | P | – | Pass |
| 2 Issuer | Line 1, 3 to 5 | Utopia (Sample) (UTO) | – | Pass |
| 3 Name | Line 1, 6 to 44 | ERIKSSON, ANNA MARIA | – | Pass |
| 4 Document number | Line 2, 1 to 9 | L8989O2C3 | Found 6, expected 0 | Check digit mismatch. Reading O on line 2, position 6, as 0 makes it match |
| 5 Nationality | Line 2, 11 to 13 | Utopia (Sample) (UTO) | – | Pass |
| 6 Date of birth | Line 2, 14 to 19 | Aug 12, 1974 | 2 | Pass |
| 7 Sex | Line 2, character 21 | Female | – | Pass |
| 8 Date of expiry | Line 2, 22 to 27 | Apr 15, 2034 | 9 | Pass |
| 9 Optional data | Line 2, 29 to 42 | ZE184226B | 1 | Pass |
| 10 Final check digit | Line 2, character 44 | – | Found 6, expected 0 | Check digit mismatch |
MRZ layouts
Each check digit uses the characters before it, weighted 7, 3 and 1 in turn. The last check digit covers the fields together.
| Layout | Document | Lines and characters | Check digits |
|---|---|---|---|
| TD3 | Passport | 2 × 44 | 5 |
| TD1 | ID card | 3 × 30 | 4 |
| TD2 | ID card | 2 × 36 | 4 |
| MRV-A | Large visa | 2 × 44 | 3 |
| MRV-B | Small visa | 2 × 36 | 3 |
| IDFRA | French national ID card | 2 × 36 | 3 |
Run these checks on every application in your onboarding decision flow. Start your trial
What an MRZ checker checks
An MRZ is the machine-readable text printed at the foot of a passport, ID card or visa. Its check digits are worked out from the characters in each field.
The check shows whether the characters agree with their check digits and decodes the fields. Compare those details with the printed page, then look at the document again if they differ.
MRZ questions
What does an MRZ checker do?
It checks the MRZ layout and its check digits, then decodes the fields. You can also compare details with the printed page.
How is a passport MRZ check digit calculated?
Each character has a value, and the values are multiplied by repeating weights of 7, 3 and 1. The check digit is worked out from the total.
What does the MRZ on a passport mean?
The MRZ holds fields such as the document number, name, nationality and dates. ICAO Doc 9303 defines the layout and check digits.
Does a valid MRZ mean the passport is real?
No. Matching check digits mean the characters agree with each other. They do not show whether the document is genuine or was issued.
Why does the MRZ differ from the printed page?
A scan can misread a character, and a person can mistype one. Compare the fields and check the document again if they differ.