Guide

Data Matrix vs QR code

Data Matrix and QR code are both square 2D barcodes. Data Matrix has a solid L-shaped border and stays readable when printed or etched very small, so it marks electronic parts and medicines. A QR code has three corner squares and every phone camera reads it. If the public will scan it, use a QR code.

Telling them apart

Look at the edges. A Data Matrix has a solid dark line down the left side and along the bottom (its finder pattern) and alternating dark and light cells along the top and right (its timing pattern). Big ones are split into blocks with guide lines between them, and some are rectangles.

A QR code has three big nested squares in its corners, dotted timing lines between them and, from version 2 up, a smaller alignment square. The interactive explainer labels each of those parts.

Size, capacity and standards

Data Matrix (ECC 200)QR code
FinderL-shaped solid borderThree corner squares
ShapesSquares from 10 × 10 to 144 × 144; rectangles from 8 × 18 to 16 × 48Squares from 21 × 21 to 177 × 177 (versions)
Largest capacity3,116 digits, 2,335 alphanumeric or 1,556 bytes7,089 digits, 4,296 alphanumeric or 2,953 bytes
Error correctionReed–Solomon, amount fixed by the symbol sizeReed–Solomon, four levels you choose
StandardISO/IEC 16022ISO/IEC 18004
Phone cameraSome scanner apps and Google Lens; variesBuilt into iPhone and Android cameras
Typical usesCircuit boards, aircraft and car parts, medicines, mailLinks, menus, Wi-Fi, payments, tickets, packaging

The capacities are for the largest symbol of each. Data Matrix packs mixed data in ways that vary with the content, so treat its figures as upper limits.

Where Data Matrix is the standard

  • Marks a few millimetres wide. It's printed or laser-etched onto circuit boards, surgical tools and engine parts.
  • Direct part marking. It's often dot-peened or etched into metal, where it lasts as long as the part.
  • Narrow labels. The rectangular sizes fit edges that a square can't.
  • Medicines. In the EU, prescription medicine packs carry a unique identifier in a Data Matrix to fight counterfeits (Delegated Regulation (EU) 2016/161).

In these places the choice is usually made for you by a regulator, a customer or an industry body. If your industry expects GS1 DataMatrix, a QR code won't do.

Where QR code is the better choice

  • Anything the public scans. Every modern iPhone and Android camera reads QR codes with no extra app.
  • Links and everyday data. Web links, Wi-Fi logins, contact cards and payment requests all have QR formats phones understand.
  • More data at the top end, up to 2,953 bytes.
  • Four levels of error correction. The maker can pick a higher one for rough conditions or to make room for a logo; our generator uses M and switches to H when you add a logo. Data Matrix fixes the level by symbol size.

Both are on the checkout list

GS1's goal is for shop checkouts to read 2D codes by the end of 2027. GS1 DataMatrix is on its list, along with Data Matrix and QR codes that carry a GS1 Digital Link web address (GS1). The barcode vs QR code page shows what a Digital Link QR code holds.

Airlines accept both as well: the IATA boarding pass standard lets airlines put Data Matrix, Aztec or QR codes on mobile passes (IATA BCBP guide). The Aztec vs QR code page covers tickets.

We only make QR codes. For GS1 or industrial Data Matrix labels, use the label software your printer or GS1 member organisation recommends. If the mark has to be tiny but stay in the QR family, see Micro QR.

Written by Last updated