Standards/iata-2-of-5
IATA 2 of 5
Overview
IATA 2 of 5 (also Airline 2 of 5, Computer Identics 2 of 5, 2 of 5 IATA; Honeywell calls it Straight 2 of 5 IATA (two-bar start/stop) and Airline Code 5) is a numeric-only, discrete, two-width linear barcode in the "2 of 5" family 1234. Microsoft's point-of-service API names it "the 2 of 5 International Air Transportation Association (IATA) barcode symbology" 5. Each digit is five bars, two wide and three narrow, with all spaces narrow, so only the bars carry data 67.
It is the same digit encoding as Industrial 2 of 5 with shorter start and stop characters: a start of two narrow bars and a stop of one wide and one narrow bar 178. Vendor pages tie it to the processing of air cargo 191011. No IATA publication that defines or even names the symbology was found; its definition today lives in vendor and open-source encoder documentation.
History
Wikipedia states that "IATA 2 of 5 was invented in 1974 by Computer Identics Corp." and that the related Industrial 2 of 5 was invented in 1971 by Identicon Corp. and Computer Identics Corp. 1. The patents Wikipedia cites for those dates do not describe a 2-of-5 code. US 3,882,464, filed 4 April 1974 by Stanley F. Zamkow for Computer Identics Corporation and granted 6 May 1975, is a "size ratio label reading system" in which each cell holds one black and one white mark, wide marks being twice the width of narrow ones 12. US 3,701,097, filed 20 January 1971 by Gerald Wolff for Identicon Corporation, decodes binary bars in which a wide bar is four times the narrow width 13. They show that both companies worked on width-coded bar labels in 1971–1974, not who designed IATA 2 of 5 or when. Seagull Scientific's barcode guide instead says Standard 2 of 5, which it equates with IATA 2 of 5, "was first developed in 1968" 9.
Wikipedia says the code was used by the International Air Transport Association to manage air cargo and "had fixed 17 digits length with 16 valuable package identification digit and 17-th check digit" 1. Seagull's transportation-industry page says that "The Air Transport Association (ATA) uses the Spec 2000 standard to define IATA 2 of 5" 14. ATA (now Airlines for America) is a US trade body, not IATA, and the Spec 2000 text was not available to check. No public IATA resolution or recommended practice naming the symbology was found, and no source gives a date when air cargo adopted it or stopped using it.
Technical specification
All structural detail below is read from the encoder source code of BWIPP, Zint and OkapiBarcode, which agree element for element 7815.
| Parameter | Value |
|---|---|
| Family | Linear, discrete, two-width, "2 of 5" 1 |
| Character set | Digits 0–9 only 67 |
| Length | Variable 110; Zint accepts up to 80 digits 6; Honeywell scanners accept 1–80, default window 13–15 16 |
| Digit character | 5 bars (2 wide, 3 narrow) interleaved with 5 narrow spaces = 10 elements, 14 modules 78 |
| Wide : narrow | 3 : 1 in BWIPP and Zint 78 |
| Start | narrow bar, narrow space, narrow bar, narrow space (1111, 4 modules) 7815 |
| Stop | wide bar, narrow space, narrow bar (311, 5 modules) 7815 |
| Check digit | Optional in BWIPP, Zint, Scandit and Seagull; required by Accusoft and Neodynamic (see below) |
| Symbol width | 4 + 14·n + 5 modules for n digits (including any check digit) 8 |
Digit patterns. The five bars of each digit carry a 2-of-5 code; every space is narrow, and the trailing narrow space of each digit separates it from the next 78. In bar widths (N narrow, W wide):
| Digit | Bars | Digit | Bars |
|---|---|---|---|
| 0 | N N W W N | 5 | W N W N N |
| 1 | W N N N W | 6 | N W W N N |
| 2 | N W N N W | 7 | N N N W W |
| 3 | W W N N N | 8 | W N N W N |
| 4 | N N W N W | 9 | N W N W N |
The table is the shared C25IndustTable / industrial digit table, read as every second element 78.
Start and stop. The only difference from Industrial 2 of 5 is the framing. Industrial uses a three-bar start (wide, wide, narrow bars: 313111) and a three-bar stop (wide, narrow, wide: 31113); IATA uses the two-bar 1111 and 311 178. Wikipedia's table gives the same IATA patterns as "NSN" and "WSN" 1, and Honeywell's name for the symbology, "two-bar start/stop", reflects it 3.
Check digit. BWIPP's includecheck and Zint's --vers=1 add a modulo-10 digit computed like the GS1 check digit: weight 3 on the rightmost data digit, then alternating 1 and 3 leftwards, check = (10 − sum mod 10) mod 10 78. BWIPP's validatecheck treats the last input digit as a check digit and rejects wrong data 2; Zint's --vers=2 adds the digit but hides it from the human-readable text 6. Seagull describes an optional mod-10 check digit 9, and Scandit's SDK verifies none by default but can enforce an optional "mod1010" checksum 10. Accusoft's Barcode Xpress says IATA 2 of 5 "requires a checksum" 4, and Neodynamic says the symbology requires a mandatory check digit 11. OkapiBarcode's IATA mode adds no check digit 15. Without a published specification, whether the check digit is mandatory cannot be settled; it depends on the application.
Worked example. The playground sample 01234567 has weighted sum 7·3 + 6 + 5·3 + 4 + 3·3 + 2 + 1·3 + 0 = 60, so the check digit is 0. bwip-js 4.11.0 renders 01234567 (without check digit) as 4 + 8·14 + 5 = 121 modules 177.
Use cases
- Air cargo. Every vendor source that gives a use names air cargo: Wikipedia ("for managing air cargo") 1, Scandit ("Used by International Air Transport Association (IATA) for managing air cargo") 10, Seagull ("for the processing of airline cargo"; "commonly used" for airline cargo) 914 and Neodynamic 11. None of them names an airline, airport or current cargo label that uses it.
- Baggage (disputed). Zint describes the code as "Used by the International Air Transport Agency (IATA) for baggage handling" 6, and a 2024 Scanbot blog post says luggage tags "feature an IATA 2 of 5 Barcode" carrying the ten-digit licence plate 20. Wikipedia's bag-tag article says instead that "Current bag tags include a bar code using the Interleaved 2 of 5 symbology", without a citation 19. IATA's own 2024 white paper on baggage licence plate numbers describes the ten-digit number (leading digit, three-digit bag tag issuer code, six-digit serial) under Resolutions 740, 751 and 769, but does not name a barcode symbology 18. Resolution 740 itself is in IATA's paid Passenger Services Conference Resolutions Manual and could not be checked, so this page does not state which symbology bag tags use.
- Airline tickets. No source fetched for this page ties IATA 2 of 5 to ticketing; the claim is dropped.
- Scanner configuration. Honeywell's Voyager 1250g manual lists "Straight 2 of 5 IATA On/Off" with Off marked as the default 3, and Windows exposes it as
BarcodeSymbologies.TfIatafor point-of-service scanners 5.
Implementations
Encoders.
- BWIPP / bwip-js (PostScript / JavaScript). Encoder
iata2of5, a thin wrapper that callscode2of5withversion=iata177. Options:includecheck,validatecheck,includecheckintext2. Thecode2of5routine rejects empty input, non-digits and input longer than 500 characters 7. bwip-js, which renders the playground, listsiata2of5 • IATA 2 of 5among its symbologies 21. - Zint (C).
BARCODE_C25IATA(symbology 4); up to 80 digits;--vers=1adds a visible and--vers=2a hidden check digit 68. - OkapiBarcode (Java).
Code2Of5modeIATA, documented as encoding "any length numeric input (digits 0-9)" without a check digit 15. - Commercial SDKs. Accusoft Barcode Xpress ("Airline 2 of 5") 4 and Neodynamic Barcode Professional 11 generate it; Scandit's scanning SDK reads it 10.
Decoders. No open-source decoder found. The ZXing (Java) format list has Code 39, Code 93, Code 128, Codabar and ITF but no non-interleaved 2 of 5 22; zxing-cpp's "Supported Formats" table likewise stops at ITF among the 2-of-5 codes 23; ZBar reads Interleaved 2 of 5 but not the discrete variants 24. Reading IATA 2 of 5 therefore needs a hardware scanner (Honeywell lists it 3) or a commercial SDK such as Scandit 10.
Comparison
| IATA 2 of 5 | Industrial 2 of 5 (Standard 2 of 5) | Data Logic 2 of 5 | Matrix 2 of 5 (Matrix 2 of 5) | Interleaved 2 of 5 (ITF) | |
|---|---|---|---|---|---|
| Digit table | Industrial (bars only) | Industrial (bars only) | Matrix (bars and spaces) | Matrix (bars and spaces) | Pairs: one digit in bars, one in spaces |
| Start / stop | 1111 / 311 |
313111 / 31113 |
1111 / 311 |
BWIPP 311111 / 31111; Zint 411111 / 41111 |
— |
| Modules per digit | 14 | 14 | 10 | 10 | 9 (18 per pair) |
| Source | 78 | 78 | 78 | 78 | 6 (module count computed) |
- vs. Industrial 2 of 5. Same digits, different framing; the IATA start and stop are 10 modules shorter in total 18. A scanner set for one does not read the other unless both are enabled, which is why Honeywell lists them as separate symbologies 316.
- vs. Data Logic 2 of 5. Zint and BWIPP give Data Logic exactly the IATA start and stop, but with the denser matrix digit table in which the spaces also carry data 78.
- vs. Interleaved 2 of 5. ITF interleaves pairs of digits across bars and spaces and is standardised as ISO/IEC 16390 6; it is about a third narrower per digit than IATA 2 of 5 (9 vs 14 modules at 3:1) and has open decoders (ZXing, zxing-cpp, ZBar) 222324. Prefer ITF or Code 128 for any new application; use IATA 2 of 5 only to match an existing reader or label.
Fun facts
- One name, several symbols. Zint warns that "the names given to these standards alter from one source to another" 6. Seagull titles its page "Standard 2 of 5 (IATA 2 of 5)" 9, while Zint keeps Standard (Matrix), IATA and Industrial as three different symbols 6 and BWIPP lists "Industrial 2 of 5 (Standard 2 of 5)" as a separate variant from IATA 2. A label printed as "Standard 2 of 5" in one program can therefore be unreadable to a scanner configured from another vendor's manual.
- Agency or Association. Both Zint and OkapiBarcode expand IATA as "International Air Transport Agency" 615; the body is the International Air Transport Association 18.
Status
Legacy and niche. Open-source encoders still carry it (BWIPP's wiki page was last edited on 17 October 2026; Zint 2.16 documents it) 26, Honeywell's scanner manual lists it, off by default 3, and Scandit's SDK supports it 10. No open decoder supports it 222324, and no current IATA document found names it. Wikipedia says only that "Some readers currently still support this symbology" 1. No successor is defined.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal