MRZ Passport Scanner SDK

A Reliable MRZ Passport Reader SDK for Web, Desktop, and Mobile Applications

Dynamsoft's MRZ Passport Scanner SDK is designed to capture and extract user's information from machine-readable travel documents, especially passports. Its sophisticated MRZ localization and decoding algorithms provide enterprise-grade accuracy and speed. Our passport scanner SDK delivers high performance under various usage scenarios such as scanning passport with mobile phone.

Try Online Demo

Supported Platforms and Programming Languages

Dynamsoft's MRZ Passport Scanner SDK supports multiple platforms and programming languages for mobile (iOS & Android), desktop and web applications.

MRZ Passport Scanner SDK Features

Achieves a Near 100% Accuracy

  • Embeds an innovative OCR engine that makes the best use of both neural networks and the traditional imaging techniques.
  • Built-in regular expression to verify the accuracy of every MRZ character.
  • Cross-checking reading algorithms running in parallel.

Sophisticated Image Pre-processing Algorithms

  • When a user points the camera to a personal identification document, the MRZ passport scanner SDK automatically detects the border of the passports, ID cards, visas, or driving licenses, crops, and then runs a perspective correction.

Enterprise-grade Speed and Efficiency

  • Fully utilizes the geometric features of a passport for localizing the MRZ zone.
  • Blurred image frames are auto discarded under mobile camera video scanning mode.
  • Supports batch processing when reading passport images on the server-side.

Secure and Reliable

  • On-premise data processing
  • Dynamsoft is ISO 27001 certified
  • GDPR compliant
  • HIPAA compliance

Easy Integration

  • Integrate MRZ passport scanning capabilities with just a few lines of code.

How MRZ Reading Works on Mobile

On a smart device (mobile phone or tablet), a user turns on the video stream with the built-in camera and points the camera to the identity page of the passport.

The MRZ passport reader software auto crops the border of the passport, recognizes the MRZ characters, and parses them into <field, value> pairs which get auto populated to your web page or application.

Then the user verifies the results and saves the passport information.

FAQs about Dynamsoft's MRZ Passport Scanner SDK

  • 1.

     Is the MRZ Passport Scanner SDK compliant with the GDPR and CCPA?

  • The MRZ scanning process runs directly on the client device which ensures all data is on-premise. Dynamsoft does not have access to any data from your customers' side.

  • 2.

     Is the MRZ Passport HIPAA compliant?

  • If you are working on a medical or healthcare-related app, our SDK helps you achieve HIPAA compliance with all the security measures in place.

  • 3.

     Which documents contain MRZ other than passports?

  • There are several formats of machine-readable travel documents (MRTD) that use MRZ:

    Passports (MRPs) and other TD3-size MRTD

    • TD3 size is 125.00 mm (4.921 in) wide by 88.00 mm (3.465 in) high. The machine-readable zone is 2 lines and each line is 44 characters long

    ID cards

    • ID-1 type card: TD1 size is 85.60 mm (3.370 in) wide by 53.98 mm (2.125 in) high. The machine-readable zone is 3 lines 30 digits long

    • ID-2 type card: TD2 size is 105.00 mm (4.134 in) wide by 74.00 mm (2.913 in) high. The machine-readable zone is 2 lines 36 digits long

    Visas: 2 subtypes

    • MRV-A (2 lines 44 digits long)

    • MRV-B (2 lines 36 digits long)

    Driving license

    • 1 lined MRZ

  • 4.

     What data is contained in an MRZ number?

  • Types of data that are encrypted into MRZ codes may include:

    • Full name*

    • Date of birth*

    • Nationality*

    • Sex*

    • Issuing country*

    • Passport number*

    • Passport expiration date*

    • Other optional data elements

  • 5.

     Which country or region passport is supported?

    •  Angola

    •  Antigua and Barbuda

    •  Argentina

    •  Armenia

    •  Australia

    •  Austria

    •  Azerbaijan

    •  Bahamas (the)

    •  Belarus

    •  Belgium

    •  Brazil

    •  Bulgaria

    •  Canada

    •  Chile

    •  China

    •  Cyprus

    •  Czechia

    •  Dominica

    •  Estonia

    •  Finland

    •  France

    •  Germany

    •  Ghana

    •  Greece

    •  Hungary

    •  India

    •  Indonesia

    •  Ireland

    •  Italy

    •  Japan

    •  Kazakhstan

    •  Kenya

    •  Kyrgyzstan

    •  Lithuania

    •  Mexico

    •  Moldova (the Republic of)

    •  Morocco

    •  New Zealand

    •  Nigeria

    •  Philippines (the)

    •  Poland

    •  Portugal

    •  Romania

    •  Russian Federation (the)

    •  Singapore

    •  Slovakia

    •  South Africa

    •  Spain

    •  Sweden

    •  Switzerland

    •  Taiwan (Province of China)

    •  Trinidad and Tobago

    •  United Kingdom of Great Britain and Northern Ireland (the)

    •  United States of America (the)

    •  Uzbekistan

    •  Venezuela (Bolivarian Republic of)

    •  Viet Nam

    • Please contact support if you need to support a country or region that is not listed above.

  • 6.

     How responsive is customer support?

  • Available 20 hours daily and 5 days a week

    With distributed support centers located in North America and the Asia Pacific, Dynamsoft is ready to help 20 hours every day and 5 days a week.

    Various Support Channels

    • Online Chat

    • Sales Email:

    • Support Email:

    • Phone Line: 1-604-605-5491

    • Web Meeting

Ready to try Dynamsoft's MRZ Passport Scanner SDK?


API reference and dev guide



Android Java, Swift, Objective-C, C++, C#, and Java


Free Trial

Talk to our sales rep for a 30-day trial. Free technical support.