Skip to content

UPC, EAN and GS1 explained

Updated November 22, 2026

The black-and-white stripes on a cereal box look like one thing. They're really two: a number, and a picture of that number. Most confusion about barcodes comes from mixing those up.

The number: GTIN

The number is called a GTIN, short for Global Trade Item Number. GS1 created the standard, and the number is used to look up product information in a database.1

GTINs come in four lengths. They may be eight, 12, 13 or 14 digits long. All four are built in a similar way, from a company prefix, an item reference and a calculated check digit.1

What sits inside a product numberCompany prefix: assigned to the companyItem reference: chosen by the companyCheck digit: calculated from the rest
The parts of a GTIN, in plain terms.

Those parts matter because they show who does what. The company prefix is allocated to the member company. The item reference is picked by the company itself.1

GS1 US describes the prefix as a unique number assigned to just your company.2

The picture: UPC and EAN

UPC and EAN are the symbols that carry a GTIN. The number names the product. The symbol is what a barcode reader picks up. GS1 US draws the same line.2

UPC-A is the one most people picture. It shows a strip of black bars and white spaces above 12 digits.3 A 12-digit GTIN can be shown in UPC-A.1

EAN-13 is its 13-digit cousin. GS1 US says "EAN" stands for European Article Number, and that the symbol is commonly found outside North America.4

The two share a history. Wikipedia says the original 12-digit code was expanded to 13 digits in 1976, which let the system work outside the U.S.5

Smaller versions exist for tiny items. GS1 US says EAN-8 barcodes are used when space is limited on packaging and a UPC-A or EAN-13 will not fit.4

What the check digit does

The last digit isn't chosen by anyone. It's worked out from the others. Wikipedia says the UPC includes a check digit to detect common data entry errors.3

So if someone types a code by hand and gets one digit wrong, the system can often spot that something's off. You don't need to do the math yourself. Barcode tools do it for you.

From number to scannable symbolA company is given a prefixIt gives each product its own numberThe number is drawn as a barcodeA scanner reads the bars at checkout
The number comes first. The bars come second.

Who issues the numbers

GS1 does. Wikipedia describes it as a global coordinating office leading a collection of neutral, not-for-profit organizations.5 In the United States, that local organization is GS1 US.

The numbers come with a rule about leaving them alone. GS1 US says "In no instance should you alter barcodes."2 It adds that randomly adding or removing digits may mean you use another company's number by accident.2

So don't invent digits and print them. A made-up number might match a real company's product. Read on in the page about buying barcodes to see when a licensed number is needed and when your own codes will do.

How this fits with your SKUs

Your own SKUs sit next to all this, not inside it. A SKU is your private code, and a GTIN is the shared one. What a SKU is sets out the difference.

Selling a shirt in several sizes and colors? See how many separate numbers it can need.

References

  1. Global Trade Item Number, Wikipedia
  2. Barcode FAQs, GS1 US
  3. Universal Product Code, Wikipedia
  4. Types of Barcodes, GS1 US
  5. GS1, Wikipedia