CodeBox Hub
FREE

ITF Barcode: How Interleaved 2 of 5 Works

Interleaved 2 of 5 explained: paired digit structure, the wide-to-narrow ratio, no start or stop character, and where cartons and glass bottles still use it.

# 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.

ElementPatternNotes
Start sequencen-n-n-nFour narrow elements, not a character
DataPairs of digits, bars and spaces interleavedEven count required; odd counts padded with a leading 0
StopW-n-nWide bar, narrow space, narrow bar
Quiet zoneRequired both sidesKeeps short, diagonal scans from faking a valid read

The Ten Digit Patterns

DigitElements (n = narrow, W = wide)
0n n W W n
1W n n n W
2n W n n W
3W W n n n
4n n W n W
5W n W n n
6n W W n n
7n n n W W
8W n n W n
9n 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)318642
Weight313131
Product91246122

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.

FeatureITF (generic)ITF-14Code 128
DataAny even-length digit stringFixed 14-digit GTIN128 ASCII characters
Check digitOptional, UPC-style mod-10Mandatory (GS1)Mandatory mod-103
Start/stopStart sequence + wide-bar stopSame, often with a Bearer BarStart code + 13-module stop
Typical useCartons, bottles, genericDistribution case levelLogistics, 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.

FAQ

What does ITF stand for?

Interleaved 2 of 5 — digits are encoded in pairs, and the bars of one digit are interleaved with the spaces of the next.

Why must ITF have an even number of digits?

Because it encodes digits strictly in pairs: one digit in the bars, one in the spaces. An odd-length ID is padded with a leading 0, which is why some ITF codes start with an extra 0.

Does ITF have a start and stop pattern?

It has a start sequence (four narrow elements) and a wide-bar stop, but no start or stop character like Code 128's. That is why the quiet zone, and on GS1 labels the Bearer Bar, matter.

What is the difference between ITF and ITF-14?

ITF is the generic digit symbology; ITF-14 is the GS1 application that fixes the data to a 14-digit GTIN with a mandatory check digit for case-level labels.

Can ITF encode letters?

No. ITF encodes digits 0-9 only. For alphanumeric data use Code 128 or another alphanumeric symbology.

Why do glass bottles use ITF?

Bottle lines standardized on ITF decades ago because it is cheap to print, reads reliably on simple scanners, and fits a short numeric bottle or case code. Replacing it means retooling the line, so it persists.

Can I generate an ITF barcode online for free?

Yes — the free barcode generator includes an ITF generator that accepts an even-length digit string, and the free barcode generator guide covers all 10 symbologies on the site.

Keep reading

Contact us