Check In Scan Logo
MRZ Code

What is the MRZ code and how can it be used for the automatic identity validation process?

The MRZ code or Machine-Readable-Zone is a set of alphanumeric strings that usually appear on the back of the identity document or passport .

It's a way of adding personal information in an alphanumeric code so that any machine or smartphone can read and convert this code into relevant information . Virtually all passports and identity documents are equipped with a MRZ (Multiple Marker Signature).
A special font (OCR-B) is used to read these alphanumeric character strings by smart devices.

In addition to the alphanumeric code, the MRZ uses a special font called OCR-B that facilitates automatic reading by cameras and scanners, even under tilted or low-quality image conditions. This allows mobile devices and embedded systems to read and process the information quickly and accurately, facilitating the integration of automatic validation protocols in airports, access control systems, and digital platforms.

Since October 2025, the European Union has implemented the Entry/Exit System (EES), which replaces the physical passport stamp with an electronic record of entries and exits. This system also includes the collection of biometric data (fingerprints and facial photographs) to enhance security and migration monitoring.

What data does the MRZ code contain?

The MRZ code, within the alphanumeric character strings, contains the following data :

  • Line 1:
    • Document type (P for passport).
    • Issuing country (three-letter code).
    • Full name of the holder (in the format LAST NAME<.
  • Line 2:
    • Document number (passport number).
    • Document number check digit.
    • Nationality code (three-letter code).
    • Date of birth (in YYMMDD format).
    • Date of birth check digit.
    • Sex (M for male, F for female).
    • Document expiration date (in YYMMDD format).
    • Date of issue of the ID card.
    • Expiration date check digit.
    • Personal identification number (optional).
    • Personal identification number check digit.
    • Final check digit.
    • Each check digit is calculated using a specific algorithm based on the numeric and alphabetic characters of the corresponding field.

Each element of the MRZ is accompanied by a check digit calculated using standard algorithms to detect reading errors and prevent fraud. Furthermore, validation systems compare this data with official databases and international templates to guarantee the document's authenticity and internal consistency, which is essential to prevent counterfeiting or alteration.

The body that regulates the information contained in the MRZ code is the International Civil Aviation Organization (ICAO ) .

ICAO sets the standards and recommendations for the issuance of travel documents, including passports and visas. These standards are set out in Document 9303, entitled "Machine-Readable Travel Documents ," which details the technical specifications for machine-readable documents and establishes the technical specifications and standards for travel documents, including passports and visas.
Document 9303 covers various aspects, such as:

  • Document design
  • Data format
  • Verification procedures
  • Security requirements

This standard is adopted internationally to ensure the interoperability and security of travel documents.

When is the MRZ code used?

The MRZ code has several uses, primarily in the areas of security and border management . Here are some of the most common:

Passport control at airports

Passport control machines at airports scan the MRZ to quickly and accurately verify passport authenticity and traveler identity.

Visa processing

Visas also contain an MRZ that facilitates their verification and authentication at a country's points of entry.

Border control

In eGates or electronic gate systems, the MRZ is used to allow automated passenger entry, reducing waiting time and increasing the efficiency of border control.

Hotel Check-in

Online check-in : Thanks to the Check-in Scan , hotels can quickly register guests' passport or ID card data, streamlining the check-in process.
Currently, many hotels , airports , and government agencies use automated systems that scan the MRZ ( ) for check-in, guest registration, and access control, expediting the process and reducing human error. These technologies integrate with official databases and biometric systems to efficiently and securely verify user identity.

Try the Check-in Scan app now

Check in automatically by scanning the mrz code.

MRZ code scan

More Information

Access control in high-security facilities

In facilities such as nuclear power plants or government buildings, the MRZ can be used as part of the access control system to ensure that only authorized people can enter.

Fraud Prevention

By providing a standard and secure way to encode personal information, the MRZ helps prevent the fraudulent use of counterfeit travel documents.

Request more information about Check-in Scan
Create and register the Online Traveler Report, manage rental agreements, deposits or tourist taxes.
Privacy Policy*
Newsletter
Check in scan logo
Newsletter
I accept the privacy policy*
Made in Mijas, Malaga with