GTIN Check Digit Calculator and Validator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free GTIN check digit calculator. Validate a GTIN-8, UPC-A (12), EAN-13 or GTIN-14, or work out its check digit, for Merchant Center product feeds.
- Type
- 0
- Check digit
- 0
- As GTIN-14
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the GTIN check digit calculator
- To validate a code, enter the full GTIN: 8 digits (EAN-8), 12 digits (UPC-A), 13 digits (EAN-13) or 14 digits (GTIN-14).
- To work out a check digit, enter the code without its last digit: 7, 11, 12 or 13 digits.
- Read the result: whether the code is valid (and what the check digit should be if it isn't), the code type, and the code written as a 14-digit GTIN.
Spaces and hyphens are ignored. The GTIN check digit calculator runs in your browser.
What a GTIN is
A GTIN (Global Trade Item Number) is the number under a product's barcode. It identifies a specific product worldwide. You'll see it under different names:
| Name | Digits | Common in |
|---|---|---|
| EAN-8 (GTIN-8) | 8 | Small packages |
| UPC-A (GTIN-12) | 12 | United States and Canada |
| EAN-13 (GTIN-13) | 13 | Europe and most of the world |
| GTIN-14 | 14 | Cases and cartons of products |
GTINs are issued through GS1, the global standards organisation, to the brand that makes the product.
Why GTINs matter for Google Shopping
In Google Merchant Center, the gtin attribute is a unique product identifier. When a product has a GTIN from its manufacturer, providing it correctly helps Google:
- understand exactly which product you sell;
- match it with searches and with other information about the product;
- show it in more relevant places.
Products with incorrect GTINs can be limited or disapproved. A common cause is a typo, and the check digit is how GTINs catch typos.
What the check digit is
The last digit of every GTIN is a check digit, calculated from the others. If any digit is mistyped, the check digit almost always stops matching, so software can spot the error.
How the check digit is calculated
GS1 uses a "modulo 10" method:
- Take all the digits except the check digit.
- Starting from the rightmost of those digits, multiply them alternately by 3 and 1 (3, 1, 3, 1…).
- Add up the results.
- The check digit is the number you'd add to reach the next multiple of 10. If the total is already a multiple of 10, the check digit is 0.
For the EAN-13 code 4006381333931: the first 12 digits, weighted from the right by 3, 1, 3, 1…, add up to 89. The next multiple of 10 is 90, so the check digit is 1, and the code is valid.
Converting to GTIN-14
Any GTIN can be written as 14 digits by adding zeros at the front. A 12-digit UPC 036000291452 becomes 00036000291452. The check digit stays the same, because leading zeros don't change the calculation. Some systems store all GTINs as 14 digits for consistency.
When a product has no GTIN
Not every product has one. Custom-made goods, handmade items, some vintage products and products sold only under your own brand may not. In Merchant Center, you can indicate that a product has no unique identifier. Never invent a GTIN or reuse one from a different product: Google can detect invalid or mismatched GTINs.
Valid isn't the same as correct
A valid check digit only shows the number is well formed. It doesn't prove the GTIN belongs to the product you're selling. Always take GTINs from the product's packaging or the manufacturer's data, and use the check to catch typing mistakes.
Using GTINs with other feed improvements
GTINs work alongside good titles and product data. The Merchant Center title builder helps write titles that match how shoppers search, and the barcode generator creates barcode images if you need them for your own labels.
A worked example
An online shop is fixing Merchant Center errors. It checks three codes from its feed:
- 4006381333931 (13 digits): valid EAN-13.
- 036000291452 (12 digits): valid UPC-A.
- 036000291453: not valid; the check digit should be 2. A typo in the last digit. The shop checks the packaging and corrects it to 036000291452.
It also has a code missing its last digit, 03600029145. The calculator adds the check digit, giving 036000291452.
Where GTINs come from
GTINs are issued by GS1 member organisations in each country. Brands that make products license a company prefix from GS1 and assign GTINs to each of their products. If you resell other brands' products, the GTIN comes from the manufacturer, usually printed under the barcode on the packaging or listed in supplier data. If you make your own products and want GTINs, you'd license them from your local GS1 organisation. Numbers bought from unofficial resellers may not be accepted by retailers and marketplaces, because they can conflict with GS1's records.
GTINs in your Merchant Center feed
In your product feed, submit the GTIN in the gtin attribute, as digits only, without spaces or dashes. Merchant Center accepts the standard lengths: 8, 12, 13 and 14 digits. If a product has variants, each variant usually has its own GTIN; make sure each one is submitted with the right variant. Merchant Center flags invalid GTINs in its diagnostics, which is often how errors are first noticed.
Common GTIN mistakes
- Typos, caught by the check digit.
- Leading zeros dropped by spreadsheets that treat the GTIN as a number. A UPC like 036000291452 can become 36000291452 if a spreadsheet removes the leading zero. Format the column as text before editing.
- Scientific notation: long numbers can turn into formats like 4.00638E+12 in spreadsheets. Again, format as text.
- The same GTIN on several products, often copied by mistake.
- Internal SKUs entered as GTINs. Your own stock codes belong in other attributes, such as MPN or ID.
Checking each code with this calculator, and keeping GTIN columns as text, prevents most of these problems.
Glossary
- GTIN: Global Trade Item Number, the number under a product's barcode.
- UPC-A: the 12-digit GTIN common in North America.
- EAN-13: the 13-digit GTIN used in most other countries.
- GTIN-14: a 14-digit GTIN, often used for cases and cartons.
- Check digit: the last digit, calculated from the others to catch typing errors.
- GS1: the global organisation that issues GTINs.
- MPN: manufacturer part number, another product identifier.
- Unique product identifier: GTIN, brand and MPN, used by Merchant Center to identify products.
Mistakes to avoid
- Editing GTINs in spreadsheets formatted as numbers, which drops leading zeros or shows scientific notation.
- Entering your own SKU in the GTIN attribute.
- Reusing a GTIN across different products or variants.
- Inventing GTINs for products that don't have one, instead of marking them as having no identifier.
- Fixing only the check digit without confirming the rest of the number against the packaging.
Checking every GTIN before it goes into the feed avoids most Merchant Center identifier errors.
Who this tool is for
The GTIN check digit calculator is for online sellers fixing Merchant Center identifier errors, catalogue managers checking product data before an upload, and anyone working with barcode numbers in spreadsheets, where typos and dropped leading zeros are common. It checks one code at a time quickly, which is ideal for investigating the specific products Merchant Center flags. For a whole catalogue, the same check digit rule can be built into a spreadsheet formula or feed process, and this tool used to confirm the results on a sample of products.
Privacy
The calculator runs entirely in your browser. The codes you check are never uploaded or stored, so you can check unreleased products and supplier data safely.
Want someone to run the ads for you?
Want these numbers to improve? These numbers only improve when the account behind them is run well, search term by search term. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
Frequently asked questions
How do you calculate a GTIN check digit?
From the right, multiply the digits alternately by 3 and 1, add them up, and the check digit is what brings the total to the next multiple of 10.
What is the difference between UPC and EAN?
UPC-A has 12 digits and is common in North America; EAN-13 has 13 and is used in most other countries. Both are GTINs.
Does Google Shopping require a GTIN?
For products that have one from their manufacturer, providing it is strongly recommended and sometimes required. Products without a GTIN can be marked as such.
Can I make up a GTIN for my product?
No. GTINs are issued through GS1. Invented or reused GTINs can get products disapproved.
Does a valid check digit mean the GTIN is correct?
It means the number is well formed, not that it belongs to your product. Always take GTINs from the manufacturer.
Is the GTIN check digit calculator free?
Yes. It's free, needs no sign-up, and runs in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.