Back to All Blog Posts
Barcode Guides

EAN-13 vs UPC-A: Which Barcode Does Your Product Need?

By 4 min read
An EAN-13 barcode next to a UPC-A barcode on product packaging
Short answer

UPC-A (12 digits) is used mainly in the USA and Canada; EAN-13 (13 digits) is used almost everywhere else. They’re part of the same GS1 system: a UPC-A is simply an EAN-13 that starts with 0, and checkout scanners in North America have read EAN-13 since 2005. Print the format that matches the number GS1 gave you: a 12-digit GTIN as UPC-A, a 13-digit GTIN as EAN-13.

You’re about to print packaging, and someone asks: “Do you need EAN or UPC?” A marketplace form wants one, a distributor mentions the other, and the barcode supplier sells both.

Here’s the short version: they are two ways of writing the same kind of number, and you rarely get to choose. The number you were given decides it.

One system, two formats

Both barcodes carry a GTIN, a Global Trade Item Number issued through GS1, the organisation that runs retail barcodes worldwide.

  • UPC-A encodes a 12-digit GTIN-12. It started in the USA in the 1970s and is still standard in the USA and Canada.
  • EAN-13 encodes a 13-digit GTIN-13. It was created in Europe as an extension of UPC and became the standard almost everywhere else, including Pakistan, India, the UK, the EU and the Gulf.

The key detail: a UPC-A is an EAN-13 with a leading zero. The UPC 036000291452 is the EAN 0036000291452. Same product, same bars in the middle.

Side by side

UPC-AEAN-13
Digits1213
Number typeGTIN-12GTIN-13
Main regionUSA and CanadaRest of the world
Scanned in US shops?YesYes, since 2005
Scanned outside North America?YesYes
Small-pack versionUPC-E (8 digits, zero-suppressed)EAN-8
Books–ISBN-13 as “Bookland” EAN-13

North American retailers agreed to scan EAN-13 from 1 January 2005, a deadline known as Sunrise 2005. Since then, an EAN-13 on a product sold in the USA scans fine at the till. In the other direction, UPC-A codes have always scanned in the rest of the world.

What the digits mean

Take the EAN-13 5 901234 12345 7:

  • Prefix (590): the GS1 member organisation that issued the company number. 890 is GS1 India, 896 is GS1 Pakistan, 50 is GS1 UK. It shows where the number was issued, not where the product was made.
  • Company and item number: your company prefix, then a number you assign to each product and size.
  • Check digit (7): calculated from the other twelve so scanners can catch misreads.

The barcode doesn’t contain a price or product name. The shop’s system looks the number up in its own database.

How the check digit works

For EAN-13, multiply the first 12 digits alternately by 1 and 3 starting from the left, add the results, and take the amount needed to reach the next multiple of 10.

For 590123412345: 5×1 + 9×3 + 0×1 + 1×3 + 2×1 + 3×3 + 4×1 + 1×3 + 2×1 + 3×3 + 4×1 + 5×3 = 83. The next multiple of 10 is 90, so the check digit is 7.

UPC-A works the same way with the weights starting at 3 instead of 1, which is exactly what you’d expect once you remember the hidden leading zero. Our EAN-13 and UPC-A generators add the check digit for you.

Which one should you print?

  1. Look at the number you were issued.

    GS1 US and GS1 Canada usually issue 12-digit numbers: print UPC-A. Other GS1 offices issue 13-digit numbers: print EAN-13.

  2. Selling only in North America with a 13-digit number?

    Print the EAN-13. It has scanned in US and Canadian stores since 2005.

  3. A retailer insists on UPC?

    Ask what they actually check. Most systems store all GTINs as 14 digits internally and don’t care. If they really require a 12-digit number, you’ll need one issued by GS1 US.

Don’t convert by deleting digits. You can turn a UPC into an EAN by adding a leading 0, but you can’t turn an EAN into a UPC by dropping its first digit unless that digit is 0. Doing so creates a different, unregistered number.

Printing size

At 100% magnification an EAN-13 is about 37.3 × 25.9 mm including the quiet zones, with a narrow bar (X-dimension) of 0.33 mm. GS1 allows scaling between 80% and 200%. Keep the white space on both sides, print dark bars on a light background and don’t cut the height down too much; truncated barcodes are a common reason for scanning problems at the till.

Getting a real number

The barcode is the easy part. The number is what matters, and for retail it must come from GS1. Our guide on how to get barcodes for your products explains the options and the risk of cheap resold numbers.

Frequently asked questions

Is EAN-13 the same as UPC-A?

Almost. They belong to the same GS1 system, and a UPC-A is an EAN-13 with a leading zero. The difference is the number of digits printed: 12 for UPC-A, 13 for EAN-13.

Can I use an EAN-13 barcode in the USA?

Yes. US and Canadian retailers have been able to scan EAN-13 since 2005. Individual retailers may still have their own supplier requirements, so check with them.

Does the first digit of an EAN-13 show the country of origin?

No. The prefix shows which GS1 office issued the company number. A product made in China can carry a prefix from the UK if the brand is registered with GS1 UK.

Can I convert a UPC-A to EAN-13?

Yes, add a leading zero: the 12-digit UPC becomes a 13-digit EAN with the same bars. Going the other way only works when the EAN starts with 0.

What is the check digit?

The last digit, calculated from the others with alternating weights of 1 and 3. Scanners use it to detect misreads, and generators add it automatically.

Make your EAN-13 or UPC-A barcode

Check digit added automatically, correct size, PNG, SVG or vector PDF. Drawn in your browser.

Create an EAN-13 Barcode
CleanPDF Team

The team behind CleanPDF’s browser-based PDF, image, QR code and calculator tools. We write these guides to solve everyday document and number problems.