Skip to content
StylQR home
Barcode Guides

QR Code vs UPC vs EAN: Understanding Barcode Differences

UPC vs EAN vs QR code: how many digits each holds, where each is used, whether US stores scan EAN-13, and when a QR code belongs on your packaging.

By StylQR Editorial TeamPublished 5 min read

StylQR blog cover: QR Code vs UPC vs EAN: Understanding Barcode Differences, illustrated with a balance scale between a barcode and a QR code, with a globe on a deep blue background
Table of contents

UPC and EAN are the same kind of barcode with a different number of digits. UPC-A carries a 12-digit product number and is standard in the US and Canada; EAN-13 carries 13 digits and is used almost everywhere else. A QR code is a 2D code that holds much more, such as a web link, and isn't a product number by itself.

Below is how the three compare in practice, which one your product needs, and how the newer GS1 QR codes are starting to blur the line.

The short comparison

UPC-AEAN-13QR code
Type1D linear1D linear2D matrix
Data12 digits13 digitsUp to 7,089 digits or 2,953 bytes
ContentGTIN-12 product numberGTIN-13 product numberAny text, link or structured data
Main regionUS and CanadaRest of the world, and accepted in North AmericaWorldwide
Who issues numbersGS1 US, GS1 CanadaNational GS1 organizationsNobody, unless it carries a GS1 Digital Link
Read by checkout laser scannersYesYesNo, needs a camera-type imager
Check digitYes, mod 10Yes, mod 10Error correction instead

The QR capacity figure is for the largest version at the lowest error correction, from Denso Wave's specification.

UPC vs EAN: one system, two lengths

The UPC was adopted in the US in 1973, and Europe followed with EAN (originally European Article Number) in 1977. EAN-13 was designed as a superset: put a 0 in front of any 12-digit UPC and you have a valid 13-digit EAN with the same check digit. So 098765432105 as a UPC is 0098765432105 as an EAN-13.

Both now live inside one numbering system, the GTIN (Global Trade Item Number), managed by GS1. GS1 US describes GTIN-12 as the only number that can go in a UPC-A barcode, and GTIN-13 as the only one that can go in an EAN-13 (GS1 US on GTINs).

The bars themselves are built the same way: 95 modules wide, with guard bars at the left, center and right. EAN-13 fits its extra digit in by changing the pattern of the left six digits, so it's the same physical width.

For the anatomy of each, see what a UPC barcode is and the EAN-13 barcode guide.

Do US stores scan EAN-13?

Yes. The Uniform Code Council (now GS1 US) set 1 January 2005, known as Sunrise 2005, as the date by which US and Canadian retailers should be able to scan and process 13-digit codes as well as 12-digit UPCs. GS1 guidance is to store every GTIN in a 14-digit field, padding shorter numbers with leading zeros, so a well-built system treats 12- and 13-digit numbers alike.

In practice, some North American buyers still ask suppliers for a UPC-A, often out of habit or because an older system expects 12 digits. If you sell mainly in the US or Canada, licensing from GS1 US gets you GTIN-12 numbers. If you sell mainly elsewhere, your national GS1 organization issues GTIN-13 numbers, which work in North America too. Ask your key retailers before you print.

Choosing between UPC and EAN for your product

The deciding factor is where your company licenses its numbers, not a design choice:

  1. Find your national GS1 organization (GS1 US, GS1 India, GS1 UK and so on) and license a company prefix or individual GTINs.
  2. Use the format your numbers come in. GS1 US issues 12-digit numbers for UPC-A; most others issue 13-digit numbers for EAN-13.
  3. Assign one number per product variant. Each size, color and pack count needs its own GTIN.
  4. Generate the barcode with the UPC-A generator or the EAN-13 generator, which validate the check digit as you type.
Warning: Barcode numbers sold cheaply by resellers can be prefixes originally licensed to another company. Retailers and marketplaces that check the GS1 registry can reject them. License from your national GS1 organization instead. StylQR doesn't sell or issue numbers.

Where QR codes fit

A QR code on a pack usually does something different from the UPC: it opens a web page with instructions, recipes, warranty registration or a video. Phone cameras read it directly, which a UPC can't do in any useful way for shoppers.

The newer development is the GS1 Digital Link QR code. It encodes a web address that contains the product's GTIN, such as a link with /01/ followed by the 14-digit GTIN. One code can then serve both the checkout (which extracts the GTIN) and the shopper (whose phone opens the page). GS1 US's Sunrise 2027 initiative asks retailers to install scanners that can read 2D codes like these and extract the GTIN at checkout.

That doesn't mean the UPC disappears overnight. Laser scanners still in use can't read QR codes, so packs carry both during the transition. Can QR codes replace barcodes? and GS1 Sunrise 2027 go into the timeline. For the broader difference between the two technologies, read QR code vs barcode.

Common mix-ups

  • "EAN is European only." The name stuck, but EAN-13 is the global retail standard.
  • "A UPC is the barcode; the number is separate." The number is the GTIN; UPC-A is the symbol that draws it. The same GTIN can appear in other symbols, such as ITF-14 or a GS1 DataMatrix.
  • "I can make my own UPC number." You can draw any 12 digits, and a scanner will read them. A retailer's system will only accept a number licensed to your brand.
  • "A QR code with my product name is a GS1 code." Only a code following the GS1 Digital Link format, with your GTIN inside, counts.

What to do next

If you're launching a product, get your numbers from GS1 first, then make the barcode at the size your printer needs. For more on the steps from license to label, read how to create a barcode for your products. If you also want a scannable link on the pack for customers, a URL QR code can sit next to the UPC without interfering with it.

Frequently asked questions

Can I sell on Amazon with an EAN instead of a UPC?

Marketplaces generally accept any valid GTIN, including EAN-13 and UPC-A, but the number has to be licensed to your brand by GS1. Check the marketplace's own product ID rules for your category and country.

Does a UPC or EAN show the country where a product was made?

No. The prefix shows which GS1 member organization issued the company prefix, not the country of manufacture. A brand registered with GS1 India can manufacture anywhere.

Can a QR code replace a UPC at checkout today?

Only where the store's scanners and software can read 2D codes and pull the GTIN out of them. Most packs still carry a UPC or EAN for that reason.

Is a JAN code different from EAN-13?

No. JAN is the name used in Japan for EAN-13 numbers issued there. The barcode format is the same.

Share this guide

StylQR blog cover: 1D vs 2D Barcodes: Key Differences Explained, illustrated with a one-dimensional barcode beside a two-dimensional code with width arrows on a ocean background

Barcode Guides

1D vs 2D Barcodes: Key Differences Explained

1D vs 2D barcodes compared: how much data each holds, error correction, scanner needs, print size and cost, with clear advice on when to use each type.

· 4 min read

StylQR blog cover: How Do Supermarkets Scan Barcodes?, illustrated with a shopping cart with a barcode, a scanner frame and a receipt on a plum background

Barcode Guides

How Do Supermarkets Scan Barcodes?

How barcode scanners work at the supermarket checkout: laser and camera scanners, how the number becomes a price, weighed items, and why some codes won't scan.

· 5 min read