Check a visa MRZ
Paste the two lines from the bottom of a visa sticker. The checker recognises full-size MRV-A and smaller MRV-B visas, decodes every field and verifies the check digits defined in ICAO Doc 9303 Part 7.
Checked on this device. The MRZ is never sent to a server.
Visa MRZ and passport MRZ: the differences
A machine readable visa has two lines, like a passport. The full-size MRV-A has 44 characters per line, the same length as a TD3 passport. The smaller MRV-B has 36 characters per line, for states that want the visa sticker to leave part of the passport page free.
The first line starts with V. The second character is chosen by the issuing state, usually to indicate the type of visa, and is often the filler <. The issuing state and the holder’s name follow, exactly as in a passport.
The second line looks like a passport line but means something different in two places. The document number is the visa number, not the passport number, and the date of expiry is the last day the visa is valid. Only three fields are protected by check digits: the visa number, the date of birth and the date of expiry. There is no check digit for the optional data and no composite check digit, so an error in the name, the nationality or the optional data cannot be detected from the MRZ alone.
Annotated example
The ICAO specimen visa issued by the fictional state of Utopia:
V<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L8988901C4XXX4009078F96121096ZE184226B<<<<<<
| Positions (line 2) | Field | Specimen value |
|---|---|---|
| 1–9 | Visa number | L8988901C |
| 10 | Check digit for the visa number | 4 |
| 11–13 | Nationality of the holder | XXX |
| 14–19 | Date of birth (YYMMDD) | 400907 |
| 20 | Check digit for the date of birth | 8 |
| 21 | Sex | F |
| 22–27 | Date of expiry of the visa (YYMMDD) | 961210 |
| 28 | Check digit for the date of expiry | 9 |
| 29–44 | Optional data (MRV-A: 16 characters, MRV-B: 8) | 6ZE184226B<<<<<< |
The same data as an MRV-B, where the optional data is cut to 8 characters:
V<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<
L8988901C4XXX4009078F96121096ZE18422
Need test visas for software development? The MRZ generator creates MRV-A and MRV-B visas with correct check digits.
Questions
- Is the document number in a visa MRZ my passport number?
- No. It is the number of the visa itself. Some states put the passport number into the optional data field, but ICAO does not require it.
- Why does a visa have no composite check digit?
- ICAO Doc 9303 Part 7 protects only the visa number, the date of birth and the date of expiry with check digits. Passports and ID cards add a composite check digit; visas do not, so errors in other fields go unnoticed by the check.
- How do I know whether a visa is MRV-A or MRV-B?
- Count the characters in a line: 44 means MRV-A, 36 means MRV-B. The checker detects the format automatically.
- Why does my visa fail the check?
- Most often an OCR or typing error: the letter O instead of zero, I instead of 1, S instead of 5. The checker points to the most likely character. Also check that both lines have their full length, because trailing filler characters are easy to lose.
- Is the visa data sent anywhere?
- No. The check runs in your browser and nothing you type is uploaded or stored.