Code 25, also called Code 2 of 5, takes its name from its encoding: each digit is drawn with five elements, two of them wide and three narrow. The first version, Industrial 2 of 5, dates from 1968. The variants differ in which elements carry the data.
- Industrial 2 of 5: each digit is five bars, two of them wide. The spaces between the bars are all the same width and carry no data, so the barcode is long for the number of digits it holds.
- Interleaved 2 of 5: digits are encoded in pairs. The five bars encode the first digit and the five spaces between them encode the second. Because the spaces carry data too, it is shorter than Industrial 2 of 5, and it always has an even number of digits (a leading zero pads an odd number).
- Matrix 2 of 5 and its relatives: each digit uses both bars and spaces, with two of the five elements wide, which makes them denser than Industrial 2 of 5.
Every variant has quiet zones, a start pattern, the data, an optional check digit and a stop pattern. ITF-14 is Interleaved 2 of 5 carrying a 14-digit GTIN, usually framed by a thick bearer bar that supports the printing plate on corrugated board.