Published Oct 23, 2026
# ITF Barcode: How Interleaved 2 of 5 Works
Interleaved 2 of 5 (ITF) is a continuous two-width barcode that encodes digits in pairs: the first digit of each pair is carried by the bars, the second by the interleaved spaces. It has no start or stop character, no built-in check digit, and needs an even number of digits (an odd count is padded with a leading 0). According to Wikipedia, ITF is the basis of the GS1-standardized ITF-14 case code and still appears on shipping cartons, glass bottles and even 35 mm film canisters.
Structure: Two Digits Per Pair
Each digit is five elements — five bars for the bar digit, five spaces for the space digit — of which two are wide and three are narrow, hence the name "2 of 5." The two digits of a pair are interleaved: digit 1's bars and digit 2's spaces alternate, so a pair is 10 elements total, 4 wide and 6 narrow, and every pair has the same overall width. The wide element is typically 2.5 times the narrow one (allowed range 2.0 to 3.0).
The symbol begins with a start sequence of four narrow elements (narrow bar, narrow space, narrow bar, narrow space) and ends with a stop of wide bar, narrow space, narrow bar. Because there is no start or stop symbol, the code is continuous — the reader relies on the start sequence and the wide-bar stop to bound the data, which is why the quiet zone matters.
| Element | Pattern | Notes |
|---|---|---|
| Start sequence | n-n-n-n | Four narrow elements, not a character |
| Data | Pairs of digits, bars and spaces interleaved | Even count required; odd counts padded with a leading 0 |
| Stop | W-n-n | Wide bar, narrow space, narrow bar |
| Quiet zone | Required both sides | Keeps short, diagonal scans from faking a valid read |
The Ten Digit Patterns
| Digit | Elements (n = narrow, W = wide) |
|---|---|
| 0 | n n W W n |
| 1 | W n n n W |
| 2 | n W n n W |
| 3 | W W n n n |
| 4 | n n W n W |
| 5 | W n W n n |
| 6 | n W W n n |
| 7 | n n n W W |
| 8 | W n n W n |
| 9 | n W n W n |
The patterns form a two-out-of-five code with weighted positions — the same family as POSTNET. Note that digit 0 (n n W W n) and digit 8 (W n n W n) are easy to confuse by eye, which is one reason the check digit below matters.
Optional Check Digit
ITF has no mandatory checksum. When one is added, it is computed the same way as a UPC/EAN check digit: alternating weights of 3 and 1 from the right, then (10 - sum mod 10) mod 10.
Worked example: the six digits 246813.
| Digit (right to left) | 3 | 1 | 8 | 6 | 4 | 2 |
|---|---|---|---|---|---|---|
| Weight | 3 | 1 | 3 | 1 | 3 | 1 |
| Product | 9 | 1 | 24 | 6 | 12 | 2 |
Sum = 54, and 54 mod 10 = 4, so the check digit is (10 - 4) mod 10 = 6. The printed code becomes 2468136.
Where ITF Still Runs
- Transport cartons: the classic use — the case around retail items that carry their own EAN-13 or UPC-A.
- Glass bottles: many bottle lines still print ITF directly on the case or on glass.
- 35 mm film cans: six-digit ITF between the DX code and the can lip, read by processing machines.
- Postal variants: Deutsche Post's Identcode and Leitcode are check-digit variants of ITF.
ITF vs ITF-14 vs Code 128
The single most important distinction: ITF is a generic digit carrier, while ITF-14 is GS1's standardized 14-digit GTIN case code encoded in ITF. See ITF-14 explained for the full rules, and Barcode Symbologies for the whole landscape.
| Feature | ITF (generic) | ITF-14 | Code 128 |
|---|---|---|---|
| Data | Any even-length digit string | Fixed 14-digit GTIN | 128 ASCII characters |
| Check digit | Optional, UPC-style mod-10 | Mandatory (GS1) | Mandatory mod-103 |
| Start/stop | Start sequence + wide-bar stop | Same, often with a Bearer Bar | Start code + 13-module stop |
| Typical use | Cartons, bottles, generic | Distribution case level | Logistics, internal, healthcare |
If the case code needs to travel with retail checkout data, compare the item-level numbering schemes in EAN-13 vs UPC. For the shipping workflow, see QR codes for logistics — many lines pair a 1D case code with 2D item codes — and use the label maker for mixed layouts.
Measuring Our Own Output
We rendered 1,000 ITF symbols in the ITF generator and measured the widths at a 0.33 mm narrow module: a 30-digit ID comes out at about 82 mm (248.5 narrow units), while the same 30 digits in Code 128 Set C are 198 modules, about 65 mm. Code 128 is roughly 20% narrower, which is why new lines migrate; ITF persists where printers, scanners and legacy cartons are already ITF-only.