The short answer

  • UPC-A carries a 12-digit product number (a GTIN-12). It's the usual barcode in the US and Canada.
  • EAN-13 carries a 13-digit product number (a GTIN-13). It's the usual barcode almost everywhere else.
  • Both scan worldwide. North American retailers were asked to read EAN-13 from 1 January 2005, and GS1 US says your EAN code works in the US and your UPC works in Europe.
  • Use the one your number is. A 12-digit number goes in UPC-A, a 13-digit number in EAN-13. You don't need both.

Side by side

UPC-AEAN-13
Digits12 (GTIN-12)13 (GTIN-13)
Number partsCompany prefix + item number (11 digits) + check digitCompany prefix + item number (12 digits) + check digit
Usual inUS and CanadaMost countries outside the US and Canada
Digits printedCheck digit to the right of the barsFirst digit to the left of the bars, check digit under them
Blank margin (quiet zone)9 bar-widths each side11 bar-widths left, 7 right
Size at 100%Same for both: 37.29 mm (1.468 in) wide including margins, bars 22.85 mm (0.900 in) high

Sizes and margins are from the GS1 General Specifications (Release 26.0, January 2026). Print sizes, smallest and largest, are in How to get a barcode for your product.

Can I use EAN-13 in the US, or UPC-A outside it?

Yes, in both directions. Before 2005, products sold in the US and Canada had to carry a 12-digit UPC, so foreign makers relabelled their goods. GS1 US then set 1 January 2005 (the "Sunrise" date) as the day retailers and their partners that scan UPCs should handle 13-digit EAN-13 codes too.

  • GS1 Greece: "Since that date most retailers have been able to handle products marked with EAN-13 symbols."
  • GS1 US: "your EAN code works in the U.S. and … your UPC is functional in Europe."
  • Amazon accepts UPC, EAN, JAN and ISBN product numbers (Do I need a barcode to sell on Amazon?).

One caution from GS1 Greece: if you're exporting to the US or Canada, check with your buyer. If a retailer insists on a 12-digit UPC, your GS1 office can arrange a UPC company prefix.

Converting between UPC-A and EAN-13

  • UPC-A to EAN-13: put a 0 in front. The check digit stays the same, because a leading 0 adds nothing to the check-digit sum. Example: UPC-A 036000291452 becomes 0036000291452.
  • EAN-13 to UPC-A: only possible when the EAN-13 starts with 0; drop that 0. GS1 US says a company prefix used to create a 13-digit number begins with 1–9, so a "real" EAN-13 has no UPC-A form.
  • Databases: GS1 US's guide to GTINs gives the standard database format as 14 digits, padded with zeros on the left (for example 00614141000005), whatever the length of the number.

Our EAN-13 generator takes 12 or 13 digits and the UPC-A generator takes 11 or 12: give one digit fewer and the check digit is calculated for you; give the full number and it's checked.

Which one should I get?

  • In the US: GS1 US sells both. Its single GTIN and company prefixes give you UPC numbers, and it also sells a "GS1 Company Prefix – EAN" for 13-digit numbers. UPC is the usual choice for US retail.
  • Outside the US and Canada: your national GS1 office issues 13-digit numbers, so you use EAN-13. GS1 Greece notes that since 2005 UPC prefixes have rarely been issued to companies outside the US and Canada. In India, GS1 India issues numbers starting with 890.
  • Selling into the US from abroad: your EAN-13 normally works; ask your buyer if they require a UPC.

How to get the numbers from GS1, and what they cost: How to get a barcode for your product.

  • EAN-8 and UPC-E: short versions for very small packs (8 digits). Our generator doesn't make these.
  • ISBN: books use an EAN-13 whose number starts with 978 or 979, from your national ISBN agency rather than GS1. ISBN barcode generator.
  • ITF-14: outer cartons and cases use a 14-digit number in an ITF-14 barcode, not EAN-13 or UPC-A. ITF-14 generator.

Common mistakes

  • Buying cheap numbers from resellers. GS1 US warns that a number "associated with another company" in the GS1 database risks rejection, and Amazon removes listings whose UPCs don't match GS1's records.
  • Mixing up GTIN and SKU. A GTIN is issued by GS1 and identifies the product everywhere. A SKU is your own internal code.
  • Turning an EAN-13 into a UPC-A when it doesn't start with 0. It can't be done; keep the EAN-13.
  • Buying a second number "for Europe" or "for the US". One number works in both: GS1 US says your UPC works in Europe and your EAN in the US.