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.

Drop a PDF or image here, or click to browse
Max 20 MB per file · PDF, PNG, JPG, WEBP, HEIC
Pro: drop up to 25 files at once for bulk extraction
What to extract from this full passport?
or describe it yourself
Extracting full passport

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

  1. Step 1
    Upload the passport image

    PDF, PNG, JPG, or HEIC photo. Front photo page only.

  2. Step 2
    Extract 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.

  3. Step 3
    Verify 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_2

Sample output

Example output from a passport photo page

country_codeGBR
surnameDOE
given_namesJANE ELIZABETH
passport_number123456789
nationalityBRITISH CITIZEN
date_of_birth1990-04-12
sexF
place_of_birthLONDON
date_of_issue2022-03-01
date_of_expiry2032-03-01
issuing_authorityHMPO
mrz_line_1P<GBRDOE<<JANE<ELIZABETH<<<<<<<<<<<<<<<<<<<
mrz_line_21234567894GBR9004129F3203018<<<<<<<<<<<<<<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.

Related extractors

Used by

Compared to alternatives