ID AnalyzerID Analyzer
ID Analyzer
  • ID Verification API

    证件扫描与验证 REST API

    DocuPass

    可嵌入的 KYC 流程

    Biometric API

    人脸比对与活体检测

    ID Fort

    企业本地部署 KYC

    Transaction Vault

    身份云端存储与审计

    Prime ID Scanner

    桌面证件扫描软件

  • 证件 OCR 扫描器

    提取证件数据

    身份验证

    验证远程用户

    生物特征验证

    人脸识别

    证件真伪验证

    伪造证件检测

    AML 与 PEP 筛查

    制裁与监控名单

    文件自动化

    生成与签署文件

    法规合规

    GDPR、HIPAA、ISO、IAL2

    支持的证件

    覆盖 190 多个国家

  • KYC驾驶员验证用户注册开户用户验证身份验证欺诈检测金融服务交易平台与社区游戏运输零售与电子商务门禁管理医疗保健教育旅游与酒店业电信
  • 开发者
  • 价格
  • 联系我们
登录立即开始
Home
ID AnalyzerID Analyzer

菜单

    • ID Verification API
    • DocuPass
    • ID Fort
    • Biometric API
    • Transaction Vault
    • Prime ID Scanner
    • 证件 OCR 扫描器
    • 身份验证
    • 生物特征验证
    • 证件真伪验证
    • AML 与 PEP 筛查
    • 文件自动化
    • 法规合规
    • 支持的证件
    • KYC
    • 驾驶员验证
    • 用户注册开户
    • 用户验证
    • 身份验证
    • 欺诈检测
    • 金融服务
    • 交易平台与社区
    • 游戏
    • 运输
    • 零售与电子商务
    • 门禁管理
    • 医疗保健
    • 教育
    • 旅游与酒店业
    • 电信
    • 开发者
    • 价格
    • 联系我们
    • 安全性与 ISO 27001
← 返回博客
MRZDocument OCRPassports

How to Read the Machine-Readable Zone on a Passport

ID Analyzer Team·May 22, 2026·阅读约 2 分钟
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.

继续阅读

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 分钟
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 分钟
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 分钟
开始验证

准备好验证你的第一张证件了吗?

注册即送免费测试额度——无需信用卡。

  • 免费试用
  • 联系销售
  • 无需信用卡

  • 注册即送免费试用额度

ID Analyzer

云端身份验证服务。通过 OCR、生物特征人脸比对与 AML 筛查,扫描并验证来自 190 多个国家的驾照、护照与身份证。

FacebookFacebook
Twitter@idanalyzer

ISO 27001 认证 · 查看认证

产品

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

解决方案

  • 证件 OCR 扫描器
  • 身份验证
  • 生物特征验证
  • 伪造证件检测
  • 支持的证件

公司

  • 关于我们
  • 价格
  • 开发者
  • 博客
  • 服务状态
  • 联系我们

© 2026 Evith Technology Ltd. · 隐私政策 · 服务协议 · 数据保护政策

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