Free tool · GTIN / UPC / EAN
GTIN checker
Validate a barcode number, calculate the check digit.
Enter a UPC, EAN or other GTIN. The checker validates the check digit, calculates it when the last digit is missing and draws an EAN-13 barcode you can download as SVG.
It also warns about number ranges that Google Shopping does not accept according to the Merchant Center help. It does not create new numbers: valid GTINs are assigned by GS1.
GTIN explained
GTIN, UPC and EAN
The GTIN (Global Trade Item Number) identifies a product worldwide. UPC and EAN are the names of its most common formats; the last digit of every GTIN is a check digit calculated from the others.
| Format | Digits | Typical use |
|---|---|---|
| GTIN-12 (UPC-A) | 12 | Products in North America |
| GTIN-13 (EAN-13) | 13 | Products in Europe and most other countries |
| GTIN-8 (EAN-8) | 8 | Short version for small packs |
| GTIN-14 (ITF-14) | 14 | Multipacks and outer cases |
How to calculate a check digit
GS1 describes three steps: starting from the right, multiply each digit (without the check digit) alternately by 3 and 1. Add the results together. Subtract the sum from the nearest equal or higher multiple of ten; the difference is the check digit.
Example UPC-A 03600029145
0·3 + 3·1 + 6·3 + 0·1 + 0·3 + 0·1 + 2·3 + 9·1 + 1·3 + 4·1 + 5·3 = 58
60 − 58 = 2 → UPC 036000291452
The check digit catches single typos and most swapped digits. It does not tell you whether the number has actually been assigned or belongs to your product.
GTINs in Google Shopping
The Merchant Center help for the gtin attribute lists, among other things:
- “Make sure that the check digit is present and correct using the GS1 Check digit calculator.”
- No GTINs in the restricted ranges (prefixes 02, 04 or 2) or in the coupon ranges (05, 98 or 99).
- UPC is a 12-digit number, EAN a 13-digit number: “If you've both, include only the 13-digit number.”
- “When in doubt don’t provide a GTIN (for example, don’t guess or make up a value).”
So a store cannot simply generate numbers with a matching check digit. For your own products you license a company prefix from GS1; for branded goods you use the manufacturer's GTIN. Once you have valid numbers, the barcode generator draws them as EAN-13, UPC-A or Code 128.
GTIN FAQ
How do I calculate a GTIN or UPC check digit?
Take the digits without the check digit and, starting from the right, multiply them alternately by 3 and 1. Add the results and subtract the sum from the nearest equal or higher multiple of ten. The difference is the check digit. Example: for the UPC 03600029145 the sum is 58, 60 minus 58 is 2, so the complete UPC is 036000291452.
What is the difference between GTIN, UPC and EAN?
GTIN (Global Trade Item Number) is the umbrella term. A UPC-A is a 12-digit GTIN-12, mainly used in North America; an EAN-13 is a 13-digit GTIN-13, used in Europe and most other countries. A UPC becomes the matching EAN-13 by adding a leading zero, with the same check digit.
Can I generate my own GTIN or UPC with this tool?
No. The tool only calculates and validates the check digit. A valid GTIN starts with a company prefix that GS1 licenses to businesses. Google's Merchant Center help says: “When in doubt don’t provide a GTIN (for example, don’t guess or make up a value).”
Which GTINs does Google Shopping reject?
According to the Merchant Center help: GTINs without a correct check digit, GTINs in the restricted ranges (prefixes 02, 04 or 2) and GTINs in the coupon ranges (05, 98 or 99). If a product has both a 12-digit and a 13-digit number, submit only the 13-digit one.
I entered 12 digits and the check digit is wrong. What now?
12 digits can be a UPC-A with a wrong digit or an EAN-13 without its check digit. The checker shows both readings. Compare the number with the packaging: a UPC printed under a barcode has 12 digits, an EAN 13.
For online stores
Let shoppers find products by barcode number
Grumeria is a typo-tolerant site search for online stores. If your product feed has the GTIN in the Google Shopping attribute gtin, it is searchable: a customer who types the UPC or EAN from the packaging lands on the product. The free feed check reads WooCommerce, Shopify, Magento and PrestaShop stores straight from the store address.
- 14-day free trial, no payment method needed
- Then from €29 a month (excl. VAT)
- Free feed check, no account needed