OCR Passport Extractor
/ocr-passport-extractorExtract passport number, surname, given names, and dates from passport images and MRZ zones.
Passport details from the machine-readable zone are needed for bookings, registrations, and onboarding forms. This extractor reads passport images and pulls the passport number, surnames, given names, and expiry dates automatically. The OCR runs locally, which matters for a document as sensitive as a passport. Your passport photo never leaves your browser.
- 01Upload
- 02Configure
- 03Run
- 04Download
Loading tool...
FAQ
Frequently asked questions
Everything you need to know about ocr passport extractor.
What is the MRZ?
The Machine Readable Zone is the two-line code at the bottom of a passport page. It stores standardized data and gives the most reliable surname and given-name extraction.
Is my passport data safe?
Yes. All OCR runs locally in your browser via Tesseract.js. The image is never uploaded, which matters for identity documents.
How does extraction work?
The MRZ lines are parsed for surname and given names, while passport number, nationality, and date of birth come from pattern matches over the full OCR text.
Why is my passport number missing?
The number pattern expects two letters followed by six to nine digits. Cropped, rotated, or low-contrast scans often fail; retry with a clearer image.
What if no fields are detected?
The raw OCR text is shown so you can see what the engine actually read. Improving lighting, focus, and frame coverage usually fixes detection.
Can I choose the OCR language?
Yes. The same language selector used across the OCR tools is available here, defaulting to English, and additional bundled languages can improve recognition for non-English passports.
Related tools
same category · same privacy
