ID AnalyzerID Analyzer
ID Analyzer
  • ID Verification API

    ID scan & verification REST API

    DocuPass

    Drop-in embedded KYC flow

    Biometric API

    Face match + liveness check

    ID Fort

    Enterprise on-premise KYC

    Transaction Vault

    Identity cloud storage + audit

    Prime ID Scanner

    Desktop ID scanning software

  • Document OCR Scanner

    Extract ID Data

    Identity Verification

    Verify Remote User

    Biometric Verification

    Face Recognition

    Document Authentication

    Fake ID Check

    AML & PEP Screening

    Sanctions & Watchlists

    Document Automation

    Generate & Sign Documents

    Regulatory Compliance

    GDPR, HIPAA, ISO, IAL2

    Supported Documents

    190+ Countries Covered

  • KYCDriver VerificationUser OnboardingUser VerificationIdentity VerificationFraud DetectionFinancial ServicesMarketplace & CommunitiesGamingTransportRetail & EcommerceAccess ControlHealthcareEducationTravel & HospitalityTelecom
  • Developer
  • Pricing
  • Contact
Sign InGet Started
Home
ID AnalyzerID Analyzer

Menu

    • ID Verification API
    • DocuPass
    • ID Fort
    • Biometric API
    • Transaction Vault
    • Prime ID Scanner
    • Document OCR Scanner
    • Identity Verification
    • Biometric Verification
    • Document Authentication
    • AML & PEP Screening
    • Document Automation
    • Regulatory Compliance
    • Supported Documents
    • KYC
    • Driver Verification
    • User Onboarding
    • User Verification
    • Identity Verification
    • Fraud Detection
    • Financial Services
    • Marketplace & Communities
    • Gaming
    • Transport
    • Retail & Ecommerce
    • Access Control
    • Healthcare
    • Education
    • Travel & Hospitality
    • Telecom
    • Developer
    • Pricing
    • Contact
    • Security & ISO 27001
← Back to Blog
MRZDocument OCRPassports

How to Read the Machine-Readable Zone on a Passport

ID Analyzer Team·May 22, 2026·2 min read
How to Read the Machine-Readable Zone on a Passport

If you have ever looked at the bottom of a passport's photo page, you have seen two lines of evenly-spaced capital letters, numbers, and chevrons (<). That block is the Machine-Readable Zone (MRZ) — a standardized, machine-friendly copy of the holder's key details, defined by ICAO Document 9303.

It exists so that any reader — a border kiosk, a hotel scanner, or an API — can extract identity data reliably, without depending on fonts or layout.

What the two lines encode

A standard passport (TD3 format) MRZ has two lines of 44 characters:

  • Line 1 — document type, issuing country, and the holder's name (surname, then given names, separated and padded with <).
  • Line 2 — passport number, nationality, date of birth, sex, expiry date, an optional personal number, and a set of check digits.
P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L898902C36UTO7408122F1204159ZE184226B<<<<<10

Tip

Dates are written YYMMDD. So 740812 is 12 August 1974, and 120415 is 15 April 2012. The single letter after the date (F/M/X) is the sex field.

Check digits: the MRZ's built-in error detection

The MRZ is not just data — it is self-verifying. Several fields are followed by a check digit computed from the characters before it, using a weighting pattern of 7, 3, 1 repeated across the field. A final composite check digit covers the whole second line.

This is why MRZ extraction can reach near-perfect accuracy: even if OCR misreads a character, the check digits usually catch it. A document where the check digits do not validate is an immediate red flag — it often signals a tampered or fabricated passport.

Why it matters for verification

Two reasons:

  1. Accuracy. The MRZ gives a clean, structured source of truth for name, number, nationality, date of birth, and expiry — independent of the visual zone, which can be harder to read on a worn or low-light capture.
  2. Authenticity. Cross-checking the MRZ against the visual zone (and validating the check digits) is one of the strongest, cheapest fraud signals available. If the printed name says one thing and the MRZ says another, something is wrong.

ID Analyzer decodes the MRZ automatically wherever one is present — and falls back to full visual-zone OCR when it is not (for example, on many driver's licenses, which use barcodes instead).

See how document OCR works

So the next time you see those two cryptic lines, you will know: they are a compact, checksum-protected snapshot of an identity — built to be read by machines, and to make forgery harder.

Keep Reading

GDPR and Identity Data: What You Can and Cannot Store
GDPRData Protection

GDPR and Identity Data: What You Can and Cannot Store

A practical guide for developers and compliance teams on storing identity-verification data under GDPR.

Jun 1, 2026·5 min read
What Is AML Screening, and How Does It Work?
AMLCompliance

What Is AML Screening, and How Does It Work?

A practical breakdown of AML screening, what it checks, and how to build it into your onboarding flow.

May 31, 2026·5 min read
What Is KYC, and Why Does It Matter?
KYCCompliance

What Is KYC, and Why Does It Matter?

A plain-English guide to Know Your Customer — what it is, why regulators require it, and how modern teams automate it without slowing onboarding.

May 28, 2026·3 min read
Start Verifying

Ready to Verify Your First ID?

Free test credits on signup — no card required.

  • Start Free Trial
  • Talk to Sales
  • No Credit Card Required

  • Free Trial Credits on Signup

ID Analyzer

Cloud-based identity verification. Scan and verify driver licenses, passports, and ID cards from 190+ countries with OCR, biometric face matching, and AML screening.

FacebookFacebook
Twitter@idanalyzer

ISO 27001 Certified · View Certification

Products

  • Identity Verification API
  • DocuPass Web KYC
  • AML/PEP Check
  • Face Verification API
  • Transaction Vault
  • Prime ID Scanner

Solutions

  • Document OCR Scanner
  • Identity Verification
  • Biometric Verification
  • Fake ID Check
  • Supported Documents

Company

  • About
  • Pricing
  • Developer
  • Blog
  • Service Status
  • Contact

© 2026 Evith Technology Ltd. · Privacy Policy · Service Agreement · Data Protection Policy

English简体中文繁體中文DeutschFrançaisEspañolPortuguêsItaliano日本語한국어العربيةहिन्दी