Extract data from a passport
Read all identifying fields off a passport scan or photo — country, names, passport number, dates, MRZ — and return them as structured JSON, CSV, or Excel.
Why this matters
KYC, visa applications, hotel check-in, and identity onboarding all need the same fields. ExtractFox returns them in a stable schema, including both lines of the machine-readable zone, so you can verify against the printed fields automatically.
How it works
- Step 1Upload the passport image
PDF, PNG, JPG, or HEIC photo. Front photo page only.
- Step 2Extract identity fields
Surname, given names, passport number, nationality, sex, date of birth, place of birth, issue date, expiry date, issuing authority, and both MRZ lines.
- Step 3Verify and export
Inspect the table, then download as JSON for an API ingest or Excel for a spreadsheet.
Fields extracted
country_codesurnamegiven_namespassport_numbernationalitydate_of_birthsexplace_of_birthdate_of_issuedate_of_expiryissuing_authoritymrz_line_1mrz_line_2Sample output
Example output from a passport photo page
| country_code | GBR |
| surname | DOE |
| given_names | JANE ELIZABETH |
| passport_number | 123456789 |
| nationality | BRITISH CITIZEN |
| date_of_birth | 1990-04-12 |
| sex | F |
| place_of_birth | LONDON |
| date_of_issue | 2022-03-01 |
| date_of_expiry | 2032-03-01 |
| issuing_authority | HMPO |
| mrz_line_1 | P<GBRDOE<<JANE<ELIZABETH<<<<<<<<<<<<<<<<<<< |
| mrz_line_2 | 1234567894GBR9004129F3203018<<<<<<<<<<<<<<06 |
Frequently asked questions
Does ExtractFox parse the MRZ on a passport?+
Yes — both MRZ lines are returned as separate fields. You can cross-check them against the visual fields to detect tampering or OCR errors.
Which countries' passports are supported?+
Any ICAO-compliant passport. The model has been tested on common formats from the EU, US, UK, India, and most APAC and LATAM countries. National ID cards are not yet supported on this page.
Is it safe to upload passport scans here?+
Files are sent to Google's Gemini for processing and are not stored by ExtractFox. For regulated KYC workloads, contact us for a self-hosted or VPC deployment.
Can I extract passport data from a photo on my phone?+
Yes. Drop a HEIC or JPG photo of the passport's main page. Glare and angle affect accuracy — a flat, well-lit photo works best.
Can I bulk-process passports for KYC onboarding?+
On the paid plan you can hit the REST API directly — useful for KYC pipelines, hospitality check-in, or visa application processing. Each call returns the same stable schema.
What if the passport text is in a non-Latin script?+
ExtractFox extracts text in the script printed on the document. The MRZ is always Latin-transliterated by ICAO standard, so cross-checking against the visual fields works even for Cyrillic, Arabic, or CJK passports.
What about driver's licenses, national IDs, or residence permits?+
Use the ID document extractor for non-passport IDs — it returns the same kind of structured fields (names, document number, dates) without expecting an ICAO-format MRZ.