The short answer

  • Is EAN the same as GTIN? Yes. An EAN is a 13-digit GTIN (GTIN-13).
  • Is UPC the same as GTIN? Yes. A UPC is a 12-digit GTIN (GTIN-12).
  • Is a GTIN a barcode? A GTIN is the number. The barcode (EAN-13, UPC-A or ITF-14) is the bars printed from it.
  • UPC vs EAN: the same product number. An EAN-13 is a UPC-A with a 0 in front.
  • SKU vs GTIN: a SKU is your own code. A GTIN is unique worldwide and comes from GS1.
  • ASIN vs GTIN: an ASIN is Amazon's own number. Amazon uses your GTIN to match a product or create its ASIN.

GTIN (Global Trade Item Number) is the number that identifies a product anywhere in the world. EAN and UPC are the barcode formats that carry it: an EAN-13 barcode carries a 13-digit GTIN (GTIN-13), a UPC-A barcode a 12-digit GTIN (GTIN-12). EAN is used in most countries, UPC mainly in the United States and Canada. Both come from GS1, and shop scanners read both.

Using Shopify? SGT is our app for this: see it on the Shopify App Store (free plan, 4.8 from 53 reviews).

EAN, UPC and GTIN compared

BarcodeNumberUsed forExample
UPC-AGTIN-12Shops in the US and Canada036000291452
EAN-13GTIN-13Shops in most other countries4006381333931
EAN-8GTIN-8Very small packs96385074
ITF-14GTIN-14Cartons and cases10036000291459
EAN-13ISBNBooks (978 or 979)9780306406157
Code 128Not a GTINYour own codes and SKUsTEE-CLS-RED-M

The number after GTIN is its number of digits. Every example has a valid check digit.

EAN vs GTIN: is an EAN the same as a GTIN?

In practice, yes. EAN (European Article Number) is the older name. GS1 now calls the 13-digit number a GTIN-13 and the bars printed from it an EAN-13 barcode, so "EAN code" in daily use means a 13-digit GTIN. The difference is the name, not the number: when a marketplace or Google Merchant Center asks for a GTIN, your EAN is the answer.

GTIN vs UPC: is a UPC a GTIN?

Yes. A UPC-A is a 12-digit GTIN, the format shops in the US and Canada have scanned since the 1970s. "UPC code" usually means the 12 digits and "UPC barcode" the bars printed from them. A GTIN can also have 8, 13 or 14 digits, so not every GTIN is a UPC.

How to turn a UPC into an EAN-13 or a GTIN-14

  • UPC-A to EAN-13: put a 0 in front. 036000291452 becomes 0036000291452: the same product and the same check digit. That is why scanners outside North America read UPC labels.
  • For a database, feed or spreadsheet: GS1 keeps every GTIN as 14 digits, padded with zeros on the left: 00036000291452. It is still the same product.
  • For a carton of that product: a case needs its own GTIN-14, made from a packaging indicator (1 to 8) and a new check digit, such as 10036000291459. Print it as ITF-14 on the box, never on the single items.

How the check digit works

The last digit of every UPC, EAN and GTIN is calculated from the others, so a scanner can catch a misread or a typo. For the UPC 036000291452, whose check digit is the final 2:

  1. Add the digits in the odd positions (1st, 3rd, 5th and so on): 0 + 6 + 0 + 2 + 1 + 5 = 14. Multiply by 3: 42.
  2. Add the digits in the even positions: 3 + 0 + 0 + 9 + 4 = 16.
  3. Add both: 42 + 16 = 58. The check digit is what brings that to the next multiple of 10: 60 minus 58 = 2.

A code with a wrong check digit fails to scan, or a label tool quietly replaces the digit and the label scans as a different product. SGT checks every code against its barcode format and refuses to print one that would scan as another number.

What is ITF-14?

ITF-14 is the barcode for a GTIN-14 on outer cartons and shipping cases. It is printed large, often inside a thick frame (bearer bars), so it scans even on corrugated cardboard. Warehouses and distributors scan it; shop tills usually do not. SGT generates ITF-14 codes from your GS1 prefix and prints full 14-digit codes as ITF-14 barcodes.

Where do GTINs come from?

From GS1, the non-profit organisation behind retail barcodes, through the GS1 office in your country, such as GS1 US, GS1 UK or GS1 Germany. You license a company prefix, and every GTIN you build from it identifies your business. Some GS1 offices, such as GS1 US, also sell single GTINs if you only need a few.

Numbers sold cheaply by resellers are often old prefixes first licensed to another company. GS1's lookup will not show your business as the owner, and Amazon and many retailers check that. If you sell through them, license your own prefix. Country details: US, UK, Germany, Canada, Australia, India, UAE.

Which one does a Shopify store need?

Each of them goes in the same main field: Barcode (ISBN, UPC, GTIN, etc.) on every variant. What goes in it depends on where you sell:

  • Through retailers, Amazon or other marketplaces: a GTIN from your own GS1 company prefix. UPC-A in the US and Canada, EAN-13 almost everywhere else.
  • Google Shopping: Google Merchant Center asks for the GTIN of products that have one. Use the manufacturer's GTIN when you resell a brand, your own when you make the product.
  • Only your own shop, stockroom and Shopify POS: you do not need GS1. Internal codes, or your SKU printed as a Code 128 barcode, scan perfectly in your own systems.

SGT builds valid UPC-A, EAN-13, EAN-8 and ITF-14 codes from your GS1 prefix for every variant and prints them on labels. See how to add barcodes to Shopify products.

Not sure which to use? See which barcode you need for each use.

Shipping to EU customers from outside the EU? See Shopify EU product identifiers.

Prefer video? Watch the 90-second SGT tour on YouTube.

Frequently asked questions

Shopify asks for a barcode type or NS-PID. What do I do?

Choosing a type is optional in Shopify. Custom is the default, and if a saved Custom barcode is a valid GTIN, Shopify suggests GTIN for you. NS-PID is for your own model or part numbers, and is used on customs declarations for shipments to the EU.

Is EAN the same as GTIN?

An EAN-13 is a 13-digit GTIN. EAN is the older name for the number and the name of the barcode; GTIN-13 is GS1's current name for the number. So an EAN code is a GTIN.

Are GTIN and UPC the same?

A UPC-A is a 12-digit GTIN (GTIN-12). Every UPC is a GTIN, but a GTIN can also have 8, 13 or 14 digits.

What is the difference between GTIN and UPC?

GTIN is the general name for GS1 product numbers of 8, 12, 13 or 14 digits. UPC is the 12-digit one, used mainly in the United States and Canada.

How do I convert a UPC to a GTIN?

Your UPC already is a GTIN-12. For a 13-digit EAN field, put a 0 in front. For a 14-digit field, pad it with zeros on the left. The check digit stays the same.

What is ITF-14 used for?

ITF-14 is the barcode for a GTIN-14 on outer cartons and cases. Warehouses scan it; single items in a shop carry an EAN-13 or UPC-A barcode instead.

Is an ISBN a GTIN?

Yes. A 13-digit ISBN starting with 978 or 979 is a GTIN-13 and is printed as an EAN-13 barcode on the back of the book.

Where can I buy barcodes in Germany?

From GS1 Germany, which licenses company prefixes for EAN-13 codes. Codes from resellers may be registered to another company.

Can I make up my own UPC numbers?

You can generate numbers in the right format, but they are only legitimately yours if the prefix is licensed to you by GS1. For internal use, Code 128 or internal codes avoid any conflict.

Is a GTIN the same as a SKU?

No. A SKU is your own internal code. A GTIN is a standardised number registered through GS1. Many stores use both.

Is a GTIN a barcode?

Not exactly. A GTIN is the product number. A barcode is how it is printed so a scanner can read it: an EAN-13 or UPC-A barcode on the product, an ITF-14 on the carton. When a form asks for a GTIN, type the digits under the barcode.

What is the difference between ASIN and GTIN?

A GTIN (UPC or EAN) comes from GS1 and works everywhere. An ASIN is a number Amazon gives each product in its own catalogue. To list a new product, Amazon asks for its GTIN and then creates or matches the ASIN.

Written by SingleTec, the team that builds and supports SGT, a Built for Shopify app on the Shopify App Store since 2023.