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. Which means 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. On the flip side, 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. It encodes digits 0 through 9 using exactly five bars — two wide, three narrow. That's where the name comes from. Two out of five bars are wide. The rest are narrow. Think about it: simple concept. 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. Practically speaking, developed in the 1970s. Which means that makes it inefficient. You need a lot of real estate to encode a short number. It only encodes information in the bars*. Practically speaking, 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. 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. Plus, odd count? Now, 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. 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. Consider this: that's its kingdom. Plus, 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. 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. The quiet zones disappear. And high-density symbologies like Code 128 or DataMatrix? They get crushed, damp, printed on cheap flexo presses with ink that spreads. Tolerant of print spread. On the flip side, high contrast. Wide bars. But 2 out of 5 — especially ITF — was designed* for this. The dots blur. They fail on cardboard. Scannable at a distance with a forklift-mounted scanner.
That's why GS1 made ITF-14 the standard for trade items. Every case, every pallet, every logistic unit moving through global supply chains carries one. That's why walmart, Amazon, Target — their receiving docks expect ITF-14. No ITF-14, no shelf space.
It's also self-checking in a way. In practice, the scanner rejects it rather than misreading. 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. 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... On the flip side, with widths determined by both digits simultaneously. That's why you can't just read the bars alone — you lose half the data. Took long enough.
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). 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. But if you're manually building a barcode string? The 14th digit is the check. It's calculated from the first 13 digits (the packaging indicator + GS1 company prefix + item reference). Consider this: most label software calculates it automatically. You need to know the math.
Weight the digits alternately by 3 and 1, starting from the right (excluding the check digit position). Sum them. Subtract from the next multiple of 10. That's your check digit.
Continue exploring with our guides on how many weeks are in 6 months and how long would it take to count to a billion.
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. Which means 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.This leads to 2 mm for a 13 mil narrow element). This matches the scanner’s expectation of a solid dark band. Practically speaking, | Too narrow → insufficient contrast; too wide → eats into the printable area and may violate the 100 % fill rule. |
| Place the bars | Extend the bearer bars 0.5 mm beyond the outermost vertical bars on each side. Because of that, this ensures the scanner’s start‑pattern detection isn’t compromised. | Guarantees the scanner sees a clean “frame” around the barcode. |
| Print quality | Print at 300 dpi or higher. Bearer bars are solid ink, so a low‑resolution print can appear mottled, breaking the intended uniformity. | Prevents “striped” bearer bars that act like additional bars. |
| Material choice | Use coated or laminate substrates when possible. The smooth surface helps the bearer bars stay solid, especially on glossy stock. On top of that, | Reduces light scattering that could be interpreted as noise. Day to day, |
| Testing | Scan the label with a hand‑held laser and a fixed‑mount camera scanner. That's why if either rejects, add a thin white margin (≈0. 1 mm) around the barcode and re‑test. | Different scanner technologies have slightly different tolerances; a small margin often solves edge cases. |
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 reliable 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. Worth adding: 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. 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. Now, 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. Now, 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.