You've seen them a thousand times. Those tall, skinny barcodes on cardboard boxes in warehouses, on shipping labels, on the back of library books. Most people never think about them. But if you've ever wondered why some barcodes look like a picket fence while others look like a barcode had a fight with a comb — this is the article for you.
The 2 out of 5 barcode is one of those quiet workhorses that keeps global logistics moving. It's not flashy. It doesn't do QR code tricks. But it's everywhere, and understanding it changes how you see supply chains.
What Is a 2 out of 5 Barcode
At its core, a 2 out of 5 barcode is a numeric-only symbology. Two out of five bars are wide. Day to day, that's where the name comes from. Now, it encodes digits 0 through 9 using exactly five bars — two wide, three narrow. Because of that, simple concept. The rest are narrow. Devil in the details.
There isn't just one version. The family tree matters here.
Standard 2 of 5 (Industrial 2 of 5)
This is the grandfather. In practice, developed in the 1970s. It only encodes information in the bars*. That said, that makes it inefficient. But you need a lot of real estate to encode a short number. Plus, the spaces between bars are just separators — fixed width, no data. It's mostly obsolete now, but you'll still find it on some legacy warehouse shelving and older photo developing envelopes.
Interleaved 2 of 5 (ITF)
This is the one you actually see. ITF interleaves data between bars and spaces. That's why the first digit goes into the bars. The second digit goes into the spaces. They pair up. That's why ITF always encodes an even number of digits. Odd count? You add a leading zero. This doubling of density made ITF the standard for corrugated cardboard shipping containers — the GTIN-14 labels you see on every pallet and case.
Matrix 2 of 5
A lesser-known variant. Which means used mostly in Japanese logistics and some warehouse systems. Similar density to ITF but different encoding rules. Rare outside specific regional applications.
IATA 2 of 5
Airline baggage tags. Day to day, if you've ever looked closely at a luggage tag barcode — the one that survives baggage handlers, conveyor belts, and weather — that's IATA 2 of 5. Plus, that's its kingdom. It includes a check digit and specific start/stop patterns for airline scanning systems.
Why It Matters / Why People Care
You might ask: why does a barcode from the 70s still matter? Because cardboard hasn't changed.
Corrugated boxes are rough. Worth adding: tolerant of print spread. They fail on cardboard. The dots blur. High contrast. The quiet zones disappear. High-density symbologies like Code 128 or DataMatrix? On the flip side, they get crushed, damp, printed on cheap flexo presses with ink that spreads. Wide bars. But 2 out of 5 — especially ITF — was designed* for this. Scannable at a distance with a forklift-mounted scanner.
That's why GS1 made ITF-14 the standard for trade items. Walmart, Amazon, Target — their receiving docks expect ITF-14. Every case, every pallet, every logistic unit moving through global supply chains carries one. No ITF-14, no shelf space.
It's also self-checking in a way. A single printing defect usually turns a wide bar into a narrow one or vice versa — which creates an invalid 2-out-of-5 pattern. The scanner rejects it rather than misreading. That's huge when a misread means shipping 5,000 units to the wrong distribution center.
How It Works
Let's get into the mechanics. Not the math-heavy spec sheet version — the version that helps you troubleshoot a bad label.
The Encoding Logic
Each digit 0–9 gets a unique pattern of five elements: two wide (W), three narrow (n). The standard mapping:
- 0: nnWWn
- 1: WnnnW
- 2: nWnnW
- 3: WWnnn
- 4: nnWnW
- 5: WnWnn
- 6: nWWnn
- 7: nnnWW
- 8: WnnWn
- 9: nWnWn
In standard 2 of 5, those five elements are bars only*. Spaces are fixed narrow.
In ITF, the bars carry the first digit's pattern. The spaces carry the second digit's pattern. They interleave.
- Bars: nnWnW (digit 4)
- Spaces: nWnnW (digit 2)
The resulting barcode alternates bar-space-bar-space... Plus, with widths determined by both digits simultaneously. That's why you can't just read the bars alone — you lose half the data.
Start and Stop Patterns
Every ITF barcode starts with nnnn (narrow bar, narrow space, narrow bar, narrow space) and ends with WnW (wide bar, narrow space, wide bar). In practice, these are fixed. They tell the scanner: "start here, stop here, and by the way, I'm ITF.
The Check Digit
ITF-14 includes a modulo 10 check digit — same algorithm as UPC/EAN. It's calculated from the first 13 digits (the packaging indicator + GS1 company prefix + item reference). The 14th digit is the check. Consider this: most label software calculates it automatically. But if you're manually building a barcode string? You need to know the math.
Weight the digits alternately by 3 and 1, starting from the right (excluding the check digit position). In real terms, sum them. On the flip side, subtract from the next multiple of 10. That's your check digit.
Continue exploring with our guides on what is the value of x 50 100 and how many days is 10 weeks.
Example: 1 0614141 12345 (13 digits)
Weights: 3,1,3,1,3,1,3,1,3,1,3,1,3
Calculation: (1×3)+(0×1)+(6×3)+(1×1)+(4×3)+(1×1)+(4×3)+(1×1)+(1×3)+(2×1)+(3×3)+(4×1)+(5×3) = 3+0+18+1+12+1+12+1+3+2+9+4+15 = 81
Next multiple of 10: 90
Check digit: 90 - 81 = 9
Full ITF-14: 10614141123459
Bearer Bars
Here's what most people miss. This leads to iTF-14 requires* bearer bars — horizontal bars across the top and bottom (and sometimes vertical bars on the sides) that touch the top and bottom of every vertical bar. They're not decoration.
Bearer Bars: The Unsung Heroes of ITF‑14
They are the horizontal lines that run above and below the barcode, sometimes with vertical “spacers” on the sides. In an ITF‑14, bearer bars aren’t optional—they’re baked into the GS1 specification (ISO/IEC 16390). Their purpose is simple yet crucial:
- Optical isolation. The bars create a uniform field of light, preventing ambient reflections from interfering with the scanner’s laser or camera sensor.
- Consistent contrast. By forcing the scanner to see a solid dark band at the top and bottom, bearer bars eliminate edge‑case scans where the barcode sits on a glossy surface or is partially covered.
- Physical protection. The extra ink (or print‑head pressure) reinforces the barcode’s outer edges, reducing the chance of smudging or tearing during handling.
When a label is printed without bearer bars, you may notice intermittent failures even though the digit patterns are perfect. The scanner might “see” the surrounding background as part of the barcode, causing a timing mismatch and a reject.
How to implement them correctly
| Design step | What to do | Why it matters |
|---|---|---|
| Set the bearer width | Use a width equal to 2× the narrow bar width (typically 0. | Prevents “striped” bearer bars that act like additional bars. |
| Place the bars | Extend the bearer bars **0. | Guarantees the scanner sees a clean “frame” around the barcode. Bearer bars are solid ink, so a low‑resolution print can appear mottled, breaking the intended uniformity. If either rejects, add a thin white margin (≈0. |
| Material choice | Use coated or laminate substrates when possible. 5 mm** beyond the outermost vertical bars on each side. 1 mm) around the barcode and re‑test. Because of that, the smooth surface helps the bearer bars stay solid, especially on glossy stock. In practice, | |
| Print quality | Print at 300 dpi or higher. This ensures the scanner’s start‑pattern detection isn’t compromised. Plus, 2 mm for a 13 mil narrow element). | Too narrow → insufficient contrast; too wide → eats into the printable area and may violate the 100 % fill rule. Now, |
| Testing | Scan the label with a hand‑held laser and a fixed‑mount camera scanner. And this matches the scanner’s expectation of a solid dark band. Practically speaking, | Reduces light scattering that could be interpreted as noise. |
Common pitfalls and quick fixes
- Bearer bars bleeding into adjacent text – Reduce the bar width or add a thin white gap (≈0.1 mm) between the bearer and any nearby printing.
- Uneven ink coverage – Re‑print with a higher print density setting or verify the printhead is not worn.
- Scanners that ignore bearer bars – Some newer scanners are tolerant, but if you’re using legacy equipment, keep the bars exactly as specified.
Putting It All Together: A Checklist for a strong ITF‑14 Label
- Digit encoding – Verify the 13‑digit payload (including the check digit) matches the 2‑of‑5 interleaving rules.
- Start/stop patterns – Ensure the label begins with
nnnnand ends withWnW. - Check digit – Double‑check the modulo‑10 calculation; most software does this automatically, but a manual sanity check never hurts.
- Bearer bars – Add horizontal bars (and optional vertical spacers) at the correct width and extension.
- Quiet zone – Maintain at least 2× narrow bar width of empty space on all sides of the barcode.
- Print quality – Use ≥300 dpi, proper ink/powder, and verify with a test scan.
- Testing – Scan with both laser and camera scanners; note any rejects and iterate.
Conclusion
ITF‑14 barcodes are deceptively simple: a clever interleaving of two 2‑of‑5 patterns, a strong check‑digit scheme, and a handful of fixed markers that tell scanners exactly what they’re looking at. Yet, the devil is in the details—especially the bearer bars that many designers overlook
and improperly implemented. By adhering to the specifications for start/stop patterns, check digits, and bearer bars, along with rigorous print and material choices, ITF-14 labels achieve their legendary reliability. Plus, these barcodes thrive in high-volume logistics environments precisely because their structure minimizes ambiguity—every element, from the solid bearer bars to the quiet zones, acts as a safeguard against scanning errors. While newer systems may tolerate minor deviations, sticking to the original standards ensures backward compatibility and future-proofing. In an industry where a single misread can disrupt supply chains, the ITF-14’s meticulous design remains a testament to the power of precision. For anyone implementing these barcodes, the takeaway is clear: treat the bearer bars and quiet zones with the same care as the data itself. A well-executed ITF-14 label isn’t just a tool for automation—it’s a cornerstone of operational resilience.