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:
- Mandatory unique (23 characters, once): format code, number of legs, passenger name, e-ticket indicator.
- 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.
- Conditional unique (first leg only, optional): version number and passenger-level data such as passenger type, check-in source, issue date and baggage tags.
- Conditional repeated (per leg, optional): ticket number, security and document flags, marketing carrier, frequent flyer number, baggage allowance.
- Airline individual use (per leg, optional): free-form data defined by each airline.
- 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 sizeM1SMITH/JOHN EABC123 JFKLAXAA 1234 032Y014A0042 100
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.
| Pos | Field | Len | Notes |
|---|---|---|---|
| 1 | Format code | 1 | Always M. |
| 2 | Number of legs encoded | 1 | Number of flight legs encoded in this barcode, typically 1–4. |
| 3–22 | Passenger name | 20 | LASTNAME/FIRSTNAME, left-aligned and space-padded or truncated to 20 characters. Some airlines append a title, e.g. JOHNMR. |
| 23 | Electronic ticket indicator | 1 | E for an electronic ticket. |
| 24–30 | Booking reference (PNR) | 7 | Booking reference, left-aligned, space-padded to 7. |
| 31–33 | From airport | 3 | IATA airport code of departure. |
| 34–36 | To airport | 3 | IATA airport code of arrival. |
| 37–39 | Operating carrier | 3 | IATA airline designator of the operating carrier, space-padded to 3. |
| 40–44 | Flight number | 5 | Up to 4 digits, zero-padded, plus an optional operational suffix letter. |
| 45–47 | Date of flight (Julian) | 3 | Day of the year (001–366). The year is not encoded. |
| 48 | Compartment code | 1 | Cabin or booking class letter, e.g. F, C, J, W, Y. |
| 49–52 | Seat number | 4 | 3-digit row plus seat letter, e.g. 014A. |
| 53–57 | Check-in sequence number | 5 | Check-in sequence number: 4 digits plus an optional letter. |
| 58 | Passenger status | 1 | See the passenger status table below. |
| 59–60 | Size of variable section (hex) | 2 | Hexadecimal 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)
| Field | Len | Notes |
|---|---|---|
| Passenger description | 1 | Adult, child, infant, etc. See table below. |
| Source of check-in | 1 | Where check-in happened: web, kiosk, mobile, agent… |
| Source of boarding pass issuance | 1 | Where the boarding pass was issued, using the same codes. |
| Date of issue of boarding pass | 4 | Last digit of the year followed by the 3-digit day of year, e.g. 6225 = 13 Aug 2026. |
| Document type | 1 | B for boarding pass, I for itinerary receipt. |
| Airline designator of boarding pass issuer | 3 | Airline that issued the boarding pass. |
| Baggage tag licence plate number(s) | 13 | Baggage tag licence plate number(s): 10-digit tag number plus 3-digit count of consecutive tags. |
| 1st non-consecutive baggage tag | 13 | Additional non-consecutive baggage tags, same format. |
| 2nd non-consecutive baggage tag | 13 | Additional non-consecutive baggage tags, same format. |
Conditional repeated (each leg)
| Field | Len | Notes |
|---|---|---|
| Airline numeric code | 3 | 3-digit airline accounting code, the first part of the ticket number. |
| Document form / serial number | 10 | Remaining 10 digits of the ticket number. |
| Selectee indicator | 1 | Security screening indicator. See table below. |
| International documentation verification | 1 | Whether travel documents need checking for this leg. |
| Marketing carrier designator | 3 | Airline that sold the ticket, if different from the operator. |
| Frequent flyer airline designator | 3 | Airline of the frequent flyer programme. |
| Frequent flyer number | 16 | Frequent flyer number, left-aligned, space-padded to 16. |
| ID/AD indicator | 1 | Industry discount (staff travel) indicator. |
| Free baggage allowance | 3 | Checked baggage allowance, e.g. 2PC (pieces), 20K (kg) or 44L (lb). |
| Fast track | 1 | Y 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:
| Field | Len | Notes |
|---|---|---|
| Beginning of security data | 1 | Always ^. |
| Type of security data | 1 | Identifies the signature scheme. |
| Length of security data | 2 | Hexadecimal length of the data that follows. |
| Security data | var | The 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
0 | Ticket issuance / passenger not checked in |
1 | Ticket issuance / passenger checked in |
2 | Baggage checked / passenger not checked in |
3 | Baggage checked / passenger checked in |
4 | Passenger passed security check |
5 | Passenger passed gate exit (coupon used) |
6 | Transit |
7 | Standby |
8 | Boarding data revalidation done |
9 | Original boarding line used at time of ticket issuance |
A | Up- or downgrading required at close out |
Passenger description
Conditional unique
0 | Adult |
1 | Male |
2 | Female |
3 | Child |
4 | Infant |
5 | No passenger (cabin baggage) |
6 | Adult traveling with infant |
7 | Unaccompanied minor |
Source of check-in / boarding pass issuance
Conditional unique
W | Web |
K | Airport kiosk |
R | Remote or off-site kiosk |
M | Mobile device |
O | Airport agent |
T | Town agent |
V | Third-party vendor |
Document type
Conditional unique
B | Boarding pass |
I | Itinerary receipt |
Selectee indicator
Conditional repeated
0 | Not selectee |
1 | Selectee (additional screening) |
3 | TSA PreCheck (as used by US carriers) |
International documentation verification
Conditional repeated
0 | Verification not required |
1 | Verification required |
2 | Verification 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:
4Dmeans 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.