Data Matrix vs QR Code: How to Choose Your GS1 2D Barcode


GS1 approves three 2D symbols for retail packs. Compare Data Matrix and QR Code on pack space, phone scanning, and retailer scanner readiness, then pick one.
The choice to put a Data Matrix vs QR Code on product packaging means meeting the requirements of packaging, marketing, supply chain, and IT teams. Those teams often want different things from the same symbol, including pack space, a phone link, batch data, and scanner support.
For most consumer packs, print a QR Code with GS1 Digital Link, because shoppers can also scan it with their phone's default camera. Choose a GS1 DataMatrix when pack space or retailer scanner readiness is a bigger priority. Use a Data Matrix with GS1 Digital Link when the pack needs a web link in a compact symbol.
⚡Pro tip: Ask each retailer you sell through which of the three symbols its checkout scanners read before you lock your artwork. Scanner readiness varies by retailer, and a symbol that fails at one chain's checkout could mean new artwork.
Key takeaways
- GS1 approves three 2D symbols for retail point of sale (POS) systems. The approved symbols are GS1 DataMatrix, QR Code with GS1 Digital Link, and Data Matrix with GS1 Digital Link.
- A QR Code with GS1 Digital Link opens in a phone's default camera app. It takes the most pack space and needs a software upgrade at the retailer's POS scanner.
- A GS1 DataMatrix takes the least pack space, with a blank border one square wide against four for a QR Code. Retailer imaging scanners already have the capability to read a GS1 DataMatrix, which may only need enabling.
- A Data Matrix with GS1 Digital Link puts a web link in a compact symbol. It needs a scanning app on phones and a software upgrade at the POS scanner.
- Pack space, phone scanning, and retailer scanner readiness decide which symbol fits your product packaging. For healthcare products, GS1 names GS1 DataMatrix as the 2D barcode of choice at the point of sale.
What is the difference between Data Matrix and QR Code?
A Data Matrix is a compact 2D barcode with an L-shaped finder pattern. A QR Code is a 2D barcode that holds more data, uses three corner squares, and opens in a phone's default camera app. Each symbol needs a blank border called the quiet zone. The border is one module (a single square) wide for a Data Matrix and four for a QR Code.
The table compares the two symbols on the seven points that affect packaging.
| Feature | Data Matrix | QR Code |
|---|---|---|
| Finder pattern | Solid L-shaped border plus alternating timing marks | Square patterns in three corners |
| Smallest symbol | 10 × 10 modules | 21 × 21 modules |
| Capacity | 3,116 numeric or 2,335 alphanumeric characters | 7,089 numeric or 4,296 alphanumeric characters |
| Error correction | Reed-Solomon, set automatically by symbol size | Reed-Solomon, four levels you choose: 7%, 15%, 25%, or 30% |
| Quiet zone | One module on all four sides | Four modules on all four sides |
| Default phone camera | No for GS1 DataMatrix, and some Android cameras for Data Matrix with GS1 Digital Link | Yes |
| ISO/IEC standard followed | ISO/IEC 16022 | ISO/IEC 18004 |

Data Matrix vs QR Code data capacity
A QR Code holds more data than a Data Matrix, with 4,296 alphanumeric characters against 2,335 for a GS1 DataMatrix, according to GS1. Capacity rarely decides the choice for a retail pack. A GS1 Digital Link with a Global Trade Item Number (GTIN), lot number, and expiry date runs 61 characters. The same data as a GS1 element string runs about 30. Both strings sit far below either limit.
Pack space needed for a Data Matrix or a QR Code
A GS1 DataMatrix prints smaller than a QR Code. A GS1 DataMatrix also needs a thinner blank border, one module or square wide against four for a QR Code. GS1's retail guideline prints the same product data in both symbols with the same square size. The GS1 DataMatrix measures 18.88 mm (0.74 inches) wide. The QR Code with GS1 Digital Link measures 20.3 mm (0.8 inches) at its lowest error correction level. The QR Code also carries a web address, so it holds a longer string.

A QR Code grows with the length and type of characters in its web address. In GS1's example, switching the address from lowercase to uppercase shrank the QR Code by about 2 mm. A consumer health brand we work with identified a shorter custom domain as its main way to shrink a QR Code. Fewer characters mean fewer squares and a smaller QR Code.
⚡Pro tip: Check your domain length before you finalize artwork. A shorter domain gives a smaller QR Code, and changing it later means new artwork.
GS1's size estimator shows how large a QR Code will print. Step 7 of our implementation checklist covers size and quiet zone for a GS1 QR Code.
Data Matrix vs QR Code error correction on curved packs
A Data Matrix and a QR Code both use error correction, but only a QR Code lets you choose an error correction level. A higher level adds modules, so the QR Code grows. In GS1's example, the same QR Code measures 20.3 mm at the lowest error correction level and 28.2 mm at the highest. We recommend the highest level for packs that bend or wrap. A consumer health brand we work with rejected a lower level for curved bottles with a five-year shelf life, to protect scan reliability.
Phone and checkout scanning for Data Matrix and QR Code
A phone's default camera app opens a QR Code with GS1 Digital Link, while a GS1 DataMatrix needs a dedicated scanning app. GS1 says some Android cameras also read a Data Matrix with GS1 Digital Link. GS1 and Google announced in November 2025 that Google Lens can scan a GS1 DataMatrix on medicine packs. At checkout, a Data Matrix and a QR Code both need an imaging scanner.
GS1 DataMatrix vs Data Matrix
A GS1 DataMatrix is a Data Matrix that starts with a Function 1 (FNC1) character and carries GS1 element strings. A plain Data Matrix carries any data, and a Data Matrix with GS1 Digital Link carries a GS1 web address. Our guide to 2D barcodes covers all three GS1 formats.
How to choose your GS1 2D barcode
GS1's retail guideline lists three checks before you choose a barcode. The barcode should comply with your requirements, work where you print and scan it, and have the agreement of your teams and partners. The table below applies them. Read it from the top and use the first row that matches your pack.
| If this is true for your pack | Print this |
|---|---|
| The product is a regulated healthcare product | GS1 DataMatrix, which GS1 approves globally for regulated healthcare |
| Your retailers' scanners are not set up for GS1 Digital Link | GS1 DataMatrix, which retail scanners are closer to reading |
| The pack has little room beside the UPC and needs a web link | Data Matrix with GS1 Digital Link, which needs a scanning app on phones |
| The pack has little room beside the UPC and needs no web link | GS1 DataMatrix, which has the smallest footprint of the three |
| None of the above | QR Code with GS1 Digital Link, which phones open in the default camera app |
GS1 DataMatrix and Data Matrix with GS1 Digital Link both come in rectangular shapes that fit spaces a square code or a QR Code cannot.
If your OTC or pharma product counts as a regulated healthcare product, print a GS1 DataMatrix. The GS1 Healthcare community does not recommend a QR Code for product identification. A QR Code with GS1 Digital Link can sit beside the GS1 DataMatrix as a secondary barcode. The secondary QR Code should carry the same information as the GS1 DataMatrix. Google Lens now reads a GS1 DataMatrix on medicine packs, but a QR Code opens in any phone's default camera app.
A consumer health brand we work with prints GS1 QR Codes on medicine packs in Argentina. Patients open digital leaflets on their phones. The codes serve phone scanning, not checkout scanning. Medicine rules differ by market, so check which rules apply to your product.
GS1 says a pack with a retail 2D barcode keeps its UPC or EAN until about 90% of POS scanning solutions can read 2D barcodes. Make sure that packaging, marketing, supply chain, and IT teams agree with the choice. Then test a printed sample with your retailers.
Retailer scanner readiness for each symbol
A GS1 DataMatrix is closer to ready at retail checkout than a QR Code or a Data Matrix with GS1 Digital Link. GS1's retail guideline says retailer imaging scanners already have the capability to read a GS1 DataMatrix, which may only need enabling. A QR Code and a Data Matrix with GS1 Digital Link both need a software upgrade at the POS scanner. GS1 element strings are already common in scanners and back-end systems, and GS1 Digital Link web addresses are newer. Some scanner software converts a GS1 Digital Link into an element string before it reaches the POS system, so the host system needs no upgrade.
GS1 Sunrise 2027 is the industry goal for retail scanners worldwide to read the GTIN from 2D barcodes by the end of 2027. Not every retailer can scan 2D barcodes at checkout today, but retailers are preparing their scanners. Now is the time to plan a 2D barcode for your packaging.
Want to know more about Sunrise 2027?
Read the GS1 Sunrise 2027 Guide for CPG Brands.
Consumer QR Code and POS barcode on different panels of one pack
A pack can carry a consumer QR Code on the front panel and its POS barcodes on the back panel. GS1's guideline example shows both QR Codes encoding the same GS1 Digital Link. The front-panel QR Code needs no human-readable text because it is for shoppers.
How Uniqode helps with GS1 QR Codes
Uniqode is a GS1 US Executive Solution Partner that creates QR Codes with GS1 Digital Link.
In Uniqode, complete the Product Identifier Information section:
- Enter your GTIN in the Value field beside (01) Global Trade Item Number (GTIN).
- Add any lot number, serial number, or expiry date.
- Under GS1 Digital Link, select your connected domain from the Select Domain menu.

| Your GS1 task | How Uniqode helps |
|---|---|
| Keep the QR Code small | You choose the connected domain, so you control the length of the web address |
| Cover hundreds of SKUs | Create GS1 QR Codes from a spreadsheet with bulk upload |
| Update what shoppers see after printing | Change the page a QR Code opens without reprinting the pack |
| Check each GTIN | Connect GS1 Data Hub to validate GTIN ownership, as an optional integration |
| Send files to your print team | Download vector files, such as SVG, for packaging |
More than 50,000 businesses use Uniqode, and it is rated 4.8 out of 5 on G2.
Choosing a symbol for your pack?
Bring your GTIN list, retailer list, and next print date. We will help you work out the right GS1 QR Code setup for your products.
Frequently Asked Questions
- Which is better, Data Matrix or QR Code?
It depends on the product category and product packaging. A QR Code suits consumer-facing packs because shopper phones can also open it in the default camera app. A GS1 DataMatrix suits tight packs and regulated healthcare products.
- Is Data Matrix a type of QR Code?
No. A Data Matrix and a QR Code are separate 2D barcode types with different finder patterns. A Data Matrix follows ISO/IEC 16022, and a QR Code follows ISO/IEC 18004.
- Is a GS1 QR Code different from a regular QR Code?
Yes, in the data it carries. A GS1 QR Code encodes a GS1 Digital Link, which is a web address with the product's GTIN in a set format. The two look the same, and retail scanners set up for GS1 Digital Link can read the GTIN from the GS1 version.
- Can I change the 2D barcode type later?
Yes. GS1 says brands can change between 2D barcode types as their use cases change. Retailer systems will read all three symbols once they are updated. A new symbol still means new artwork, so time the change with a print run.
- Do I need a different GTIN for each symbol?
No. Each of the GS1 retail 2D symbols carries the same GTIN as your UPC or EAN. Each stores the GTIN as 14 digits, with leading zeros added if needed. Our guide to GTINs explains how to manage them.
About the Author
Architaa is a Content Marketer at Uniqode, where she explores how QR Codes, Digital Business Cards, and phygital experiences are reshaping the way brands connect with their audiences. She transforms complex marketing trends and technologies into clear, actionable insights that help businesses strengthen engagement and build lasting connections with their customers. Outside of work, Architaa is most likely lost in a novel, following every ball of a cricket match, or binging her favorite shows.
Related Posts

What Is a Product Code? GTIN vs UPC vs EAN Explained

What Is a GTIN? How to Get and Manage One

What Is a 2D Barcode? Types, Uses, and GS1 Formats

1D vs 2D Barcodes: What Changes for Your Packaging

GS1 QR Codes Demystified: A Complete Guide to GS1 Digital Link
