What's in a boarding pass barcode
Almost every airline prints the same kind of barcode, set by IATA's Bar Coded Boarding Pass standard (BCBP). On paper it's usually a PDF417 (the wide, stripy one); on phones it's often an Aztec or QR code. Inside is a line of text, in fixed positions:
- Your name, as SURNAME/GIVEN NAMES, cut to 20 characters.
- The booking reference (PNR) for each flight.
- The flight: from and to airports, airline, flight number, and the date as a day of the year.
- Cabin, seat and check-in sequence number.
- Often, in an optional part: the e-ticket number, frequent flyer number, how you checked in, and screening flags.
Why it matters who sees it
The name and booking reference together are what most airline websites ask for to open a booking. Anyone who can read the barcode in a photo can often see the booking, change seats, add a frequent flyer number, or worse. That's why a boarding pass photo on social media is a gift to the wrong people, even with the printed reference covered up: the barcode still holds it. More in should you post your boarding pass.
Why the date is a number
The flight date is stored as the day of the year (001 is 1 January, 365 is 31 December), with no year. The decoder shows the nearest matching date. In a leap year, everything after 28 February is a day later.
How to read a barcode without uploading it
In Chrome on Android and on most computers, "Read a photo" reads the barcode from a photo or screenshot, on your device. Safari can't do that yet: use any barcode scanner app that shows the raw text, and paste it here. Avoid websites that ask you to upload the image.