Account opening, customer registration, and travel check-in all require users to provide identity documents. In each case, document scanning should fit naturally into the online service, without interrupting the customer journey, since more than one in two customers abandon digital account opening if it takes over 3-5 minutes.
Browser-based MRZ scanning keeps document capture on the website, with no app or plugin to install. Powered by WebAssembly, MRZ OCR is performed in desktop and mobile browsers, extracting machine-readable data locally. Document images and extracted details stay on the user’s device, giving businesses a straightforward way to add secure ID scanning to their web services. More on this in today’s blog.
What Makes an MRZ Scanner Browser-Based
A browser-based MRZ scanner uses WebAssembly (WASM) to bring document scanning capabilities directly into a web application. Instead of relying on a separate desktop program or mobile app, it performs MRZ OCR within the user’s browser. This architecture allows businesses to add passport scanning to existing digital services while keeping the user experience entirely web-based.
Users can open a website, scan a passport or ID with their web camera, and continue with the next step without switching applications. Document scanning becomes part of the website’s existing customer journey. This is particularly useful for online onboarding and account registration, where additional steps can make the experience less convenient.
Several features make this approach particularly practical:
No additional installation. Users can scan passports and IDs directly on a website without downloading a dedicated application, browser extension, or plugin.
Desktop and mobile compatibility. MRZ scanning works through modern desktop and mobile browsers, allowing customers to use the devices they already have.
On-device scanning. WebAssembly performs MRZ OCR locally in the browser, so document images do not need to be uploaded to an external OCR server.
Flexible web integration. JavaScript connects the scanning capabilities to the website’s interface and application logic, making it possible to adapt document capture to existing registration, onboarding, and eKYC workflows.
This approach makes passport and ID scanning available as part of an existing online service, with no separate application for customers to install and no need to build different scanning experiences for desktop and mobile.
How Browser-Based MRZ OCR Reads Documents
An MRZ scanner can work with a live camera feed or an image of a document supplied by the user. It locates the machine-readable zone, reads the printed characters, and makes the result available to the web application. This gives businesses several ways to include document capture in their services, depending on how customers access the website and what devices they use.
Users can scan documents via a smartphone camera or desktop webcam. The browser-based scanner also supports several ways to provide document images:
Image uploads. A user can select an existing document photo from their device, which is useful when taking a new picture is inconvenient or the document has already been captured.
Screenshots. The scanner can read an MRZ from a screenshot, making it possible to use document images already captured or saved on the device.
Video streams. A continuous video feed can be used for real-time MRZ scanning, allowing the scanner to analyze frames as the document is presented to the camera.
The technology supports the MRZ layouts found in passports, identity cards, residence permits, and visas. These include the standard ICAO document formats, as well as the MRVA and MRVB formats used in visas. This range allows one browser-based solution to serve document checks across different customer groups and service scenarios.
How MRZ Scanning Handles Challenging Images
Real-world document images rarely have ideal lighting, positioning, or resolution. A reliable MRZ scanner must therefore handle more than clean, perfectly aligned passport photographs. Specialized neural network-based methods help locate MRZ lines under varying capture conditions, including images affected by glare, shadows, and perspective distortion.
This is particularly important for browser-based applications, where users take photographs with different devices and capture conditions. These factors can make machine-readable characters harder to distinguish.
The table below summarizes MRZ capture challenges:
Image challenge
What happens
MRZ scanning capability
Low lighting
Characters become difficult to distinguish
Handles insufficient illumination
Excessive brightness
Details may become washed out
Supports MRZ scanning under bright conditions
Glare and reflections
Reflected light obscures parts of the MRZ
Handles images affected by glare
Shadows
Uneven lighting reduces character visibility
Supports images with shadowed areas
Angled or curved documents
MRZ lines appear distorted or misaligned
Handles perspective and document curvature
Low resolution
Small characters lose visual detail
Supports low-resolution images and low DPI
These capabilities help reduce dependence on perfect capture conditions and make the document submission experience more practical for end users.
Customers use different smartphones, webcams, and browser environments. ID card scanning solution that accommodates imperfect images can make digital onboarding more accessible and reduce the need to repeat document submissions.
Why In-Browser MRZ Scanning Keeps Document Data Private
In-browser MRZ scanning keeps document images and sensitive information on the user’s device instead of sending them to an external OCR server. WebAssembly enables the scanning module to perform MRZ OCR locally, allowing personal data to be extracted without uploading a passport or ID photograph for remote analysis.
This architecture is particularly relevant to businesses handling identity documents. Passports and national IDs contain personal information that requires careful protection throughout the customer journey. Reducing unnecessary transfers of document images helps limit exposure to external systems and simplifies the data-handling architecture.
The privacy-related characteristics include:
On-device execution.MRZ scanning takes place within the browser on the user’s device.
Local data handling. Document images and extracted MRZ information remain on the client side.
RAM-based operation. Data is handled in local memory without system-level logging or storage of scanned information.
No human operators. The scanning workflow does not depend on manual document review by external operators or crowdsourced services.
Offline availability.MRZ OCR can operate without an internet connection.
Offline functionality also offers a practical advantage in environments with unstable connectivity. Users can access document scanning capabilities even when a reliable network connection is unavailable.
Since document images and extracted MRZ data never leave the user’s device, third-party OCR providers have no access to this information. This gives businesses a stronger foundation for protecting customer privacy, meeting data protection requirements, and avoiding the legal and reputational consequences of breaches involving external service providers.
It also allows companies to establish data protection policies with greater freedom and control. Sensitive information remains within the product’s own environment, making data governance more straightforward and privacy requirements easier to build into the overall architecture.
Where Businesses Need Browser-Based MRZ Scanning
Browser-based MRZ scanning fits online services where customers need to confirm their identity using a passport or ID. Document capture and data entry take place directly within the website, keeping this step part of the service’s existing registration or application flow.
Banks and fintech companies use MRZ scanning during remote account opening and KYC onboarding. Passport details are read automatically and transferred into the relevant application fields, reducing manual input and helping customers complete registration without leaving the website. KYC providers integrate document scanning into their own platforms while retaining control over their interface and customer journey.
Travel companies, airlines, and hospitality businesses use document scanning for ticket bookings, pre-arrival registration, and check-in. Passport details are entered before a guest reaches the reception desk or a passenger arrives at the airport, reducing paperwork and speeding up service.
Government portals also benefit from browser-based scanning when citizens apply for digital public services that require identity details. Online platforms use it for age assurance, with the date of birth read directly from an identity document.
The same approach fits websites, progressive web apps, and messenger mini apps. Businesses can place document scanning inside the digital channels their customers already use and keep identity checks within those services.
How MRZ OCR Supports Broader Identity Checks
MRZ scanning works alongside several fraud checks that help establish whether document details are consistent and whether the document belongs to the person presenting it. These checks examine the information printed on the document, its machine-readable zone, the holder’s photo, and the data stored in an electronic chip.
VIZ-to-MRZ comparison checks whether key details, including the name, document number, and issuing country, match across the visible and machine-readable parts of the document. MRZ data consistency checks add further ways to identify irregularities in the machine-readable zone.
Face matching extends these checks. The system locates the portrait on a passport or ID and compares it with a selfie, checking that the person completing the online procedure matches the document photo.
Electronic passports can be additionally checked through RFID chip reading. The MRZ data provides the access key for the chip, which stores the holder’s personal details and digital photograph.
How OCR MRZ-scan Integrates into Web Applications
OCR MRZ-scan is OCR Studio solution for MRZ scanning directly within web applications and progressive web apps (PWAs). Its WebAssembly-powered SDK brings MRZ OCR to modern desktop and mobile browsers, automatically extracting machine-readable data from passport, ID, and visa images or live camera streams. Users scan documents directly on a website, without installing a separate application or browser plugin.
Designed for real-world capture conditions, OCR MRZ-scan handles both two-line and three-line MRZ layouts, including curved lines. Its neural networks adapt to off-angle documents, glare, shadows, uneven lighting, and low-resolution images. This supports reliable data extraction from everyday camera captures, without requiring users to retake photos until they meet ideal conditions.
OCR MRZ-scan supports:
WebAssembly-powered MRZ OCR directly in the browser;
On-device scanning with no external server transmission;
Offline MRZ scanning in desktop and mobile browsers;
Real-time scanning from camera streams, photos, and images;
Support for ICAO-compliant and selected local MRZ formats;
Neural-network detection of curved MRZ lines and challenging image conditions;
Check-digit validation and MRZ-to-VIZ cross-checking.
Beyond MRZ scanning, OCR Studio’s solution performs face matching against a selfie as well as RFID chip reading. The RFID chip provides access to the holder’s personal data and digital portrait, cross-checking them against the MRZ and VIZ.
With OCR MRZ-scan, businesses integrate document scanning and additional identity checks directly into their web services. From remote KYC and digital account opening to travel check-in and guest registration, it streamlines document capture, reduces manual data entry, and keeps sensitive information on the user’s device.
FAQ
What is a browser-based MRZ scanner?
A browser-based MRZ scanner extracts data from the machine-readable zone of passports, identity cards, and visas directly within a web browser. Powered by WebAssembly, it performs MRZ OCR on the user’s device without requiring a separate application, browser extension, or plugin.
Which documents and MRZ formats does browser-based MRZ OCR support?
MRZ scanning supports passports, national identity cards, residence permits, and more. Standard formats include TD1, TD2, TD3, MRVA, and MRVB, along with local document formats.
Can an MRZ scanner read documents from low-quality images?
Yes. Neural network-based methods help detect and read MRZ lines in images affected by glare, shadows, uneven lighting, perspective distortion, and low resolution. The scanner also handles curved MRZ lines and documents captured at an angle, reducing the need for perfectly positioned photographs.
Does browser-based MRZ scanning send document images to an external server?
No. MRZ OCR is performed locally in the browser using WebAssembly. Document images and extracted MRZ data remain on the user’s device, without being uploaded to an external OCR server. Scanning can also work offline once the required components are available.
What input sources does a browser-based MRZ scanner support?
A browser-based MRZ scanner can read documents from live camera feeds, including smartphone cameras and desktop webcams. It also supports uploaded document photos, screenshots, and video streams, giving businesses flexibility in how users provide document images.
Contents
About the author
Alexander Sheshkus, Ph.D., is a scientist and inventor specializing in artificial intelligence and machine learning. As Chief Science Officer of OCR Studio, he oversees research and development initiatives focused on advancing AI-powered recognition and computer vision technologies. Alexander developed the core of a string recognition system, proposing and implementing numerous algorithms for neural network training and high-precision text recognition.
With expertise in smart data capture, computer vision, machine learning, and AI, Alexander regularly presents his research at international conferences, industry exhibitions, and scientific forums. His contributions are supported by 70+ scientific publications and 3 US patents, reflecting his ongoing work to advance research and innovation at OCR Studio.