UPC vs EAN: which product barcode do you need?
UPC-A carries a 12-digit number and EAN-13 a 13-digit one, and retail scanners have read both since 2005. The question that actually matters is where your number comes from.
Processed locally in your browserUPC-A and EAN-13 are two barcodes for the same kind of number. UPC-A carries a 12-digit product number and is used mainly in North America; EAN-13 carries a 13-digit one and is used mainly everywhere else. Retail scanners have been able to read both since 2005, so for most products the barcode type matters far less than where the number comes from: a real retail number has to be licensed from GS1.
UPC, EAN and GTIN: what the words mean
GS1, the organisation that runs the system, separates the number from the barcode that carries it (GS1 US, checked 4 November 2026):
- A GTIN (Global Trade Item Number) is the number that identifies one product. It comes in 8, 12, 13 and 14-digit lengths.
- A GTIN-12 is the number people call a UPC. It is the only number a UPC-A barcode can carry.
- A GTIN-13 is the number people call an EAN (or JAN in Japan). It is the only number an EAN-13 barcode can carry.
| UPC-A | EAN-13 | |
|---|---|---|
| Number it carries | GTIN-12 (12 digits) | GTIN-13 (13 digits) |
| Mainly used | North America | Outside North America |
| Scanned at | Retail point of sale | Retail point of sale |
| Small-pack version | UPC-E (8 digits, zeros suppressed) | EAN-8 |
| Last digit | Check digit | Check digit |
| Issued by | GS1 (GS1 US in the United States) | GS1 member organisations |
Do I need a UPC or an EAN?
Usually it doesn't matter as much as people fear. UPCs started in North America and EANs elsewhere, but through an initiative called Sunrise 2005, retailers and their partners updated their systems so they could scan and process both (GS1 US). GS1 also says all GTIN formats are generally accepted by marketplaces and retailers worldwide (GS1 support).
- Selling mainly in the US or Canada: a GTIN-12 in a UPC-A barcode is the conventional choice, and it is what GS1 US issues.
- Selling mainly elsewhere: a GTIN-13 in an EAN-13 barcode, from your country's GS1 office.
- A specific retailer or marketplace: follow its supplier requirements. Those override any general advice, including this article.
How a UPC becomes an EAN-13
A 12-digit UPC is written as a 13-digit EAN by putting a 0 in front. Nothing else changes, not even the check digit, because the check digit sum weights each digit by its position counted from the right, and a leading zero adds nothing to it. So the UPC 036000291452 and the EAN-13 0036000291452 identify the same product.
The reverse only works when an EAN-13 starts with 0. An EAN-13 that starts with any other digit has no 12-digit equivalent, which is why a product numbered outside North America can't simply be "converted" to a UPC.
How the check digit works
The last digit of every UPC and EAN is calculated from the others, so a scanner or a person typing the number can catch most mistakes. GS1 describes it as the digit that makes sure the barcode is correctly composed. To calculate it:
- Take the digits before the check digit and, starting from the right, multiply them alternately by 3 and by 1.
- Add the results.
- The check digit is whatever brings that total up to the next multiple of 10 (0 if it is already one).
For the first eleven digits of the UPC above, 03600029145, the weighted sum is 58, so the check digit is 2. You don't have to do this by hand: the Barcode Generator adds the check digit when you type 11 digits for UPC-A or 12 for EAN-13, confirms it when you type the full number, and tells you what it should be when it is wrong — an EAN-13 ending in the wrong digit gets a message such as "should be 7, not 0".
Where to get a real product barcode number
Anyone can draw a barcode for any number; the hard part is owning the number. GS1 describes itself as the only official provider of GS1 GTINs and EAN/UPC barcodes, and GS1 US warns that GTINs bought from unauthorised third parties may already be associated with another company or product, which can cause retailers to reject listings. As of 4 November 2026, GS1 US offers two routes (GS1 US):
- A single GS1 US GTIN, for a business with a few products: $30 per number, with no annual renewal fee.
- A GS1 Company Prefix, for a growing range: a block of numbers for current and future products, with an annual membership.
GS1 US notes that it can change its prices, and other countries' GS1 offices set their own, so check your local office before budgeting. Whichever route you take, every variation needs its own number: each size, flavour, colour and pack count of a product gets a separate GTIN.
Making the barcode image
- Choose the format that matches your numberIn the Barcode Generator, pick UPC-A for a 12-digit GTIN or EAN-13 for a 13-digit one. EAN-8 and UPC-E are for small packs and need numbers issued in those formats.
- Enter the numberType it with or without the check digit and let the generator add or confirm it.
- Download a vector file for printSVG and PDF keep every bar at exactly the right width at any size. The tool never lets the quiet zone — the blank margin a scanner needs on each side — fall below what the format requires.
For a whole catalogue, Bulk Barcodes reads a CSV and checks every row's check digit before generating anything; a column can even set the format per row. To put a price and product name around the code for a shelf tag, use Barcode Poster. Everything is generated in your browser.
Are barcodes moving to QR codes?
Gradually. GS1 US is running a programme called Sunrise 2027 to move retail towards 2D barcodes, such as QR codes that carry the product's GTIN in the GS1 Digital Link format, so that the same code opens product information on a phone and scans at a checkout with an upgraded scanner. GS1 US also says it isn't necessary to implement every 2D capability by that date (GS1 US, Sunrise 2027, checked 4 November 2026). For now, a UPC-A or EAN-13 is still what a checkout expects to find.
Common questions
Tools in this article
Keep reading
- QR codes and barcodes that actually scanError correction, quiet zones, logo size, print dimensions and check digits — the practical rules that decide whether a printed code works on the first try.Guides
- Which ImageDoctor tool should you use? A guide to all of themA plain-language map of every tool on ImageDoctor, what each one is for, and how browser-based tools compare with upload-based sites and desktop software.Guides