Passport OCR API
in Seconds
Extract reliable, structured passport data from images instantly. Powered by advanced machine learning for highest accuracy.

What is Passport OCR?
Passport OCR is a REST API that reads the Machine Readable Zone (MRZ) on passports and extracts structured data — name, nationality, document number, date of birth, and expiration date — in seconds.
Unlike complex identity verification platforms, Passport OCR is pure OCR-as-a-service. There are no subscriptions, no contracts, and no minimum commitments. You get 10 free requests per day without signup, and paid usage costs just $0.01 per request with credits that never expire.
The API accepts standard image uploads (JPEG, PNG) or base64-encoded images and returns clean JSON. Integration takes minutes — see the API documentation for code examples in cURL, Python, JavaScript, Go, and more.
Try It Now
Upload a passport image and see the extracted MRZ data instantly.
Drop your passport image here
or click to browse (max 10MB)
Need more? $0.01 per request
Seamless Integration
How It Works
Three simple steps to convert any passport image into crisp, structured JSON data ready for your application.
Upload Image
Send a passport image via our REST API. We support standard multipart uploads and base64 strings.
MRZ Detection
Our vision models instantly locate, deskew, and crop the Machine Readable Zone with high precision.
Structured JSON
Get beautifully normalized JSON response with all extracted payload data back in seconds.
cURL Example
curl -X POST https://api.passport-ocr.com/v1/ocr \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "[email protected]"

Simple Pricing
Pay only for what you use. No subscriptions, no surprises.
No signup required
- 10 requests per day
- Full MRZ extraction
- No API key needed
- Zero data retention
$1 = 100 credits
- Unlimited requests
- Priority processing
- Idempotency support
- Credits never expire
- No subscription, no overages
Get 100 free credits on sign-up, then purchase more from your dashboard.
FAQ
Frequently Asked Questions
From the Blog
Developer guides and technical deep-dives on passport OCR and MRZ.
Build a Telegram Bot to Automatically Extract Passport Data in Minutes
A fun and practical tutorial on building a Telegram bot using Node.js that parses passport images via the Passport OCR API and replies with the extracted data.
Top 5 Identity Verification APIs for Startups in 2026
A developer's guide to the best KYC and identity verification APIs available tailored specifically for startups, budget constraints, and integration ease.
MRZ vs. NFC vs. Barcode: Understanding Passport Data Extraction
Choosing the right ID scanning method. A technical comparison between MRZ OCR, NFC chip reading, and PDF417 barcodes for modern identity verification applications.