UPC vs EAN: which barcode do you need?

2 min read

UPC-A and EAN-13 are the two retail barcodes you'll meet most often. Here's how they differ, when each is expected, and why you rarely need both.

If you sell a physical product through shops or online marketplaces, you will be asked for a barcode number. Two formats dominate retail: UPC-A and EAN-13. They look similar, and they are more closely related than most people realise.

The short answer

  • Selling mainly in the United States or Canada? Use UPC-A (12 digits).
  • Selling mainly anywhere else? Use EAN-13 (13 digits).
  • Selling in both? One number is usually enough, as explained below.

What they have in common

Both are part of the same global system, run by the standards body GS1. The number under the bars is called a GTIN (Global Trade Item Number). Each one identifies a single product line: one size, one colour, one pack quantity.

Both end in a check digit, calculated from the other digits, which lets a scanner detect a misread. You can test any number with our barcode validator.

How they differ

UPC-A carries 12 digits. It was introduced in the United States in the 1970s and is still what North American retailers expect.

EAN-13 carries 13 digits. It was designed later as a superset of UPC, with room for more country and company prefixes.

The key point: a UPC-A number is an EAN-13 number with a leading zero. The UPC 036000291452 and the EAN 0036000291452 identify the same product, and the bars are drawn in a compatible way.

Do I need both?

Usually not. Modern point-of-sale systems around the world read both formats. A product carrying a UPC-A can generally be sold internationally, and a product carrying an EAN-13 can generally be sold in North America. If a particular retailer insists on one format, follow their supplier guidelines.

Where the number comes from

This is the part people get wrong. A barcode generator draws the image; it does not create the number. To sell through retailers and most marketplaces you need a GTIN licensed to your company by GS1 (or your national GS1 organisation). Numbers bought cheaply from resellers may be rejected, because the company prefix inside them belongs to someone else.

Once you have your number:

  1. Enter it in the UPC-A generator or the EAN-13 generator.
  2. Download SVG or PDF for your packaging designer, or PNG for documents.
  3. Print a test and scan it before a full production run.

What about products you don't sell in shops?

For internal use — stock rooms, asset tags, shipping labels — you don't need a GTIN at all. Make up your own codes and encode them as Code 128, which accepts letters as well as digits.

Share this article

Make your own in seconds

Free barcode and QR code generators — validated, no signup.

Keep reading