Skip to main content
QR + Barcode Toolbox
Barcodes Guide

EAN-13 vs. UPC-A: International Standards & GTIN Compatibility

An engineering and retail guide to the world's primary consumer packaging barcodes: how 12-digit UPC-A maps into 13-digit EAN-13, how GS1 Modulo-10 checksums work, and why modern point-of-sale scanners read both seamlessly.

The Global Retail Barcode Landscape

Every day, billions of consumer items pass across retail laser checkout scanners. The two predominant symbologies printed on commercial packaging are UPC-A (originating in North America in 1974) and EAN-13 (introduced in Europe in 1976).

While visually similar, they carry distinct numbering structures under the universal GS1 Global Trade Item Number (GTIN) umbrella.

1. UPC-A (Universal Product Code — GTIN-12)

UPC-A encodes exactly 12 numeric digits. It remains the dominant retail packaging standard in the United States and Canada.

  • Structure: 1 prefix digit (number system), 5 digits (GS1 company prefix), 5 digits (product SKU reference), and 1 Modulo-10 check digit.
  • Total Length: 12 digits.
  • Physical Geometry: 95 total modules across 2 guard bars, 2 outer margins, and a center pattern separating the left and right halves.

2. EAN-13 (International Article Number — GTIN-13)

EAN-13 encodes 13 numeric digits and is used across Europe, Latin America, Asia, Oceania, and Africa.

  • Structure: 2 or 3 country prefix digits (GS1 Member Organization, e.g. 500–509 for UK, 400–440 for Germany, 000–139 for US/Canada), followed by company prefix, item reference, and 1 Modulo-10 check digit.
  • Parity Encoding Trick: The first digit of EAN-13 is not represented by physical bars; instead, it is encoded through variable parity patterns in the left half of the symbol. This ingenious design allowed EAN-13 to store 13 digits in the exact physical width of a 12-digit UPC-A barcode!

How UPC-A and EAN-13 Unify in Modern Systems

In modern retail databases, all barcodes are stored as 14-digit GTINs:

UPC-A (12 digits):   0 1 2 3 4 5 6 7 8 9 0 5
EAN-13 (13 digits): 0 0 1 2 3 4 5 6 7 8 9 0 5   (prefixed with 0)
GTIN-14 (14 digits): 0 0 0 1 2 3 4 5 6 7 8 9 0 5   (standardized)

Because the country prefix for the United States and Canada in the GS1 system is 000–139, adding a leading zero to any UPC-A code transforms it into a fully compliant EAN-13 code without altering its mathematical check digit.

Symbology Comparison

FeatureUPC-AEAN-13
Digit Count12 digits13 digits
GTIN StandardGTIN-12GTIN-13
Primary MarketUnited States & CanadaGlobal (International)
Check Digit AlgorithmGS1 Modulo-10GS1 Modulo-10
Scanner CompatibilitySupported worldwideSupported worldwide

⚠️ Important Regulatory Notice on GS1 Barcode Licensing

Generating a barcode file using an online tool simply creates vector graphics (SVG/PNG) representing a number you provide. It does not license, register, or guarantee global uniqueness for your product. To avoid severe collisions and retailer rejection, always license official GS1 prefixes directly from your national GS1 organization.

Frequently Asked Questions

Yes. Since the 'Sunrise 2005' initiative by GS1, all modern retail point-of-sale (POS) barcode scanners in the United States and Canada are required to read both 13-digit EAN-13 and 12-digit UPC-A barcodes.

UPC-A converts into EAN-13 by prepending a leading zero ('0'). For example, the 12-digit UPC-A '012345678905' is represented as the 13-digit GTIN '0012345678905' in international retail databases. The Modulo-10 check digit remains identical.

No. Barcode generators render the visual lines and spaces corresponding to numbers you provide. They do not license, register, or assign unique Global Trade Item Numbers (GTINs). To legally sell products in major retail chains (Walmart, Amazon, Target), you must obtain an official company prefix from GS1.

Try the Tools Mentioned in this Guide