ID card OCR: read both sides of a national identity card and get the data back
An identity card is harder to read than a passport: two sides, a three line MRZ (TD1 format) on the back when there is one, an address, a card number and a personal number that differ, and dozens of national designs. Koncile's ID card OCR takes both sides in one request and returns the fields, the MRZ lines and a fraud score from 0 to 100. What it does not do: prove that the person holding the card is its owner.
What the ID card OCR returns
| Field | Example | Where it is read |
|---|---|---|
| surname / given_names | MARTIN / CLAIRE ANNE | Front, compared with the MRZ when present |
| document_number | F1234567 | Front (and MRZ line 1 on TD1 cards) |
| personal_number | 123456789012 | Back or front depending on the country (not always present) |
| nationality / issuing_country | FRA / FRA | Front and MRZ |
| sex | F | Front and MRZ line 2 |
| date_of_birth | 1990-05-21 | Front and MRZ line 2, check digit recomputed |
| date_of_expiry | 2031-05-20 | Front and MRZ line 2, check digit recomputed |
| place_of_birth | Lyon | Front, when printed |
| address | 12 rue des Lilas, 69003 Lyon | Back, when printed |
| height / eye colour | 1,68 m | Printed on some cards only |
| mrz_line_1 / 2 / 3 | IDFRAMARTIN<<<<<<<<<<<<<<<<<<<<< … | Back, three lines of 30 characters (TD1) |
| confidence (per field) | 0.97 | Flagged for review when low |
Both sides in one request
Send the front and the back as two images, or a PDF with both, in the same call. Koncile identifies which side is which, reads each one, and merges the result into a single record. A card sent with the front only is read from the front, and the response says that the back is missing. For the API details, see the passport OCR API page: the request is the same, with the ID card template.
With or without an MRZ
Most national cards issued since the 2010s carry a three line MRZ on the back (the TD1 format of ICAO 9303, detailed in our guide to the ID card MRZ): the new French CNI, the German Personalausweis, the Italian CIE, the Spanish DNI, the Belgian eID and most European cards. Older cards, and cards from some countries, have no MRZ at all. Koncile reads both cases: with an MRZ, the printed fields are compared with it and the check digits are recomputed; without, the printed fields alone are read and the fraud controls rely on the file and the image.
What the three lines contain, and how they differ from a passport's two lines, is explained in MRZ OCR.
Controls on an ID card
- MRZ against printed fields: surname, document number, birth date and expiry date must match; a mismatch raises the score.
- Check digits: document number, birth date, expiry date and the composite check digit are recomputed on the MRZ.
- Expiry: the expiry date is checked against the day of analysis.
- File forensics on PDFs: metadata, producer, incremental saves, fonts foreign to the issuer's.
- Photo controls on scans and photos: retouching and AI generated areas detected by Koncile's own models (K-Detect).
- Score from 0 to 100 with its signals: 0 to 39, 40 to 79, 80 and above. A score is a signal to verify, not an accusation.
The limit, said plainly: a scan of a physical forgery made with care can pass the file controls, and a genuine card photographed under a lamp can get a middle score. Chip reading (the NFC chip of recent cards), face match and liveness are not part of the service.
Which cards
European national identity cards (France, Belgium, Germany, Italy, Spain, Netherlands, Portugal and the others), residence permits in the same TD1 format, and cards from other countries with or without an MRZ. Koncile does not depend on a per country template list: fields are read from the document. Non Latin scripts are read and transliterated when the MRZ gives the Latin form.
Where ID card OCR is used
- Customer onboarding in banks, lenders, brokers, fintechs and insurers, where KYC OCR reads the whole file: the card fills the customer record and only doubtful files reach an analyst.
- Claims and contracts: the card arrives with the IBAN and the proof of address; one tool reads the whole file.
- Employment, rental, hospitality, telecom: identity captured at a counter or in a form, expiry checked, data exported to the business system. At a front desk, the trade offs between a dedicated hotel ID scanner, a tablet and online check in are set out in our guide to the hotel ID scanner.
Pricing
20 free credits at signup, no card. Then from €199 per month for 1,000 credits (1 credit per page for an extraction, 2 per page for a fraud analysis; a two sided card is two pages). Prices on koncile.ai.
Frequently asked questions
01What is ID card OCR?
Software that reads a national identity card from a photo, a scan or a PDF and returns its content as named fields: names, document number, dates, nationality, address, plus the machine readable zone when the card has one. Koncile adds controls on top: check digits, consistency between the MRZ and the printed side, and a fraud score.
02Do I need to send both sides?
Send both when you can: the back carries the MRZ and often the address. Koncile reads a front alone and says that the back is missing.
03Does it read the French CNI?
Yes, both the old card and the new credit card sized CNI with its three line MRZ. Also the German, Italian, Spanish, Belgian, Dutch, Portuguese cards and residence permits in the same format.
04What about cards without an MRZ?
They are read from the printed fields. The MRZ controls do not apply; the file and image controls do.
05How accurate is it?
Koncile measures a recognition rate above 99 % on key identity fields on readable documents. Reliability drops with glare, blur or a cut MRZ; each value comes with a confidence, and the doubtful ones are flagged.
06Is ID card OCR the same as identity verification?
No. OCR reads the card and, with Koncile, controls the document. Identity verification also checks that the person is the holder, with face match and liveness, which Koncile does not do.
07Can I try it on my own card?
Yes, with the 20 free credits of a new Koncile account, for professional use. Documents are deleted after analysis.
Try ID card OCR on a real card
Create a Koncile account, upload the front and the back, and read the fields, the MRZ and the score within seconds.
Create a free Koncile accountTalk to an expert
20 free credits, no credit card. Documents are deleted after analysis.