Blog Formats & standards

EAN-13 vs UPC-A: which retail barcode your product needs

How EAN-13 and UPC-A differ, when each is accepted, how check digits work, and what a GS1 company prefix actually costs you at the till.

Both codes look like the same row of stripes over a number. Both are scanned by the same laser at the checkout. The difference is geography, and getting it wrong means a retailer's system will reject your product before it ever reaches a shelf.

The short answer

  • EAN-13 — 13 digits, used everywhere except North America.
  • UPC-A — 12 digits, used in the United States and Canada.
  • Structurally, UPC-A is EAN-13 with a leading zero, which is why almost every modern scanner reads both.

What the digits mean

Part EAN-13 UPC-A
GS1 prefix 3 digits (e.g. 590 Poland, 400–440 Germany, 626 Iran) same idea, US/Canada prefixes
Company code variable variable
Item reference variable variable
Check digit 1 digit, mod-10 1 digit, mod-10
Total 13 12

The check digit is calculated from all the preceding digits with alternating weights of 1 and 3, and the scanner verifies it on read. A wrong check digit is the single most common reason a barcode "does not exist" in a retailer's system.

QRify computes the check digit for you: enter 12 digits for EAN-13 or 11 for UPC-A and the final digit is added automatically.

Which one do I need?

Selling in Use Notes
EU, UK, Middle East, Asia, Latin America, Africa EAN-13 The default worldwide
USA, Canada UPC-A Many retailers accept EAN-13, but not all
Amazon (global) GS1 EAN-13 or UPC-A per marketplace Amazon requires a GS1-issued number
Internal stock control any code you like Your own scanner, your own rules

If you sell internationally, a single EAN-13 can serve both markets in most stores, because the leading zero form is the same symbol as UPC-A. Do not invent a UPC by adding a zero to a made-up number, though: the GS1 prefix must belong to your company.

You need a GS1 prefix, not a "barcode generator"

This is the part most guides skip. A barcode is just a font-ish encoding of a number — the number itself must be allocated by GS1, the standards body, through your national member organisation. A generator can draw a valid symbol, but no generator can make a number that retailers will accept as yours.

  • A GS1 company prefix costs a registration fee plus an annual subscription that varies by country.
  • Resellers sell "barcodes" cheaply, but those numbers belong to the reseller, not to you — and Amazon and most large retailers now reject them.
  • Once you own a prefix, you can allocate thousands of item references yourself.

QRify is useful for proofing, mocking up packaging, internal labels and generating the artwork once you have a legitimate number. It will not and should not manufacture your GTIN.

Printing retail barcodes

  • Size: EAN-13 has a nominal width of 37.29 mm at 100 % magnification, and can be printed between 80 % and 200 %.
  • Quiet zone: 11 modules on the left, 7 on the right. Retail scanners are less forgiving than phones.
  • Colour: black bars on white. Red bars are invisible to red laser scanners — a classic packaging mistake.
  • Placement: flat area, no curve, at least 5 mm from any edge or fold.

Use the EAN-13 generator or UPC-A generator with SVG export and place the vector in your artwork at the correct physical size.

Cartons and pallets

  • ITF-14 for shipping cartons — 14 digits, thick bars that survive corrugated board.
  • GS1-128 for pallets and logistics, carrying batch, weight and dates.

Neither is a substitute for the retail code on the item itself.

Frequently asked questions

Is EAN-13 the same as UPC-A?
Almost. UPC-A is a 12-digit subset of EAN-13 with a leading zero, so a scanner reading a UPC-A also reports the equivalent 13-digit EAN. The difference is which numbers GS1 allocates and which market expects them.
Can I use EAN-13 in the USA?
Many retailers accept it, especially larger chains, but some legacy POS systems and smaller stores still expect UPC-A. If the US is your primary market, register for a US GS1 prefix and print UPC-A.
Can I generate a barcode without GS1?
You can draw the symbol, but the number will not be globally unique and retailers will reject it. For internal labels it does not matter; for commercial products, get a GS1 prefix.
Why does my barcode show the wrong check digit?
Because the preceding digits were mistyped or the number is not a valid GTIN length. Enter 12 digits for EAN-13 (the 13th is calculated) or 11 for UPC-A (the 12th is calculated).

A small, independent studio project built for people who need a code that actually scans. کنوین

Back to the blog