French Driving Licence (Permis de Conduire) OCR API

Read the French permis de conduire from a photo and get the licence number, name, dates and classes as structured JSON. Upload an image below to test it free.

200 free credits = 100 Driver License scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

Diagram of the API reading a French permis de conduire and returning the fields as JSON.

What Makes the French permis de conduire Hard to Parse

The French permis de conduire is issued by the French state (applications are handled online through ANTS). Since 2013 France issues the pink EU credit-card permis de conduire, valid for 15 years. Its data sits behind the EU numbered fields (1 nom, 2 prénoms, 3 date and place of birth, 4a/4b issue and expiry, 4c the issuing préfecture, 5 the licence number, 9 the categories), and like other EU cards it has no address field. The older pink paper permis is still accepted until the 2033 exchange deadline, so onboarding flows see both.

One API Call, Named Fields

The StructOCR Driver License OCR API returns the licence number (field 5), nom and prénoms (fields 1 and 2), date and place of birth (field 3), issue and expiry dates (4a, 4b), issuing authority (4c) and categories (field 9). French cards print dates as DD.MM.YYYY; the API returns them as YYYY-MM-DD. Send a JPG, PNG, WebP or PDF as Base64 JSON or as a multipart upload; there is no SDK to embed in your app, although official Python and Node.js SDKs are available. Step-by-step code is in the Python guide. Usage is billed per successful scan with pay-as-you-go pricing.

Live Demo: Driver License OCR Scanner

No registration required. Upload a file to test the extraction.

1
Upload
2
Results
↑

Drop files here or click to browse

JPG · PNG · PDF · TIFF  ·  up to 500 files · max 4.5 MB each

No document handy?

No files selected
Need more testing? Create a free account to get 200 free credits (equals 100 Driver License scans).

Where Teams Use It in France

Location de voitures et autopartage

Read the categories and expiry date from the renter's permis before handing over a vehicle.

Assurance auto

Prefill driver details on quotes and contracts from a photo of the licence.

Livraison et VTC

Collect licence details during driver and courier onboarding.

Technical Specs

  • Endpoint: POST https://api.structocr.com/v1/driver-license
  • Input: JPG, PNG, WebP or PDF up to 4.5 MB, as Base64 JSON or multipart upload
  • Price: 2 credits per successful scan; new accounts get 200 free credits (100 scans)
  • Retention: Images and results are kept for at most 24 hours for quality spot-checks, then deleted

Key Features

  • Named fields: The licence number (field 5), nom and prénoms (fields 1 and 2), date and place of birth (field 3), issue and expiry dates (4a, 4b), issuing authority (4c) and categories (field 9).
  • Normalized dates: French cards print dates as DD.MM.YYYY; the API returns them as YYYY-MM-DD.
  • Good to know: The card has no address field, so address is returned as null.

Integration & AI Prompts

Install the official SDK and pass a photo of the licence. Full request and response details are in the driver license API reference.

# pip install structocr
import os
from structocr import StructOCR

client = StructOCR(api_key=os.environ["STRUCTOCR_API_KEY"])
result = client.scan_driver_license("licence.jpg")

if result.get("success"):
    data = result["data"]
    print(data["document_number"], data["surname"], data["date_of_expiry"])

Standardized JSON Output

An illustrative response for a French permis de conduire, with fictional values.

{
  "success": true,
  "data": {
    "type": "drivers_license",
    "country_code": "FRA",
    "region": null,
    "document_number": "13AA00002",
    "personal_number": null,
    "surname": "MARTIN",
    "given_names": "CAMILLE",
    "sex": null,
    "date_of_birth": "1993-07-01",
    "place_of_birth": "LYON",
    "date_of_issue": "2019-03-11",
    "date_of_expiry": "2034-03-11",
    "date_of_first_issue": null,
    "issuing_authority": "PRÉFECTURE DU RHÔNE",
    "address": null,
    "vehicle_class": "AM, A1, B1, B"
  }
}

Frequently Asked Questions

Can I test the French permis de conduire scan for free?

Yes. Upload a photo in the live demo on this page without an account, or create an account to get 200 free credits, enough for 100 licence scans through the API.

Does it read the old pink paper permis?

The API is built for the EU card format. The paper permis has a different layout; test it in the demo before relying on it.

Are French accents kept?

Yes. Names and places are returned as printed, with accents.

Do I need an SDK?

No. It is a plain REST API that accepts Base64 JSON or a multipart upload. Official Python and Node.js SDKs are available if you prefer them.

Explore More Driver License OCR Solutions

SOLUTION

German Driving Licence (Führerschein) OCR API

Extract the licence number, surname and first names, date and place of birth, issue and expiry dates, issuing authority and classes from the German Führerschein as JSON with one API call. Try it free in the browser; new accounts get 100 free licence scans.

Driver License OCR
SOLUTION

Gym Membership Sign-Up with ID Barcode Prefill

Scan US driver licenses and state ID cards for gym and fitness clubs. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR
SOLUTION

Patient Registration Data Capture from Driver License PDF417

Use PDF417 and AAMVA parsing for healthcare registration. Pre-fill given_names, surname, address, handle unreadable barcodes, and keep API credentials server-side.

Driver License OCR
SOLUTION

Hotel Guest Registration with a Driver License Barcode API

Use PDF417 and AAMVA parsing for hospitality check-in. Pre-fill given_names, surname, address, handle unreadable barcodes, and keep API credentials server-side.

Driver License OCR
SOLUTION

Insurance Customer Intake with Driver License PDF417

Use PDF417 and AAMVA parsing for insurance intake. Pre-fill document_number, address, date_of_birth, handle unreadable barcodes, and keep API credentials server-side.

Driver License OCR
SOLUTION

International Visitor Car Rental License OCR

How car rental companies serving tourists can capture driver licence data with OCR for compliance workflows, with confirmation steps and clear limits on what OCR does.

Driver License OCR
SOLUTION

Italian Driving Licence (Patente di Guida) OCR API

Extract the licence number, cognome and nome, date and place of birth, issue and expiry dates, issuing office and categories from the Italian patente di guida as JSON with one API call. Try it free in the browser; new accounts get 100 free licence scans.

Driver License OCR
SOLUTION

Malaysian Lesen Memandu OCR API

Extract the IC number, identity fields, and vehicle classes from Malaysian driving licenses (Lesen Memandu). Test our edge-routed API with a free image upload.

Driver License OCR
SOLUTION

Liquor Store Age Verification with ID Barcode Scanning

Scan US driver licenses and state ID cards for liquor retailers. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.

Driver License OCR
SOLUTION

Philippine LTO Driver License OCR API

Accurately extract data from Philippine LTO driver's licenses. Parse restriction codes, conditions, and identity fields via our edge-routed API. Test for free.

Driver License OCR

Technical Comparisons & Integrations

Explore platform integrations and competitive analysis

From tutorial to production in 5 minutes.

You've seen the code. Now get your API key, grab your 200 free credits, and see it work with your own images. No credit card required.

Instant Access Cancel Anytime No Credit Card