What Is a Machine-Readable Zone (MRZ), and Why Do ID Documents Have One?

Originally Posted on Daily Emerald via UWIRE

Look at the bottom of a passport’s identity page and you’ll find two lines of capital letters, numbers, and < symbols. Similar lines appear on many national identity cards and visas.

This is the machine-readable zone (MRZ). It may look cryptic to a person, but to a document reader it provides a predictable, standardized way to capture essential identity and document data.

The MRZ was designed to make travel documents easier and faster to process across borders. Today, the same principle is useful wherever organizations need to extract identity data reliably from border control and travel to digital onboarding.

But an MRZ does more than make data machine-readable. Its standardized structure and check digits also provide useful information for document verification.

So, what exactly is stored in a machine-readable zone, how is it read, and what can and can’t it tell us about an ID document?

What is a machine-readable zone?

A machine-readable zone is a standardized area of a machine-readable travel document containing identity and document information in a format designed for automated processing.

The specifications are established by the International Civil Aviation Organization (ICAO) in Doc 9303, the international standard for machine-readable travel documents.

The MRZ uses a deliberately restricted character set: capital Latin letters A–Z, digits 0–9, and the < symbol, which acts as a filler or separator. The information is printed in the standardized OCR-B typeface so compatible systems can recognize the characters consistently.

Depending on the document type, an MRZ typically contains information such as:

  • document type
  • issuing state or organization
  • holder’s name
  • document number
  • nationality
  • date of birth
  • sex
  • document expiration date
  • optional or additional data
  • check digits used to validate certain fields

This means a passport issued in one country can be processed by compatible equipment in another even when the countries use different languages, scripts, or document designs.

That interoperability is the real purpose of the MRZ.

Why was the MRZ created?

International travel presents an unusual document-processing problem.

A border authority needs to handle documents issued by many different countries. Those documents can differ substantially in their visual appearance, language, alphabet, and arrangement of information.

If every system had to determine independently where a surname, document number, or date of birth appeared on every passport, automated processing would be considerably more difficult.

The MRZ provides a common layer beneath those differences.

ICAO defines both what information appears in the zone and where it appears. A compatible reader therefore does not have to guess what each sequence of characters represents.

The MRZ was designed to facilitate travel-document inspection and reduce the time required for administrative processing. It can also support database searches and the recording of arrival and departure information.

In other words, its purpose is not merely to repeat what is printed elsewhere on a passport. It makes essential data portable, predictable, and machine-readable across borders.

How does an MRZ work?

Reading an MRZ can be broken down into several steps.

1. Capturing the MRZ

First, a scanner or camera captures an image of the document.

Software locates the machine-readable zone and recognizes its characters using optical character recognition (OCR).

Because the MRZ follows a predefined structure, the system already knows what kind of information to expect at particular character positions.

2. Parsing the data

The recognized characters are divided into individual fields.

For example, in a machine-readable passport, predefined positions represent the document number, nationality, date of birth, sex, expiration date, and other information.

This is one reason MRZ reading can be useful for automated data entry. Instead of asking a person to type information from an identity document manually, software can extract the relevant fields.

3. Checking the data

Several MRZ fields are accompanied by check digits.

A check digit is calculated mathematically from the characters in a particular field. After reading the MRZ, software can perform the same calculation and compare the result with the check digit printed on the document.

If the values disagree, something requires attention.

For example, OCR may have confused similar-looking characters, the image may be poor, or data in the MRZ may be inconsistent.

Check digits therefore provide an important integrity check on the data being read.

However, there is an important distinction: passing the check-digit calculations does not prove that the physical document itself is genuine. A fabricated MRZ can theoretically contain mathematically correct check digits.

MRZ validation should therefore be distinguished from full document authentication.

What do all those < symbols mean?

The < character is one of the most visually distinctive features of an MRZ, but it does not represent hidden or encrypted information.

It is a filler character.

MRZ fields have fixed lengths. When the available information does not occupy every character position, < can fill the unused space. It is also used as a separator in certain fields, including names.

This fixed structure is precisely what makes the MRZ predictable for machines.

It also explains why information can look slightly different in the MRZ than it does in the human-readable part of the document.

The character set is intentionally limited for international interoperability. Diacritical marks, for example, are not used in the MRZ. Names containing them therefore have to be represented using the permitted characters.

The MRZ is not intended to be a typographically perfect representation of someone’s name. Its priority is consistent machine processing worldwide.

What are the main MRZ formats?

Not every machine-readable zone has the same dimensions.

ICAO specifications define different formats for different types and sizes of machine-readable travel documents. Three formats are particularly common:

Format Structure Common use
TD1 3 lines × 30 characters ID-card-sized travel documents
TD2 2 lines × 36 characters Larger cards and certain documents
TD3 2 lines × 44 characters Passports

The familiar two-line MRZ on a passport is therefore different from the three-line format found on many identity cards.

The layouts vary, but the underlying idea remains the same: particular character positions have predefined meanings so compatible systems can interpret the document consistently.

The MRZ can also help cross-check document data

Automated identity verification does not have to treat the MRZ as an isolated source of information.

Many identity documents present the same data in more than one place. A passport, for example, has a visual inspection zone (VIZ) containing information intended to be read by people, as well as the MRZ intended for standardized machine processing.

A verification system can extract data from both and compare the results.

If the document number or date of birth in the visual zone differs from the value encoded in the MRZ, that discrepancy is worth investigating.

Some documents provide still more data sources. Electronic passports, for example, contain an RFID chip holding electronic data.

Cross-checking information from multiple document elements can reveal inconsistencies that would be missed if a system simply extracted the MRZ and accepted its contents at face value.

What an MRZ can and cannot tell you

The distinction between reading an MRZ and authenticating an identity document is particularly important.

A successfully read MRZ can tell a system that:

  • data has been extracted in a standardized format;
  • applicable check-digit calculations are consistent;
  • certain identity and document fields can be compared with information elsewhere on the document;
  • the extracted information can be used for subsequent processing or database checks.

But the MRZ alone cannot establish that:

  • the document was genuinely issued by the claimed authority;
  • the physical security features are authentic;
  • the portrait or other document elements have not been manipulated;
  • the person presenting the document is its legitimate holder.

Those questions require additional verification methods.

Depending on the document and use case, that may include checking security features, comparing data across different document zones, reading an electronic chip, verifying a portrait against the person presenting the document, or performing other authenticity checks.

The MRZ is therefore best understood as one source of structured evidence within a broader document verification process.

Why does the MRZ still matter?

The MRZ was created for a world in which physical travel documents needed to move efficiently through border checkpoints. Its underlying design principle has aged remarkably well: make essential identity data predictable enough that different systems can process it consistently.

That principle is useful far beyond the airport.

Whenever identity documents need to be processed at scale, structured machine-readable data can reduce manual entry, accelerate workflows, and provide another source for consistency checks.

At the same time, the apparent simplicity of the MRZ can create a misconception. Successfully reading those two or three lines does not mean an identity has been verified.

The MRZ answers a narrower, but extremely useful set of questions: What standardized data does this document contain, was that data read consistently, and does it agree with information available elsewhere?

That is why the machine-readable zone remains important. It does not replace document authentication; it gives machines a common language for reading identity documents, and a reliable starting point for the checks that follow.

The post What Is a Machine-Readable Zone (MRZ), and Why Do ID Documents Have One? appeared first on Daily Emerald.

Read more here: https://dailyemerald.com/191985/promotedposts/what-is-a-machine-readable-zone-mrz-and-why-do-id-documents-have-one/
Copyright 2026 Daily Emerald