Printed a code and need to change the link? QR Gen makes codes you can edit later.Edit codes after printing with QR Gen.See QR Gen

Open on your phone

EAN-13 vs UPC-A: which barcode does your product need?

EAN-13 vs UPC-A with a worked check digit and the leading-zero trick. See which one Indian and US buyers ask for and how to convert between them.

A marketplace form asks for a UPC. Your supplier gave you 13 digits. Before you panic: EAN-13 and UPC-A are the same barcode with one digit of difference. UPC-A is 12 digits and EAN-13 is 13, and a UPC-A becomes a valid EAN-13 when you put a 0 in front. The comparison of EAN-13 vs UPC-A is therefore a question of region and paperwork, not of two incompatible symbols. For India, EAN-13 is the one to expect.

The rest of this page shows the proof with real digits, then covers where the two differ in practice: which buyers ask for which, and where scanners and spreadsheets quietly lose a zero. For the wider picture of barcode types, start with barcodes explained.

The zero that makes them the same

Take the UPC-A sample in our barcode maker: you type 11 digits, 03600029145, and it adds the twelfth.

UPC-A:   036000291452   (11 digits + check digit 2)
EAN-13: 0036000291452   (the same number with a 0 in front)

We drew both with JsBarcode, the library behind our maker, and compared the bars module by module. The 95 modules between the outer guards are identical. Seagull Scientific’s notes describe the relationship the same way: EAN-13 is a superset of UPC-A, so any system that can read EAN-13 can also read UPC-A, and a UPC-A can be turned into an EAN-13 by prefixing a zero.

That extra digit has no bars of its own. In an EAN-13 the first digit is signalled by the parity pattern of the left half. For a number that starts with 0, the pattern is the one a UPC-A already uses, which is why the bars do not change.

The check digit comes out the same too

The last digit is calculated from the others, and it does not care about the leading zero. GS1 UK’s method is to add alternate digits from the right, multiply by 3, add the rest, and take the smallest number that reaches a multiple of 10. Written as weights, the right-most digit before the check digit is multiplied by 3 and the weights then alternate 1, 3, 1, 3 going left. For the UPC-A body 03600029145:

Digit 0 3 6 0 0 0 2 9 1 4 5
Weight 3 1 3 1 3 1 3 1 3 1 3
Product 0 3 18 0 0 0 6 9 3 4 15

The products add to 58. The next multiple of 10 is 60, so the check digit is 2. Now the EAN-13 body 003600029145, 12 digits, with the weights counted from the right again:

Digit 0 0 3 6 0 0 0 2 9 1 4 5
Weight 1 3 1 3 1 3 1 3 1 3 1 3
Product 0 0 3 18 0 0 0 6 9 3 4 15

Still 58, still a check digit of 2. The added zero has weight 1 and contributes nothing. If you ever need to check a number by hand, the shortcut is that a 13-digit EAN-13 and its 12-digit UPC-A share one check digit.

For a number that begins with something other than zero, take 590123412345, our EAN-13 sample. Reading left to right with weights 1, 3, 1, 3 and so on, the products are 5, 27, 0, 3, 2, 9, 4, 3, 2, 9, 4 and 15, which add to 83. The next multiple of 10 is 90, so the check digit is 7 and the full number is 5901234123457. Type the 12 digits into the maker and it writes the 7 for you. Type 13 with a wrong last digit and it says the check digit does not match.

Going the other way works only sometimes

EAN-13 to UPC-A is possible only when the EAN-13 starts with 0. Strip the zero and you have the 12-digit UPC-A. An EAN-13 starting with 5, or with 890 for India, has no 12-digit twin. There is no leading zero to drop, and removing any other digit would change the number.

UPC-A also has a little structure of its own. Seagull’s UPC/EAN notes call its first digit the number system digit. In the EAN-13 form of the same number it simply becomes the second digit, behind the added zero.

Which one buyers ask for

The short version is geographic. GS1 India’s own explainer says UPC is predominantly used in North America, while EAN is accepted globally, and that most Indian products carry 13-digit codes. Amazon’s global selling guide for Indian exporters agrees from the other side: GTIN-12 (UPC-A) is widely used in North America for retail scanning, and GTIN-13 is the most common format globally, the one Indian exporters will meet most.

Here is how that plays out.

  • Selling in India: EAN-13 with a number from GS1 India. Indian numbers start with 890.
  • Selling on a marketplace that asks for “UPC or EAN”: give the EAN-13. If the form insists on 12 digits and your code has a leading 0, GS1 India says a leading zero can often convert it, though you should check with the platform.
  • Exporting to North America: the buyer decides. GS1 India says some platforms request UPC, others accept EAN without issue, and that compatibility depends on the destination market and platform. Ask the buyer in writing, before you print.
  • An EAN-13 that does not start with 0: it cannot be a UPC-A. If a buyer demands a UPC, you need a different number, not a different drawing.

That last point is the expensive one. Changing the picture is free. Changing the number means new artwork, new records and a new application if the number must come from a registry.

Read the number you already hold

Before deciding anything, look at what you have. The length and the first digits tell you most of it.

What you have What it is What to do
12 digits A UPC-A Use as is for North America; add a 0 in front if a form wants 13
13 digits starting with 0 A UPC-A with the zero added Drop the zero if a buyer needs 12 digits
13 digits starting with 890 An EAN-13 issued by GS1 India Use as is; it has no UPC form
13 digits starting with anything else An EAN-13 from another country’s office Use as is; it has no UPC form
8 digits An EAN-8, the short code for small packs Do not pad it to 13; it is a different number
14 digits A carton number, not a shelf code Draw it as ITF-14, not EAN-13

The 890 row follows GS1 India’s statement that Indian barcodes begin with 890 and that it alone may issue them. Size is no reason to choose one over the other. In our test both symbols came to 95 modules between the guards, so a label that fits one fits the other. EAN-8 is the odd one out at 67 modules.

Where a zero goes missing

The bars are the same, but the software around them is not always consistent about the zero. A thread on Zebra’s developer forum describes an Android scanner setup in which scanning an EAN-13 with a leading zero (the example is 0745114240422) returned 745114240422. The setting that kept the zero on EAN-13 also added one to UPC-A reads, and the reply suggested a rule to strip it again. The same effect shows up in spreadsheets: a column set to numbers throws leading zeros away.

Our advice, as an opinion with a reason: store every retail number as text, in one fixed width. Choose 13 digits, since every UPC-A pads cleanly to it, and convert at the edges only when a buyer needs 12. A single stored width means your stock sheet, your listing file and your printed code all agree.

Make either one

Open the barcode maker and pick the format.

  • EAN-13: type 12 digits; the 13th is added.
  • UPC-A: type 11 digits; the 12th is added.
  • To get the EAN-13 of a UPC-A, type a 0 and then the 11 digits into EAN-13. The result is the same bars as the UPC-A.

Both export to PNG and SVG. Before a print run, scan one printed copy with the scanner your buyer will use.

If the number itself is the problem, because you only have one you generated yourself, read how to get a barcode for your product in India next. For the small labels inside your own business, Code 128 vs Code 39 is the better comparison.

Ready to try it? Free, no sign-up, made in your browser.

Open the barcode maker