MRZ Parser

MRZ Parser for Passport, ID, and Visa Scanning

Extract structured data from Machine Readable Zones (MRZ) on passports, ID cards, and visas using barKoder’s high-accuracy MRZ parser. Decode document type, name, nationality, date of birth, expiry, and more instantly within your app.

mrz

barKoder MRZ Parser

A Machine Readable Zone (MRZ) is a section on identity documents – such as passports, ID cards, visas, residence permits, and other travel documents – that contains encoded personal information in a standardized format.

mrz-parser-new.webp

Whether you're verifying identity for onboarding, KYC, access control, or fleet management, barKoder instantly returns clean, labeled fields from a single scan.

Read More

barKoder's parser decodes and organizes the AAMVA data into structured fields which are then returned in a developer-friendly JSON format, with key-value pairs mapped to the AAMVA data elements, like so:

code snippet JSON:

{ "first_name": "Alex",
"last_name": "Johnson",
"license_number": "D12345678",
"address": "123 Main St",
"city": "Austin",
"state": "TX",
"zip": "78701",
"dob": "1990-02-12",
"issue_date": "2022-01-01",
"expiry_date": "2030-01-01"
}

What is Machine Readable Zone?

The Machine Readable Zone (MRZ) is a standardized format used globally on identity documents such as passports, visas, and some national ID cards. It allows machines to quickly and accurately read personal data using optical character recognition (OCR) technology.

mrz-parser-new-1.webp

Most passports and machine-readable travel documents (MRTDs) include a Machine Readable Zone (MRZ) that encodes key personal and document data in a standardized format defined by the ICAO Document 9303. The MRZ typically appears on the bottom of the identity page and includes:

  • Full name (first, middle, last)
  • Document number (DL/ID)
  • Nationality
  • Date of birth
  • Gender
  • Document expiration date
  • Issuing country or authority
  • Check digits for data validation

Features of the MRZ Parser

  • Compliant with ICAO Document 9303 standards for MRZ formats (TD1, TD2, TD3, and MRV)
  • Works offline and in real-time for fast and secure processing
  • Parses standardized MRZ fields, including name, document number, nationality, date of birth, sex, expiration date, and issuing country
  • Supports passports, visas, and national ID cards from most countries worldwide
  • Includes check digit and formatting validation
  • Handles OCR-B font and layout-specific parsing logic
  • Cross-platform support: iOS, Android, Web, Desktop
  • Lightweight and optimized for use in mobile apps, kiosks, and border control systems

MRZ Parsing Use Cases

  • Border Control & Immigration: Rapid verification of passports and visas at airports and border checkpoints
  • Travel & Hospitality: Guest check-in at hotels, cruise lines, and travel agencies
  • Financial Services: Identity verification during KYC (Know Your Customer) for banking and fintech applications
  • e-Government Services: Online passport or ID validation for accessing digital government services
  • Telecommunications: Customer onboarding and ID validation for SIM card registration
  • Access Control & Security: Identity checks for secure facilities, events, and restricted areas
app_hand_img.webp

Barcode Scanner by barKoder

The Barcode Scanner by barKoder app will provide you with an easy-to-use tool designed to showcase the versatility and functionality of our Barcode Scanner SDK in capturing all supported barcode formats, including DPM-engraved Data Matrix codes.

Apart from the plethora of useful features, including a variety of options when it comes to exporting the results of each successful barcode scan, you’ll have access to a specially designed DPM scanning template containing all optimum DPM decoding settings.

Latest Barcode Scanner SDK Articles,
Tutorials, and News

recentArticle

Revolutionizing Dining: QR Code Menu Scanning in Restaurants with barKoder (2025 Edition)

In 2025, restaurant technology is transforming faster than ever. Paper menus are fading away, replaced by fast, touch-free, and eco-friendly QR code menus. This digital shift not only enhances customer experience but also cuts costs and improves hygiene. With barKoder, restaurants can offer seamless menu scanning and ordering through a simple, powerful SDK and mobile app integration.

Oct 17, 2025

Info

recentArticle

Why Developers Love Integrating barKoder

As industries continue to digitize, barcode and QR code scanning technology has become a core part of modern business infrastructure. In 2025, companies require tools that are fast, reliable, and ready to integrate across platforms. The barKoder SDK stands out as the next-generation barcode scanning solution — built for developers, trusted by enterprises, and loved by users.

Oct 07, 2025

Info

recentArticle

Barcode Types Explained: 1D vs 2D and Which One You Should Use

Barcodes come in two main types: 1D (linear) and 2D (two-dimensional). While 1D barcodes are simple, low-cost, and perfect for retail, 2D barcodes pack more data into less space, making them ideal for healthcare, logistics, and mobile use. This guide explains the differences, pros and cons, and helps you decide which barcode type best fits your business needs.

Oct 03, 2025

Info