If you are building an app that works with passports, whether for customer sign-up, hotel check-in or travel bookings, you will soon come across a document called ICAO Doc 9303. It is the rulebook that every passport in the world follows. Knowing what it says will save your team time, rework and a lot of frustration.
This guide explains ICAO 9303 in plain language: what it is, what it asks for, and what it means for anyone building passport reading into a product. If you want to go deeper on checking the chip inside a passport, our e-passport verification guide is the next step.
What Is ICAO 9303?
ICAO stands for the International Civil Aviation Organization, an agency of the United Nations. Among its many jobs, it sets the rules for how passports and other travel documents should be made. Those rules are written down in ICAO 9303, also called ICAO Doc 9303.
The idea is simple. A passport issued in Brazil should be readable by an airline desk in Japan and a hotel in Spain. For that to work, every country has to follow the same pattern for the size, layout and information on the document. ICAO Doc 9303 is that shared pattern.
The document is long and is split into several parts. Some parts cover the look of the passport, some cover the printed lines of code, and others cover the small chip that many modern passports contain. You do not need to memorise it. You just need to understand the main ideas, and they are covered below.
Why It Matters to Developers
Without a standard, you would need to write separate reading rules for every country. With it, one well-built solution can read passports from nearly anywhere. That is why ICAO 9303 matters for developers: it is what makes passport reading predictable.
Teams that ignore the standard often build something that works for a few countries and then breaks on others. They end up fixing odd cases for months. Teams that follow it get a product that works more reliably from the start.
It also helps when choosing a tool. A good Passport SDK already follows the standard, so you get that reliability without building everything yourself.
The Passport Format: What the Standard Says
The standard describes the passport format in great detail. It fixes the size of the booklet, where the holder photo goes, where the printed details sit and what appears at the bottom of the page. Because every country follows the same layout, software can find the right information quickly.
There are three document sizes:
- Passport booklet: the familiar small book. This is the one you will see most often.
- Card-size ID: the credit-card style document used as a national ID in many countries.
- Mid-size card: a less common size that sits between the other two.
Each size has its own line lengths at the bottom of the page. A smart reader works out which kind of document it is looking at instead of assuming it is always a passport booklet. That small step keeps your product ready for ID cards later.
The Two Lines at the Bottom of the Page
Flip open any passport and you will see two lines of letters, numbers and arrow-like symbols at the bottom of the photo page. This is called the machine readable zone, or MRZ. It holds the key details in a format that computers can read easily, such as the holder name, passport number, nationality, date of birth and expiry date.
The standard is strict about how these lines look. They use one specific font and a very small set of characters. This is deliberate. A narrow set of shapes is much easier for a computer to tell apart, so mistakes are rare.
The lines also include small built-in safety numbers. They work like a spell-checker for numbers. If one character is read wrongly, the safety number no longer fits, and the software knows something is off. This is one of the most useful features for anyone building passport reading, because it lets your product catch errors on its own.
Passport OCR Technology and the Standard
OCR means turning a picture of text into text a computer can use. Passport OCR technology works so well because ICAO 9303 makes the job easy. The font is known, the layout is known and the position of the lines is known. A good system can find the lines, read them and then use the safety numbers to double-check its own work.
If you are planning a Passport OCR API, the standard gives helpful hints about what a good answer should include:
- The details read from the passport, such as name, nationality, birth date and expiry date.
- The original lines as they were read, so you can check them again later.
- A clear yes or no on whether the safety numbers matched.
- The type of document that was detected.
- A score showing how confident the system is in the photo it was given.
Sending back the original lines along with the neat details makes problems much easier to track down. It also lets other systems apply their own checks.
The Chip Inside Modern Passports
Most passports issued today are e-passports. Look for a small camera-like symbol on the cover. Inside is a tiny chip that stores the same details as the printed page, plus the holder photo.
ICAO Doc 9303 also sets the rules for this chip. It decides how the information is organised, how it is protected and how a reader can confirm it is genuine. A few ideas are worth knowing:
- Organised sections: the chip stores information in numbered sections, such as personal details, the holder photo and security information. Not every country fills in every section, so your product should cope with gaps.
- A lock on the chip: the chip will not hand over its data to just anyone. The reader first uses details from the two lines at the bottom of the page to unlock it. This is why reading those lines is usually the first step.
- A digital seal: the issuing country signs the data when the passport is made. A reader can check that seal to confirm the information has not been changed.
- Proof it is not a copy: extra checks let the chip show that it is the original and not a clone.
Checking the digital seal is the strongest way to confirm a passport is real. It needs a trusted list of country certificates, which is something a mature SDK usually looks after for you.
How It All Fits Together
A typical passport check follows a simple path:
- Take a clear photo of the passport photo page.
- Read the two lines at the bottom and check that the safety numbers match.
- Use those details to unlock the chip, if the phone and passport support it.
- Read the chip and confirm the digital seal.
- Compare the chip data with the printed data and, if needed, match the passport photo to a live selfie.
Notice that the two lines at the bottom do two jobs. They give you the person details, and they open the chip. That is why a clean, accurate read at the start matters so much. To see how this speeds up real sign-up journeys, read how an MRZ-enabled passport eases the onboarding process.
Testing Your Passport Reading
Test with more than perfect samples. Real passports are creased, shiny, tilted and photographed in poor light. A product that works on clean examples can still struggle with a worn passport under a dim lamp, so include messy photos in your testing.
Test the failures too. Try passports with a wrong character, a missing line or an odd length, and make sure your product reports a clear error instead of returning half-correct information.
Common Mistakes to Avoid
- Assuming every document is a passport booklet. ID cards and other sizes will turn up eventually.
- Skipping the safety numbers. They are the cheapest and strongest check you have.
- Expecting names to match exactly. The name in the two lines can be shortened or spelled differently from the printed name.
- Trusting the first read blindly. The letter O and the number 0 can look alike, as can I and 1. Use what you know about each field to correct them.
- Forgetting about expiry. A passport that reads perfectly may still be out of date.
- Ignoring the chip. When the chip is available, it gives far more confidence than the printed page alone.
A Simple Checklist
- Recognise all three document sizes.
- Accept only the characters the standard allows in the two lines.
- Check every safety number.
- Return the original lines along with the details read.
- Support chip reading where phones and passports allow it.
- Confirm the digital seal against trusted country certificates.
- Keep only the personal data you really need, and protect it carefully.
Conclusion
ICAO Doc 9303 is the common language of passports. It makes the page layout predictable, it makes reading the printed lines reliable, and it makes checking the chip possible. Once you understand those three ideas, you can build passport reading that works across countries and holds up against fraud.
You do not have to build all of this yourself. A mature Passport SDK handles document types, line checking and chip reading for you, so your team can focus on the product. To keep learning, start with our e-passport verification guide.