Driver's License OCR API

Driver's License OCR API for 50 US States & 9 Countries

Turn a driver's license into structured JSON in seconds. Our driver's license OCR API reads all 50 US state designs and licenses worldwide, returning the holder's details and a parsed address (street, city, state, ZIP) — built for KYC and identity verification.

  • All 50 US states
  • Structured address
  • 9 countries
  • JSON in seconds
Driver's license being processed into structured JSON output

One request, structured JSON

POST a license image with a country-specific documentType and get clean JSON back. The documentType (e.g. us_drivers_license, gb_drivers_license) selects the format — see every value in the supported-countries grid below.

Request
curl -X POST "https://pictotext.io/api/v1/ocr" \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-F "image=@drivers_license.jpg" \
-F "documentType=us_drivers_license"
JSON responseJSON
{
"documentType": "us_drivers_license",
"firstName": "JOHN",
"lastName": "DOE",
"licenseNumber": "D123456789012",
"dateOfBirth": "1990-01-01",
"issueDate": "2020-01-01",
"expiryDate": "2025-01-01",
"address": "123 MAIN STREET",
"city": "LOS ANGELES",
"state": "CA",
"zipCode": "90001",
"vehicleClass": "C"
}

A representative US response with the address split into street, city, state and ZIP. Exact fields follow each country’s license; open the relevant country in the grid below for its precise schema.

What the driver's license OCR API returns

These data categories are returned across driver’s licenses. Exact field names — and any country-specific extras — follow each document, so a US license and a UK licence return different keys.

firstName / lastName

The holder’s name as printed on the license.

licenseNumber

The driver/license number — US state formats, the UK DVLA driver number, and more — returned as printed.

dateOfBirth

Normalized to ISO 8601 (YYYY-MM-DD).

issueDate / expiryDate

The validity window, normalized to ISO 8601 — key for expiry checks in onboarding and fleet compliance.

address (structured)

For US licenses the address is returned as separate street, city, state and ZIP fields; elsewhere the full printed address is returned as one string.

vehicleClass / categories

License class (US) or vehicle categories (UK/EU) the holder is entitled to drive, where the document carries them.

restrictions

Driving restrictions when present on the license.

country-specific fields

Height and eye color (US), place of birth (UK), issuing state (Australia), issuing authority and more — see each country’s reference for the full list.

Need the exact fields for one country? Open that country’s reference from the supported-countries grid below.

How the driver's license OCR engine works

Three stages turn a real-world photo of a license into structured data.

  1. Detection & preprocessing

    The engine detects the license and its country/state format, then deskews, de-glares and corrects rotation — built for mobile photos, not just flatbed scans.

  2. Layout-aware OCR

    Printed fields are read across all 50 US state designs and international layouts, including horizontal, vertical (under-21) and Real ID variants as well as older formats still in circulation.

  3. Structured field output

    Fields are normalized — dates to ISO 8601, and US addresses split into street, city, state and ZIP — and returned as clean JSON ready for your database.

Where teams use driver's license OCR

Anywhere a license has to become structured data for verification or compliance.

Car & vehicle rental

Verify a renter’s license and entitled vehicle class at pickup, and capture the data for the rental agreement in one scan.

Ride-hailing & delivery onboarding

Onboard gig drivers across states and countries by reading whatever license they hold, with expiry and class ready for your checks.

Fleet & logistics compliance

Track driver license validity and expiry across a fleet, pulling structured fields straight from the license image.

Age & identity verification

Extract date of birth and identity fields for age-gated services — alcohol, gaming, tobacco — without manual entry.

Fintech & banking KYC

Use the driver’s license as an accepted identity document for account opening, with structured fields ready for your checks.

Insurance intake

Speed up quote and claim intake by reading the license fields your underwriting and policy systems need.

Driver's License OCR API — FAQ

Practical answers on coverage, fields, addresses and formats for developers integrating the driver’s license OCR API.

Driver's License OCR API pricing

Start free, scale as you grow

Free

$0

100 API calls on signup, plus unlimited web OCR. No card required.

Premium

Most popular

$29.90/month

10,000 API calls included. Best value for growing teams.

Enterprise

$249/month

100,000 API calls included. Lowest cost per call.

Pay-as-you-go from $3.33/1,000 calls · credits never expire

Ready to extract driver's license data?

Start with a free trial — 100 API calls included. Run your real licenses through the API and see the JSON.