Passport and ID Scanner
Read the machine-readable zone of a passport or ID card, check each field against its check digit and download a report, CSV, Excel or JSON.
Drop your file here or click to browse
Your result will appear here once processing is complete.
This tool reads the machine-readable zone (MRZ), the two or three lines of standardized text at the bottom of a passport or ID card, and checks every field that carries a check digit. It does not guess from the whole page. It reads the part built to be read by machines, tries the bottom of the page again at a higher zoom when the first read fails, and tells you which fields passed. Download a report, a CSV row, Excel or JSON, with dates in ISO form and a note when the document has expired.
How to Read the MRZ of a Passport or ID
- 1
Photograph the document
Take a sharp, well-lit photo of the passport page or ID card with the MRZ lines fully in the frame, or add a scan or a PDF.
- 2
Choose the result
Automatic looks at the whole page and then at the bottom of the page. Pick a report, CSV, Excel or JSON.
- 3
Review the checks
Open the result. Each field with a check digit is marked valid or failed. Names and nationality have no check digit, so compare them with the document. Your files are deleted from our servers within 30 minutes.
Why Use the Passport and ID Scanner
Checked, Not Just Read
Key fields are recalculated against their own check digits.
Clear About Doubt
Fields it cannot verify are marked as unverified.
Nothing to Install
Everything runs in your browser, with no software or extension to add.
Works on Any Device
Computer, tablet or phone: a web browser is all you need.
Files Handled Securely
Processed over HTTPS and automatically deleted from our servers within 30 minutes.
Free to Use
No watermark. A daily limit applies to free use.
What the MRZ Is
The MRZ follows the ICAO 9303 standard used by passports and national ID cards worldwide. It always uses Latin letters, even on a document printed in Arabic, Chinese or Russian script, and names are transliterated into it by the issuing country, not by any scanning tool. A passport has two lines. A typical ID card has three.
The MRZ encodes the document type, issuing country, name, document number, nationality, date of birth, sex and expiry date. Three of those values carry a check digit: the document number, the date of birth and the expiry date.
How the Check Digits Work
For each protected field, the tool recalculates the check digit from the value it read and compares it with the digit printed in the MRZ. A match confirms the field. A mismatch means the text was probably misread, and the tool says so instead of handing you a wrong value.
The name and nationality have no check digit in the standard, so they are listed as read but not independently verified. If the name part is too damaged or too blurred to parse, the tool tells you directly instead of presenting a guess as a fact.
What This Tool Does Not Do
It does not prove a document is genuine, check it against a security database or a watchlist, or detect tampering. It reads and checks the MRZ, nothing more. It also does not store your data once the 30-minute window ends.
Common Uses
Any time you need passport or ID fields without retyping them.
- Manual identity checksPull out and verify the key fields while reviewing a document.
- Travel and visa formsGet the passport number, nationality and expiry date without retyping.
- Onboarding paperworkExtract ID data as part of a checklist.
- A personal recordKeep a digital record of your own document's details.
Related File Tools
Tips for Best Results
- Photograph the page flat and straight on, with every MRZ line fully in the frame.
- Avoid glare from lamination and shadows across the bottom lines.
- Keep the MRZ sharp. It is small and dense, so move closer rather than zoom in afterwards.
- Try Bottom of the page only if the automatic read fails on a busy photo.
- Treat unverified fields, such as the name, as to be checked by eye.
- Use a private device for identity documents.
What You Get in the Result
The result lists the document type, issuing country, surname, given names, document number, nationality, date of birth, sex and expiry date. Dates appear as printed in the MRZ and as ISO dates (YYYY-MM-DD). The century of a birth date is worked out from today's date, so a birth year later than this year is read as 19xx. A line tells you when the document has expired.
If a check digit fails, the tool first tries swapping letters and digits that character recognition often confuses, such as O and 0, and reports any correction it made. Anything it could not fix stays flagged for you to verify. Country codes and names are never left with digits in them.
Read Several Documents at Once
Switch the setting to All documents in one table, add up to 30 photos and get one Excel or CSV file with a row for each document. Each row says whether all three check digits passed. A photo with no readable MRZ gets a row with a note. These are identity documents, so use a private device and keep the file somewhere safe.
Guides and How-Tos
Step-by-step articles that go deeper than this page.
Passport and ID Scanner Frequently Asked Questions
What is the MRZ?
The machine-readable zone is the standardized band of text at the bottom of a passport or ID card, defined by the ICAO 9303 standard. It encodes the holder's name, document number, nationality, date of birth, sex and expiry date, and several fields are protected by check digits.
What does "verified by check digit" mean?
The standard includes a check digit for the document number, the date of birth and the expiry date. The tool recalculates that digit from the value it read and compares it with the one printed in the MRZ. If they match, the field is confirmed. If not, the tool tells you instead of passing the value on.
Does the tool read the whole document or only the MRZ?
It targets the MRZ, the standardized part that can be checked with check digits. For the fields that matter most, such as the document number, the dates and the document type, that is more reliable than general full-page text recognition.
Which documents does it work with?
Passports (two-line MRZ) and machine-readable ID cards (three-line MRZ) that follow ICAO 9303, which covers most recent passports and national ID cards worldwide. Documents without an MRZ, such as most driver's licenses, are not supported.
Are all fields verified?
No. The name and the nationality have no check digit in the standard, so they are shown as read, without independent verification. If the name part is too damaged to parse, the tool says so directly.
Which image formats can I upload?
JPG, JPEG, PNG, WebP, BMP, TIFF and GIF, and PDF. For a PDF, the first page is read.
Does it check that the document is genuine?
No. Reading and checking the MRZ is not the same as verifying a document against a security database. For identity verification with legal or compliance weight, use a dedicated verification service.
Is it safe to use with a real passport?
Files travel over an encrypted connection, are processed securely and are deleted automatically within 30 minutes. We never keep, share or reuse identity documents. Even so, treat any online tool that handles ID with the same care, and prefer a private or trusted device.
Is there a file size limit?
Yes, it depends on your plan: no account, a free account, or a paid plan. The current limits are listed on the Pricing page.
Do I need an account?
No. The tool works without signing in. Because it handles identity documents, use a private or trusted device whether you are signed in or not.
What if the MRZ is not found?
The tool looks at the whole page first and then at the bottom of the page at a higher zoom. If it still finds no MRZ, the result says so and can show the text it read. Straighten the photo, crop it to the bottom lines and make sure every line is in the frame.
Can I get a CSV or JSON instead of a report?
Yes. Choose CSV, Excel or JSON. The fields are named, dates are in ISO form and each check digit is marked valid or failed.
Can I read several documents at once?
Yes. Switch to All documents in one table and add up to 30 photos. You get one file with a row for each document and a note for any photo where no MRZ could be read.
About the Passport and ID Scanner
File Tools Online offers free tools in your browser for PDF, image, audio and video files. This scanner is one of its image tools.
It reads the standardized part of a document and checks it, which is more dependable than reading the whole page by eye.