ScanDoc
← All articles

Guides

What Is a Machine Readable Zone (MRZ) and Why It Matters for Identity Verification

Machine Readable Zone on a passport

Border crossings, flight check-ins, bank accounts, online onboarding all rely on a short strip of text at the bottom of an identity document doing the heavy lifting. Here's how it works.

What is a Machine Readable Zone?

The MRZ is a standardised block of text printed at the bottom of a passport photo page or on the back of an ID card. It holds the holder's key details in a format OCR software can read instantly.

Typical fields include document type, issuing country, document number, full name, date of birth, nationality, sex and expiry date, plus check digits that reveal tampering.

The idea dates back to ICAO's early work on machine-readable travel documents. The first passport specifications followed, and non-machine-readable passports have since been phased out across all 193 member states.

What does the MRZ look like?

Two or three lines of uppercase letters, digits and the “<” filler character. Meaningless to people, precisely structured for machines. ICAO Document 9303 defines three formats:

Type 1

ID cards and driving licences with three lines of 30 characters.

Type 2

Mid-sized travel documents with two lines of 36 characters. Rarely used.

Type 3

Passport booklets with two lines of 44 characters.

How machines read the MRZ

The whole process takes milliseconds, far faster than manual inspection.

  1. 1

    Scanning

    A camera, phone or document reader captures an image of the zone.

  2. 2

    Extraction

    OCR pulls out each field. The fixed format means the system knows exactly where every value sits.

  3. 3

    Validation

    Check digits are recalculated and compared; data can then be matched against watchlists or sanctions lists.

Why check digits matter

The document number, date of birth, expiry date and the full line each carry a check digit computed by a fixed algorithm.

When the reader's recalculated value doesn't match the printed one, even by a single character, the document is flagged. Forging a convincing MRZ means getting every affected digit right.

Where MRZ is used today

Travel & border control

Real-time identity, expiry and watchlist checks at airports and crossings.

Banking & finance

Fast, accurate KYC onboarding with fewer fraudulent documents.

Healthcare

Reliable patient registration and claims processing.

Retail & e-commerce

Age verification and account fraud prevention.

Insurance

Accurate policyholder data capture for claims and renewals.

Public services

Consistent applicant verification at any volume.

MRZ and fraud prevention

Altering a name or birth date means also recalculating check digits correctly, so a mistake is caught instantly. OCR can additionally spot font, spacing and print-quality anomalies.

For KYC, AML and fraud teams, MRZ scanning adds a fast, automated verification layer.

How ScanDoc reads MRZ

ScanDoc captures, extracts, validates checksums and outputs structured data in a single pass, with no manual typing, no waiting and no transcription errors.

ScanDoc for hotels, clinic registration, remote onboarding, driver verification: the document is scanned and verified data flows downstream in under a second.

It supports all three ICAO MRZ types, covering passports, national IDs, driving licences and travel documents from all major jurisdictions, and stays accurate under varied lighting, angles and camera quality, in real-world conditions rather than just the lab.

For teams handling high volumes of identity documents where errors, delays or compliance gaps aren't an option, ID and Passport Scan is the document intelligence layer that makes the difference. Request a demo to see it on your own documents, or explore the ScanDoc homepage for the full platform.

The MRZ in one sentence

A small strip of standardised text that gives machines everything they need to verify an identity document instantly and reliably.

ScanDoc reads it faster and more precisely than any manual inspection.

FAQ

The two 44-character lines at the bottom of the photo page, encoding name, birth date, nationality, document number, issuing country and expiry in an OCR-readable format.

Three lines of 30 characters on ID cards and driving licences, carrying the same core data in the same ICAO format.

A machine-readable passport lets systems extract and verify data instantly; older ones need slow, error-prone manual checks and have been phased out.

Its check digits are derived from the data, so any alteration without correctly recalculated digits causes a mismatch that flags the document.

Latest articles

Ready to verify in seconds?

Start a free trial or book a walkthrough with our team.