1001Ferramentas
๐Ÿ“ŠValidators

ITF-14 Validator

Validate ITF-14 (14-digit) shipping carton barcode.

ITF-14 validation: the logistics barcode that wraps a case of products

The ITF-14 (Interleaved Two of Five, 14 digits) is the workhorse barcode of distribution and warehousing. While EAN-13 and UPC-A live on individual retail items, ITF-14 lives on the outside of the master case, the shipper carton or the shrink-wrapped pallet that the warehouse handles in bulk. The standard is published as ISO/IEC 16390 and the numbering plan is the GS1 GTIN-14 (Global Trade Item Number, 14 digits) โ€” the two acronyms describe the same number, ITF-14 emphasising the printed symbology and GTIN-14 the abstract identifier.

Validating an ITF-14 means three things: the length is exactly fourteen digits, every character is 0-9, and the last digit matches the same mod-10 check used by EAN-13 (alternating 3-1 weights). Most importantly, the first thirteen digits must encode a real product reference: positions 2-13 are the underlying EAN-13 / UPC-A base, and position 1 is the packaging indicator that says "this case contains N units of that product".

Anatomy of an ITF-14

The fourteen positions split into 1 packaging indicator + 2-3 GS1 prefix digits + company registrant + product reference + 1 check digit. The packaging indicator at position 1 is what makes ITF-14 different from a plain EAN-13:

  • 0 โ€” the case is a logistics unit of fixed content but the inner EAN is identical to the outer ITF-14 base (rare standalone use).
  • 1 to 8 โ€” variable internal quantity. The exact meaning is private to the brand owner; common conventions are 1 = display box, 2 = 6-pack, 3 = 12-pack, 4 = master case, 5-8 = pallet tiers.
  • 9 โ€” variable measure (kg, litre, metre). The downstream system must read an attached price tag or weight scale.

The mod-10 check digit (same as EAN-13)

Take positions 1 to 13 from left to right. Multiply the odd positions (1, 3, 5, 7, 9, 11, 13) by 3 and the even positions (2, 4, 6, 8, 10, 12) by 1. Sum the thirteen products, take the remainder modulo 10, and the check digit is (10 - remainder) mod 10.

// 15401414532354 โ€” case of 12 units (packaging indicator = 1)
// base GTIN-13 = 540141453235 + DV
digits = [1,5,4,0,1,4,1,4,5,3,2,3,5]
sum    = 1*3 + 5*1 + 4*3 + 0*1 + 1*3 + 4*1
       + 1*3 + 4*1 + 5*3 + 3*1 + 2*3 + 3*1 + 5*3
       = 3+5+12+0+3+4+3+4+15+3+6+3+15 = 76
dv     = (10 - 76 % 10) % 10 = (10 - 6) % 10 = 4
// ITF-14: 15401414532354

The algorithm is intentionally identical to EAN-13, just with thirteen input digits instead of twelve. Most barcode libraries (bwip-js, JsBarcode, python-barcode) expose gtin14 or itf14 as a target format with the DV computed automatically.

ITF-14 vs EAN-13: when to use which

An EAN-13 belongs to the retail item that the consumer scans at the supermarket checkout. An ITF-14 belongs to the shipping container that the warehouse worker scans on the dock. The same product therefore has two codes โ€” its EAN-13 retail identifier and one or more ITF-14 case identifiers, one per packaging configuration. A 350 ml can of beer has one EAN-13 on the can itself, an ITF-14 on the cardboard 12-pack and a different ITF-14 on the 24-can master case. All three numbers are issued by the brand's GS1 office in lockstep, sharing the same registrant prefix.

Visual symbology: bearer bars and quiet zones

ITF-14 uses Interleaved 2 of 5 encoding โ€” pairs of digits are encoded with one digit in the bars and one in the spaces, giving thick, robust bars suitable for printing directly on corrugated cardboard. Because the symbology can be partially misread when the leading or trailing bars are smudged, the GS1 spec mandates bearer bars: a thick black frame surrounding (or just bordering top and bottom of) the barcode that the scanner uses as a sanity check. The standard also requires a quiet zone of 10x the narrow bar width on each side. Missing bearer bars or insufficient quiet zone is the most common reason a warehouse scanner refuses an ITF-14 โ€” the printed pattern is "valid" mathematically but rejected at the symbology layer (sometimes called DAMP, Dangerously Misleading Symbol Distortion).

Brazilian distribution context: Ambev, Coca-Cola FEMSA, Magazine Luiza

In Brazilian logistics, ITF-14 is the standard on every shipping carton handled in distribution centres. Ambev prints ITF-14 on master cases of Brahma, Skol and Antarctica. Coca-Cola FEMSA Brasil uses ITF-14 for 12-can and 24-can boxes. Mondelez (Lacta, Bis, Trident) and BRF (Sadia, Perdigao) follow the same pattern. On the receiving side, the warehouses of Magazine Luiza (LuizaLabs), Mercado Livre Full, Amazon FBA Brasil and Carrefour CDs all parse ITF-14 to map an inbound case to the underlying EAN-13. SAP EWM, TOTVS WMS and Oracle WMS Cloud โ€” the three dominant warehouse management systems in BR โ€” bundle GTIN-14 validation in the inbound module.

Common pitfalls

  • Treating the inner EAN-13 as the ITF-14 base: positions 2-13 of an ITF-14 do not include the EAN-13 check digit. They cover positions 1-12 of the EAN-13 (the data digits), and the ITF-14 then computes its own check.
  • Packaging indicator 9 without weight: an ITF-14 starting with 9 means variable measure โ€” the case has no fixed quantity. Downstream systems must read a price tag or weight scale; an ITF-14 alone is incomplete.
  • Bearer bars missing: technically the spec allows two layouts (full frame or just top/bottom), but omitting them altogether reduces scan reliability on cardboard.
  • Quiet zone violated: when artwork crowds the barcode, scanners fail even with a mathematically valid number. The 10x narrow-bar margin is non-negotiable for SSCC label compliance.
  • Single ITF-14 per product: many teams forget that each packaging configuration (display box, 12-pack, master case, pallet) needs its own ITF-14 with a different packaging indicator.

FAQ

What is the difference between ITF-14 and EAN-13? EAN-13 identifies the retail item on the shelf; ITF-14 identifies the shipping container (case, box, pallet) that holds N units of that item. They share an algorithm and an underlying registrant prefix but are not the same number.

Does the supermarket PoS scanner read ITF-14? Yes โ€” most modern omnidirectional scanners read EAN-13, UPC-A and ITF-14 transparently. But the PoS software is configured to route ITF-14 differently: a case scan generally triggers a wholesale price or a receiving flow, not a retail sale.

Are bearer bars mandatory? The GS1 General Specifications strongly recommend them; some retailer specifications (Walmart, Target, GPA Atacadao) make them mandatory. For SSCC-compliant shipping labels, omit them at your peril.

Can I print ITF-14 directly on corrugated cardboard? Yes โ€” that is exactly what it is designed for. The thick interleaved bars survive the rough surface much better than the thinner EAN-13 pattern.

Does a valid ITF-14 prove the case exists? No. The math only proves internal consistency. To confirm registration, query the GS1 GEPIR or the supplier's master data feed.

Related Tools