BCBP Format: The IATA Bar Coded Boarding Pass Explained

The Bar Coded Boarding Pass (BCBP) standard, defined in IATA Resolution 792, specifies the text encoded in the 2D barcode on every boarding pass. This guide covers each field, its position and length, the code values, and the details that commonly trip up parsers.

What is BCBP?

IATA introduced the BCBP standard to replace magnetic-stripe boarding passes with a 2D barcode that any airline, airport or kiosk can read. The barcode holds a compact, fixed-width text string with the passenger's name, booking reference, flight and seat, so gate readers, security lanes, lounges and self-service kiosks can process a passenger without a connection to the issuing airline.

The same string can be rendered as different barcode types (symbologies):

  • PDF417: the wide, stacked barcode used on printed and home-printed boarding passes.
  • Aztec, QR Code and Data Matrix: square barcodes used for mobile boarding passes on phones and in wallet apps.

You can try both directions with the BCBP generator, which encodes a boarding pass as Aztec, PDF417 or QR, and the BCBP decoder, which scans a barcode and breaks it into the fields described below.

Structure of a BCBP string

A BCBP string is made of these sections, in order:

  1. Mandatory unique (23 characters, once): format code, number of legs, passenger name, e-ticket indicator.
  2. Mandatory repeated (37 characters, once per leg): booking reference, airports, carrier, flight, date, cabin, seat, sequence number, passenger status, and the size of the leg's variable section.
  3. Conditional unique (first leg only, optional): version number and passenger-level data such as passenger type, check-in source, issue date and baggage tags.
  4. Conditional repeated (per leg, optional): ticket number, security and document flags, marketing carrier, frequent flyer number, baggage allowance.
  5. Airline individual use (per leg, optional): free-form data defined by each airline.
  6. Security data (optional): a digital signature, starting with ^.

For multi-leg passes, the first leg's mandatory and variable data is followed by the second leg's, and so on. Only the first leg carries the conditional unique section.

Annotated example

The shortest valid BCBP string: one leg, no conditional data, no signature. It is exactly 60 characters.

MFormat1LegsSMITH/JOHN··········NameEE-ticketABC123·PNRJFKFromLAXToAA·Carrier1234·Flight032Date (1 Feb)YCabin014ASeat0042·Seq1Status00Var size

M1SMITH/JOHN EABC123 JFKLAXAA 1234 032Y014A0042 100

Open this example in the BCBP decoder →

Mandatory fields

Positions are 1-based and fixed for the first leg. Each additional leg repeats positions 24–60 after the previous leg's variable section.

PosFieldLenNotes
1Format code1Always M.
2Number of legs encoded1Number of flight legs encoded in this barcode, typically 1–4.
3–22Passenger name20LASTNAME/FIRSTNAME, left-aligned and space-padded or truncated to 20 characters. Some airlines append a title, e.g. JOHNMR.
23Electronic ticket indicator1E for an electronic ticket.
24–30Booking reference (PNR)7Booking reference, left-aligned, space-padded to 7.
31–33From airport3IATA airport code of departure.
34–36To airport3IATA airport code of arrival.
37–39Operating carrier3IATA airline designator of the operating carrier, space-padded to 3.
40–44Flight number5Up to 4 digits, zero-padded, plus an optional operational suffix letter.
45–47Date of flight (Julian)3Day of the year (001–366). The year is not encoded.
48Compartment code1Cabin or booking class letter, e.g. F, C, J, W, Y.
49–52Seat number43-digit row plus seat letter, e.g. 014A.
53–57Check-in sequence number5Check-in sequence number: 4 digits plus an optional letter.
58Passenger status1See the passenger status table below.
59–60Size of variable section (hex)2Hexadecimal length of this leg's conditional and airline-use data. 00 if none.

Conditional fields

Conditional data follows the leg's mandatory section. In the first leg it starts with >, a 1-character version number, and a 2-character hex size for the unique section. Each leg's repeated section starts with its own 2-character hex size.

The fields always appear in the order below, but an airline may stop early: if a section's size covers only the first few fields, the rest are absent. Always use the size fields rather than assuming a fixed length.

Conditional unique (first leg only)

FieldLenNotes
Passenger description1Adult, child, infant, etc. See table below.
Source of check-in1Where check-in happened: web, kiosk, mobile, agent…
Source of boarding pass issuance1Where the boarding pass was issued, using the same codes.
Date of issue of boarding pass4Last digit of the year followed by the 3-digit day of year, e.g. 6225 = 13 Aug 2026.
Document type1B for boarding pass, I for itinerary receipt.
Airline designator of boarding pass issuer3Airline that issued the boarding pass.
Baggage tag licence plate number(s)13Baggage tag licence plate number(s): 10-digit tag number plus 3-digit count of consecutive tags.
1st non-consecutive baggage tag13Additional non-consecutive baggage tags, same format.
2nd non-consecutive baggage tag13Additional non-consecutive baggage tags, same format.

Conditional repeated (each leg)

FieldLenNotes
Airline numeric code33-digit airline accounting code, the first part of the ticket number.
Document form / serial number10Remaining 10 digits of the ticket number.
Selectee indicator1Security screening indicator. See table below.
International documentation verification1Whether travel documents need checking for this leg.
Marketing carrier designator3Airline that sold the ticket, if different from the operator.
Frequent flyer airline designator3Airline of the frequent flyer programme.
Frequent flyer number16Frequent flyer number, left-aligned, space-padded to 16.
ID/AD indicator1Industry discount (staff travel) indicator.
Free baggage allowance3Checked baggage allowance, e.g. 2PC (pieces), 20K (kg) or 44L (lb).
Fast track1Y if the passenger is entitled to fast-track security.

Anything left in a leg's variable section after the repeated fields is airline individual use data.

Security data

The optional security section lets airlines digitally sign the boarding pass so forged or altered barcodes can be detected:

FieldLenNotes
Beginning of security data1Always ^.
Type of security data1Identifies the signature scheme.
Length of security data2Hexadecimal length of the data that follows.
Security datavarThe signature over the preceding BCBP data.

Readers verify the signature with the issuing airline's public key. Airline keys are distributed to authorised parties, not published, so third-party tools can decode the data but cannot normally verify an airline's signature.

Code tables

Passenger status

Mandatory, 1 character

0Ticket issuance / passenger not checked in
1Ticket issuance / passenger checked in
2Baggage checked / passenger not checked in
3Baggage checked / passenger checked in
4Passenger passed security check
5Passenger passed gate exit (coupon used)
6Transit
7Standby
8Boarding data revalidation done
9Original boarding line used at time of ticket issuance
AUp- or downgrading required at close out

Passenger description

Conditional unique

0Adult
1Male
2Female
3Child
4Infant
5No passenger (cabin baggage)
6Adult traveling with infant
7Unaccompanied minor

Source of check-in / boarding pass issuance

Conditional unique

WWeb
KAirport kiosk
RRemote or off-site kiosk
MMobile device
OAirport agent
TTown agent
VThird-party vendor

Document type

Conditional unique

BBoarding pass
IItinerary receipt

Selectee indicator

Conditional repeated

0Not selectee
1Selectee (additional screening)
3TSA PreCheck (as used by US carriers)

International documentation verification

Conditional repeated

0Verification not required
1Verification required
2Verification performed

Common parsing pitfalls

  • Trimming too early. Spaces are padding inside fixed-width fields. Slice by position first, then trim each value. Trimming the whole string breaks every offset after the name.
  • Assuming a fixed total length. Use the hex size fields to find where each leg's variable section ends; conditional sections are often truncated.
  • Reading sizes as decimal. All size fields are hexadecimal: 4D means 77 characters, not an error.
  • Inventing a year. The flight date has no year. Use the issue date if present; otherwise pick the year closest to today.
  • Treating the seat as a number. Seats are 3 digits plus a letter (014A). Strip leading zeros only for display.
  • Losing the flight number suffix. The 5th character of the flight number field can be an operational suffix letter.
  • Mishandling the caret. The security section starts at ^ after all legs; sign or verify only the data before it.

Frequently asked questions

What does BCBP stand for?

Bar Coded Boarding Pass. It is the IATA standard, defined in Resolution 792, for the data encoded in the 2D barcode printed on paper boarding passes or shown on mobile boarding passes.

Which barcode types does the BCBP standard use?

PDF417 for printed boarding passes, and Aztec, QR Code or Data Matrix for mobile boarding passes. The encoded BCBP text is the same whichever symbology is used.

How long is a BCBP string?

A single-leg boarding pass with no conditional data is exactly 60 characters. Each extra leg adds 37 characters plus its conditional data, and an optional security signature adds more.

Why is the year missing from the flight date?

The flight date is stored as a 3-digit day of the year to save space. Readers infer the year from context, such as the boarding pass issue date in the conditional section, which includes the last digit of the year.

How do I know where the conditional section ends?

Every leg ends with a 2-character hexadecimal size field giving the length of its variable section, and the conditional unique and repeated sections each start with their own hex size. Fields beyond those lengths are simply not present.

What is the security data at the end?

An optional digital signature, introduced so airlines can detect forged or altered boarding passes. It starts with ^, then a 1-character type, a 2-character hex length and the signature data. Airlines verify it with their own keys.