QR codes vs DataMatrix vs UPC: a store owner's guide to 2D barcodes
UPC carries identity only; GS1 DataMatrix and Digital Link QR add batch, expiry, and serial. What each symbology does, which scanners read what, and a no-regrets buying checklist.
ShelfLifePro Editorial Team
Inventory management insights for retail and pharmacy
the argument about barcodes is really an argument about payloads
Store owners shopping for scanners tend to ask the wrong first question. They ask which barcode format is best, the way you'd ask which truck is best, and the honest answer is that a barcode is not a truck — it's a shipping container, and the only thing that matters is what's inside. A UPC and a QR code and a DataMatrix are three containers of very different sizes, and the practical differences between them come down to one thing: how many facts about the product can ride along in the scan.
This matters right now because the industry is mid-transition. GS1's Sunrise 2027 initiative sets the ambition that retail POS systems be capable of scanning 2D barcodes by the end of 2027, US pharmacy already runs entirely on 2D codes under DSCSA, and food traceability rules are pulling grocery the same direction. Which means a store owner buying a scanner or choosing software in 2026 is making a decision that straddles two eras, and it helps to know exactly what each symbology is, what it carries, and which hardware can actually read it. That's this piece.
Not sure how much you're losing to expiry?
Run a free inventory waste audit, find your bleeding SKUs in 60 seconds. No sign-up required.
Run free auditUPC and EAN: identity, and nothing else
The vertical-bars barcode on essentially everything you sell is a UPC (12 digits, North America) or an EAN (13 digits, most of the rest of the world). Both encode a single value: the GTIN, the Global Trade Item Number. That's the product's identity — "this is a 1lb bag of this brand's medium-roast coffee" — and it is the entire payload. Nothing about when it was made, which batch it belongs to, when it expires, or which individual bag it is. Every bag of that coffee ever printed carries the identical barcode.
For fifty years that was the right trade-off. Identity is what a checkout needs: scan, look up GTIN, price, next customer. The 1D barcode is cheap to print, forgiving to scan, and globally unambiguous, which is why it conquered the planet.
But notice what the trade-off costs you. Every fact beyond identity has to travel some other way. The expiry date travels as ink-jet print a human has to read. The lot number travels on the case label or the invoice. When you want either of those facts in your inventory system — for rotation, for alerts, for a recall — somebody types it, and typing batch and expiry data at the receiving bench is exactly the kind of repetitive, error-prone work computers were supposed to take off our hands. The UPC isn't bad at carrying that data. It's incapable of it. Twelve digits is twelve digits.
GS1 DataMatrix: the industrial workhorse
A DataMatrix is the small square 2D code built from a grid of black and white modules, with a distinctive solid "L" border along two edges. It packs a lot of data into very little space — it stays readable at sizes where a QR code would struggle — and it includes error correction, so a code that's partially smudged, scratched, or wrapped around a curve still scans. Those two properties made it the standard for marking small, serious things: surgical instruments, electronics components, and, most relevantly, medicine.
What makes it a GS1 DataMatrix rather than just a DataMatrix is the payload structure. The data inside is organized as GS1 Application Identifiers — short numeric prefixes that declare what each field means:
- (01) GTIN — the product identity, same value the UPC carries
- (10) batch/lot number
- (17) expiration date
- (21) serial number
- (15) best-before date
So a single GS1 DataMatrix can carry, in one scan: which product, which batch, expiring when, and which exact unit. A payload that would take a UPC scan plus four typed fields arrives in one beep.
This is not theoretical. Under DSCSA, every salable pharmaceutical unit in the US carries a GS1 DataMatrix encoding the NDC/GTIN, serial, lot, and expiry — and serialization enforcement is live for manufacturers, wholesalers, and large dispensers as of 2025, with small dispensers exempt only until November 27, 2026. Walk into any pharmacy's receiving area and you're watching the 2D future already running in production; the DSCSA compliance checklist for independent pharmacies lays out what that workflow looks like when it's mandatory. Food is heading the same direction for its own reasons: lot-level traceability rules like FSMA 204 are built around exactly the data elements — lot, product, dates — that map naturally onto these identifiers.
QR codes: two very different animals wearing the same pattern
Here's where store owners most often get tangled, because two genuinely different things both look like a QR code.
The consumer QR code — the one on the poster, the menu, the back-of-pack "scan for recipes" — is just a web address in a square. It carries no structured product data at all. Your inventory system can technically read it, and what it gets back is a marketing URL. For inventory purposes it's noise. If a vendor tells you their packaging "already has a QR code" and therefore supports expiry tracking, ask what's in the code, because nine times out of ten the answer is a link to their website, which knows nothing about the batch in your hand.
The GS1 Digital Link QR code is the clever one. It's still a web address — but the address itself is structured to carry GS1 identifiers: the GTIN lives in the URL path, and batch, expiry, and serial ride along in the same standardized way. That single square now serves two completely different audiences with one scan. A shopper's phone camera opens it as a link and lands on a product page — provenance, allergens, recipes, whatever the brand publishes. Your POS or inventory scanner reads the same square, extracts the GTIN and the AIs, and treats it exactly like a GS1 DataMatrix: identity plus batch plus expiry, machine-readable, no typing.
That dual-audience trick is why the GS1 Digital Link QR is one of the two formats named in Sunrise 2027 (DataMatrix being the other). Brands get a consumer engagement channel and a supply-chain data carrier on the same square inch of label. Expect to see it first on food and consumer goods, where the shopper-facing half of the trick has marketing value; pharma will stay on DataMatrix, where compactness wins and nobody's scanning their amoxicillin for recipes.
The summary table, in prose: UPC/EAN carries identity only. GS1 DataMatrix carries identity plus batch, expiry, and serial in a compact industrial square. GS1 Digital Link QR carries the same identifiers inside a web link a consumer's phone can also use. And a plain consumer QR carries a URL and an implied marketing budget.
which scanners read what
Now the hardware, because this is where a wrong purchase quietly locks a store out of all of the above.
1D laser scanners cannot read 2D codes. Ever. Not with a firmware update, not with better aim. A laser scanner sweeps a single line of light across the bars and reads the reflection — it sees one horizontal slice. A DataMatrix or QR code is a two-dimensional grid; one slice of it is meaningless. Pointing a laser gun at a QR code is pointing a tape measure at a photograph. The same goes for older linear CCD scanners: one-dimensional readers, full stop.
Camera-based imagers read everything. A 2D imager is essentially a small, fast camera with decoding software. It photographs the code and decodes whatever's in frame — UPC, EAN, DataMatrix, QR, usually a dozen other symbologies, in any orientation, including off a phone screen. Every 2D imager reads 1D barcodes too, so there is no trade-off: 2D capability is a strict superset.
Phone cameras count. Any modern smartphone camera reads QR codes natively and reads DataMatrix through scanning apps. For a small store, a phone running the right software is a 2D scanner — a perfectly serious one for receiving work, if not for checkout-speed scanning.
The market has already moved. Most USB scanner guns sold today are 2D-capable imagers, and the price gap between 1D and 2D units has mostly collapsed. The 1D-only models still on the market survive on being marginally cheaper and on buyers not knowing the difference. Which means the practical guidance is blunt: there is no good reason to buy a 1D-only scanner in 2026. None. You'd be buying a device with a built-in expiry date, in a store full of products about to start carrying codes it can't see.
One more wrinkle worth knowing: reading the code is only half the job. A GS1 scan arrives as one long string of concatenated AIs, and something on the receiving end has to parse it — split out the (01) from the (10) from the (17) and file each in the right field. That's a software job, not a scanner job. A 2D imager plugged into software that doesn't speak GS1 just types a long cryptic string into whatever field has focus, which is how you end up with a "product code" forty characters long and an expiry field that's still empty. The scanner is the cheap, easy half; software that parses Application Identifiers is the half that turns the beep into filled-in fields.
the buying checklist for a scanner gun
When you're actually holding a spec sheet, here's what to verify, in order of how expensive it is to get wrong:
1. It's a 2D imager. The spec sheet should say "2D imager" or "area imager" and explicitly list DataMatrix and QR Code among supported symbologies. If the word "laser" appears as the scan engine, put it down.
2. It handles GS1 formats by name. Look for GS1 DataMatrix, GS1-128, and GS1 DataBar in the symbology list, and for configurable handling of the separator characters GS1 codes use between variable-length fields. Almost all current imagers do this; the checkbox costs you nothing and saves an afternoon of debugging mystery characters.
3. It reads from screens. You'll scan barcodes off phones and tablets more than you expect — supplier portals, digital coupons, a colleague texting you a code. Glossy screens defeat some budget imagers; "screen reading" or "mobile scanning" on the spec sheet settles it.
4. USB keyboard-wedge mode. The gun should be able to present itself as a keyboard, typing the scan wherever the cursor is. It's the universally compatible mode and the reason a scanner works with new software on day one with zero configuration.
5. Drop rating and a stand. Receiving areas eat scanners. A unit rated to survive drops to concrete, plus a hands-free stand for batch-scanning sessions, is the difference between a five-year tool and an annual repurchase.
6. Corded unless you have a reason. Cordless is genuinely useful for receiving against a pallet; it's also a battery to manage and a pairing to troubleshoot. For a fixed bench or a till, the cable is the feature.
Notice what's not on the list: brand prestige and exotic features. A mid-range 2D imager from any reputable maker clears every bar above. The hardware decision is the easy one — make it once, correctly, and then spend your remaining attention on the software that catches the scan, because that's where batch and expiry data either becomes a working FEFO system or becomes a long string in the wrong field.
The barcode on your shelves is changing payloads for the first time in fifty years. The container is getting bigger; make sure the thing you buy this year can open it.
ShelfLifePro works with any 2D imager — scan a GS1 DataMatrix or Digital Link QR and it parses the GTIN, batch, and expiry into the right fields automatically, then drives FEFO rotation and expiry alerts from the result. The scanner is your choice; the parsing is our job.
ShelfLifePro Editorial Team
The ShelfLifePro editorial team covers inventory management, expiry tracking, and waste reduction for pharmacies, supermarkets, and retail businesses worldwide.
See what batch-level tracking actually looks like
ShelfLifePro tracks expiry by batch, automates FEFO rotation, and sends markdown alerts before stock expires. 14-day free trial, no credit card required.
Weekly expiry-tracking playbook
One short email every Tuesday. FEFO tactics, markdown math, and real-world waste-reduction wins. Unsubscribe anytime.
No spam. Unsubscribe in one click.