Compare the main barcode types for inventory: EAN/UPC, Code 128, GS1-128, ITF-14, QR, Data Matrix and GS1 DataMatrix. See what each encodes, why Sunrise 2027 pushes 2D, and which code wins for field stock.
Seven barcode types. One wrong choice. Months of bad scans.
An engineer opens the van at 7am. Fifty parts on the shelves. Three different label formats. The retail box carries an EAN. The supplier carton carries a GS1-128. The part itself carries a tiny Data Matrix, or nothing at all. The scanner app reads one format and ignores the rest. So the engineer types the part number by hand, or skips the scan entirely.
This is where most guides to barcode types go wrong. They explain the symbologies and stop. The real question is different: which barcode types survive contact with field inventory? Which one scan tells you product, lot, serial and expiry at a van, a hospital shelf or a forward stocking location? That choice decides whether your stock data is trustworthy or decorative. This guide covers the main types of barcodes, what each encodes, and where each belongs. At Ventory we see the downstream cost of this choice every week, so we will be direct about the winner for stock outside the warehouse.
Why the choice matters: the numbers
Barcodes look interchangeable. Their economics are not. VDC Research, in a study commissioned by GS1 US (May 2026), found that facilities relying mainly on 1D barcodes run a 7% first-pass scan failure rate and a 1.5% relabeling rate. The same study found that moving from 1D to 2D barcodes in distribution environments cuts operational costs by more than 60%, worth over $500,000 per facility per year.

Those figures come from warehouses, where conditions are controlled. In the field they get worse. Labels sit on curved parts, in dark van shelving, behind other boxes. A symbology that fails 7% of the time indoors fails more often in an ambulance at night. Every failed scan becomes a typed entry, a guess, or a skipped transaction. Ventory's position is simple: the barcode type you standardise on is an accuracy decision, not a printing detail. We covered the scanning side in our guide to barcode scanning for field inventory. This post covers the codes themselves.
The main barcode types, explained
Hundreds of symbologies exist. Seven matter for inventory work.
EAN and UPC
The retail classics. UPC-A encodes a 12-digit GTIN, EAN-13 a 13-digit GTIN. They identify the product and nothing else. No lot, no expiry, no serial. Perfect at a supermarket till. Thin for inventory control, because two identical codes can hide two very different batches.
Code 128
A compact 1D workhorse. Encodes the full ASCII set, so letters and numbers both fit. Common for internal part numbers, bin labels and shipping labels. Flexible, dense, well supported by every scanner. Still one field of data per symbol.
GS1-128
Code 128 with GS1 structure on top. Application Identifiers mark each data field: (01) GTIN, (10) lot, (17) expiry, (00) SSCC for pallets. One label can carry several fields, but the symbol grows long fast. That is why GS1-128 lives on cartons and pallets, not on small parts.
ITF-14
A 14-digit 1D code for trade units. It prints reliably on rough corrugated cardboard, which finer codes cannot. You see it on outer cases moving between distribution centres. It identifies the case-level GTIN, nothing more.
QR code
The best known 2D code. Holds up to 7,089 numeric characters, far beyond any 1D symbol. Strong error correction. Readable by any phone camera. Most QR codes point to URLs for marketing, but GS1 Digital Link now lets a QR carry a structured product identity too.
Data Matrix
The industrial 2D code. It packs data into a very small square, stays readable at low print resolution, and tolerates damage through built-in error correction. That is why it gets lasered directly onto surgical instruments, circuit boards and aerospace parts.
GS1 DataMatrix
Data Matrix carrying GS1-structured data. One thumbnail-sized symbol encodes GTIN, lot number, expiry date and serial number together. It is the mandated carrier for medical device UDI labelling in the EU and US, which is why every implant box and loaner kit in a hospital already wears one.
Here is the same information side by side.
| Type | 1D or 2D | What it encodes | Best for |
|---|---|---|---|
| EAN / UPC | 1D | 12 or 13 digit GTIN, product identity only | Retail point of sale |
| Code 128 | 1D | Full ASCII, one data field per symbol | Internal part numbers, bin and shipping labels |
| GS1-128 | 1D | GTIN plus lot, expiry, SSCC via Application Identifiers | Cartons and pallets in the supply chain |
| ITF-14 | 1D | 14 digit case-level GTIN | Outer cases on corrugated cardboard |
| QR code | 2D | Up to 7,089 numeric characters; URLs or GS1 Digital Link | Consumer engagement, dual-purpose retail packs |
| Data Matrix | 2D | Dense data in a very small square, high damage tolerance | Direct marking on instruments and small parts |
| GS1 DataMatrix | 2D | GTIN, lot, serial and expiry in one symbol | Field, medical and consigned inventory; UDI compliance |
1D vs 2D, and the Sunrise 2027 shift
The structural difference is simple. A 1D barcode encodes data in one horizontal line, so capacity is tiny: one identifier per symbol. A 2D code encodes in two dimensions, so one small square carries many fields plus error correction. 1D needs a clean, flat, well-lit label. 2D survives small sizes, curved surfaces and partial damage.
The industry has picked its direction. GS1's Sunrise 2027 initiative calls for retail point-of-sale systems worldwide to scan 2D barcodes, alongside the familiar 1D codes, by the end of 2027, per GS1 US. Manufacturers are already dual-labelling packs with both an EAN and a QR or GS1 DataMatrix during the transition. The symbol on the products entering your supply chain is changing. The question is whether your inventory process will read everything the new symbol carries, or keep scanning it as a dumb product number.
Which barcode type wins in the field
Inside a warehouse you can compensate for a weak symbology. Fixed scanners, good lighting, a relabelling station, WMS logic. Outside the four walls you have none of that. An engineer van, a consignment shelf, a substation store: one person, one phone, thirty seconds.
That environment sets three requirements. First, one scan must capture everything, because nobody scans four labels per part. Second, the code must be readable by a smartphone camera, because field teams will not carry dedicated scanners for 450 locations. Third, lot and expiry must ride along, because recalls and expired stock are field problems, not warehouse problems.
GS1 DataMatrix meets all three. One scan returns product, lot, serial and expiry. A phone camera reads it without extra hardware. And in regulated sectors the symbol is already on the box, printed by the manufacturer, waiting to be used properly.
This is where Ventory arrives, and deliberately not earlier. Ventory does not make you re-barcode your stock. The field inventory layer sits between your ERP and your field teams and reads what is already there: EAN on the retail box, GS1-128 on the carton, GS1 DataMatrix on the implant. Multi barcode scanning parses each symbology, extracts GTIN, lot and expiry, and books the movement against the right location. Expiry data captured at scan drives product expiry management automatically. No relabelling project. No hardware rollout. The barcode types your suppliers already print become the data layer your ERP never had. If you are still choosing software around this, start with our comparison of barcode inventory software.
The proof
A national ambulance service runs medical supplies across a 100-vehicle fleet. Supplier packs carry GS1 DataMatrix and GS1-128 codes with lot and expiry. Before, crews counted by eye and wrote on paper. Now every item is scanned on a phone at the vehicle, with lot and expiry captured in the same second. The result: 99.76% stock accuracy across the fleet, with field adoption above 95%. No scanning hardware was purchased. The codes were already on the boxes.
Across customers, Ventory runs this model at 450+ field locations, with 70% fewer stockouts and 35% less excess stock where replenishment runs on scan data instead of guesses. Deployment takes 4 to 8 weeks.
Getting started
- Audit what is already printed. Pull 20 items from a van or field shelf. List the symbologies present and what each encodes. Most teams find GS1 codes they never parse.
- Define what one scan must capture. Product only? Or product, lot, serial and expiry? Regulated stock answers this for you.
- Standardise your own labels on GS1 DataMatrix for items you print yourself, and Code 128 only where a single internal ID truly suffices. See our guide to generating barcode labels.
- Start a focused first scope at 3-5 locations. Phone scanning, full symbology support, live sync to the ERP.
- Measure accuracy before and after. Cycle count the scoped locations at week zero and week eight. Let the numbers argue for the rollout.
Want one scan to carry product, lot, serial and expiry at every field location? Talk to Ventory.
Field notes
- 1D-heavy operations fail 7% of first scans, per VDC Research for GS1 US; the field pays that tax double.
- One GS1 DataMatrix replaces four separate data entries, and phones read it with zero extra hardware.
- Retail POS goes 2D by the end of 2027 under GS1 Sunrise 2027; the codes arriving in your supply chain are changing now.
Frequently asked questions
What are the main types of barcodes?
Barcodes split into 1D (linear) and 2D (matrix) types. The main 1D types are EAN/UPC for retail products, Code 128 for internal and logistics labels, GS1-128 for cartons and pallets, and ITF-14 for outer cases. The main 2D types are QR codes, Data Matrix, and GS1 DataMatrix, which carry far more data in a smaller symbol.
What is the difference between a QR code and a Data Matrix code?
Both are 2D symbologies, but they serve different worlds. QR codes hold more data, carry stronger error correction options, and dominate consumer-facing uses like URLs and payments. Data Matrix prints smaller, stays readable at low resolution on metal or plastic, and dominates industrial and medical marking. GS1 DataMatrix adds GS1 structure so one symbol carries GTIN, lot, expiry and serial.
Which barcode type is best for inventory management?
For stock inside a warehouse, Code 128 or GS1-128 covers most needs. For field and consigned inventory, GS1 DataMatrix is the strongest choice: one scan captures product, lot, serial and expiry, the symbol fits on small items, and smartphone cameras read it without dedicated scanners. The best software reads every type, so you use what suppliers already print.
What is GS1 Sunrise 2027?
Sunrise 2027 is a GS1 industry initiative asking retail point-of-sale systems worldwide to scan 2D barcodes, such as QR codes with GS1 Digital Link and GS1 DataMatrix, by the end of 2027. During the transition many products carry both a 1D and a 2D code. It is an industry target, not a law, but major retailers and brands are already moving.
Can a smartphone scan GS1 DataMatrix barcodes?
Yes. Modern phone cameras read Data Matrix symbols reliably, including the GS1 variant, when the scanning app supports the symbology and parses the Application Identifiers. That is what makes GS1 DataMatrix practical for field teams: no dedicated scanner hardware, just the phone already in the engineer's pocket.
Do I need to relabel my inventory to move to 2D barcodes?
Usually not. In regulated sectors like medtech, manufacturers already print GS1 DataMatrix on packs for UDI compliance. The faster path is software that reads the codes already present, 1D and 2D alike, and extracts the structured data. Relabel only the items that carry no usable code at all.
About Ventory
Ventory is the field inventory layer for regulated, high-stakes industries. We give MedTech, 3PL, Aerospace, Energy and FMCG leaders real-time visibility and control over inventory outside the four walls, in hospitals, ambulances, trunk stock, consignment locations, and field service vans. Ventory is ERP-agnostic (SAP, Oracle, Dynamics, Sage, NetSuite) and trusted by a global medtech manufacturer, a national ambulance service, global logistics and consumer-goods operators. See how it works →
Ten questions. You get a field readiness score, a gap tier and the three fixes worth doing first.
Ventory is the field inventory layer between your ERP or WMS and the teams working outside the warehouse: engineer vans, forward stocking locations, consigned stock and loaner kits.
About Ventory


