Veribl logo

Identifiers and data

What is the difference between a QR code and a barcode?

Written by
Veribl
Updated

A barcode, in everyday use, is the one-dimensional row of lines on a product, such as an EAN or UPC, that holds only a product number. A QR code is a two-dimensional square that can hold a full web address with the product number, batch and serial number in it, and any phone camera can open it. Retailers are moving to read QR codes at the checkout, so one code can serve the till and the shopper.

  • Barcode (1D): Lines in one direction, such as EAN-13 and UPC-A. Holds a GTIN, about 12–13 digits
  • QR code (2D): A grid of squares (ISO/IEC 18004). Holds up to 7,089 digits or 4,296 characters
  • Who reads it: Barcode: checkout scanners. QR code: phone cameras and, increasingly, checkout scanners
  • Batch, expiry, serial: Not in an EAN or UPC. A QR code with a GS1 Digital Link can carry all of them
  • Sunrise 2027: GS1's target for retail scanners to read 2D barcodes by the end of 2027
  • Damage: QR codes have error correction and can be read with part of the code damaged

Barcodes and QR codes are both ways to put data on a product for a machine to read. The plain barcode is a product number for the checkout. The QR code is a small web address with room for much more, and the first thing a shopper's phone can open. With the industry's 2027 move to 2D, the two are starting to merge.

QR code and barcode side by side

Barcode (EAN/UPC)QR code
ShapeLines in one directionSquare grid of modules
DataA GTIN, 12–13 digitsUp to 7,089 digits or 4,296 characters
Batch, expiry, serialNoYes, with GS1 Digital Link
Read byCheckout scannersPhones, and newer checkout scanners
Opens a web pageNoYes
Damage toleranceLowError correction up to about 30%

What a barcode does

An EAN-13 or UPC-A barcode carries one number: the product's GTIN. The checkout looks it up to find the price. It says nothing about which batch or unit you're holding, so recalls, expiry checks and warranties need other data. See GTIN vs EAN vs UPC.

What a QR code does

A QR code holds text, usually a web address. With GS1 Digital Link, that address is built from the GTIN plus optional batch, expiry and serial number, for example https://example.com/01/09506000134369/10/LOT42. A phone opens the product's page, and a GS1-ready scanner reads the GTIN from the same code.

Sunrise 2027: one code for the till and the shopper

GS1's Sunrise 2027 in the US, and Ambition 2027 globally, aims for retail scanners to read 2D barcodes by the end of 2027. QR codes with GS1 Digital Link and GS1 DataMatrix both count. For brands, that means one code on the pack can do the price lookup, batch tracking and the customer experience. Linear barcodes stay accepted, so most packs will carry both for a while.

What to put on your product

  • Keep the EAN or UPC that retailers expect today.
  • Add a GS1 Digital Link QR code for customers: product page, manuals, warranty registration, support and the Digital Product Passport.
  • Encode batch or serial in the QR code if you need recalls, warranties or passports per batch or unit.
  • Put it where people look after buying, on the product, label or quick-start card.

Official sources

Frequently asked questions

Is a QR code a barcode?

Yes, a QR code is a two-dimensional barcode. In everyday speech, though, 'barcode' usually means the one-dimensional EAN or UPC lines printed on products.

Which holds more data, a barcode or a QR code?

A QR code, by far. An EAN-13 holds 13 digits. A QR code can hold up to 7,089 digits or 4,296 characters, enough for a full web address with a product number, batch, expiry date and serial number.

Will QR codes replace barcodes in 2027?

Not right away. GS1's Sunrise 2027 target is that retail scanners can read 2D codes by the end of 2027. Linear EAN and UPC barcodes stay accepted, and many products will carry both during the transition.

Can a checkout scanner read a QR code?

Many modern image-based scanners can. For the till to find the product, the QR code should use GS1 Digital Link, which puts the GTIN in the web address in a standard way.

Should I put a QR code or a barcode on my product?

Keep the EAN or UPC barcode retailers expect, and add a QR code with GS1 Digital Link for customers. Over time, one GS1 QR code can serve both the checkout and the customer.