Barcode Page

UPC vs EAN

UPC-A and EAN-13 are the same symbology with different digit counts. How they map to each other, where each is used, and what the check digit does.

A UPC-A is an EAN-13 with a leading zero. That single sentence resolves most of the confusion between the two.

UPC-A carries 12 digits. EAN-13 carries 13. If you put a 0 in front of a UPC-A, you get a valid EAN-13 that encodes the same product, which is exactly what a scanner does when a North American product is read by a European till. The reverse also works: any EAN-13 starting with 0 is a UPC-A.

Where each one is used

Format Digits Region Typical use
UPC-A 12 US and Canada Retail products on the shelf
UPC-E 6 + check US and Canada Small packages, compressed form
EAN-13 13 Rest of the world, and globally via GS1 Retail products
EAN-8 8 Worldwide Very small packages
ITF-14 14 Worldwide Shipping cartons, not retail

In practice most modern point-of-sale systems read both. A US shop can scan an EAN-13; a European shop can scan a UPC-A. The reason to care is compliance: a retailer's listing form will ask for one specific format, and a distributor's label spec will tell you which.

What the digits actually mean

An EAN-13 is a company prefix (assigned by GS1), an item reference (assigned by you), and a check digit. The prefix length varies by country and by how many products you need: GS1 issues shorter prefixes to companies with large catalogues.

A UPC-A is the same idea with a different split: a number system digit, a 5-digit manufacturer code, a 5-digit product code, and the check digit.

Neither code contains the product name, the price, or the weight. The number is a key; the shop's database holds everything else. That is also why you can change a price without reprinting the barcode.

The check digit

Both formats use modulo 10. Starting from the rightmost data digit, multiply alternating digits by 3 and 1, sum them, and take the value that brings the total up to the next multiple of ten.

This is why you cannot simply invent a 12-digit number and assume it scans: the last digit has to satisfy the calculation. The UPC generator fills it in for you, and rejects a full 12-digit value whose check digit does not match.

EAN-8 and UPC-E exist for the same reason

A full EAN-13 is 37.29 mm wide at nominal size. A lip balm tube is not. EAN-8 compresses the number to 8 digits and fits in about half the width; UPC-E does the same job in North America by squeezing 12 digits down to 6 plus a check digit, using rules about which leading zeros can be dropped.

Use them only when the label genuinely cannot fit the full symbol. Shrinking an EAN-13 below about 80% of nominal size is the alternative, and small EAN-8 codes scan more reliably than oversized-bar, undersized-print EAN-13s.

The part people get wrong

A barcode image is not a licence to sell. Amazon, Walmart and every physical retailer check the number against the GS1 database. If your 12 digits were invented, the barcode will scan perfectly and the listing will still be rejected.

Get real numbers from GS1 (or a reseller, understanding that resold prefixes can be reclaimed). Then use a generator to draw the symbol.

Make one now

The UPC generator draws UPC-A and UPC-E with the check digit calculated and verified. For EAN-13, use the main barcode generator and pick EAN-13 from the symbology list.

Make the barcode now — pick the symbology, type the value, export at print size. No signup.

Open the generator