UPC check digit calculator and GTIN checker
Check a UPC-A, UPC-E, EAN-13 or GTIN-14, or paste a whole column. Every code gets a valid or not valid answer, the reason it fails and a fix, and the check digit math is shown step by step.
This checks digits, not products. It cannot look up what a UPC belongs to: use Verified by GS1.
Nothing you paste leaves your browser. One code a line, or a whole spreadsheet column, or a CSV with a header row.
Paste a code to see the result here.
What is a UPC code?
A UPC, or Universal Product Code, is the 12-digit number under the barcode on most products sold in the US and Canada. It is a GTIN-12, the 12-digit kind of Global Trade Item Number, and it is also called a UPC-A.
Small packs use UPC-E, an 8-digit short form that leaves zeros out of the middle of the number. It stands for a full 12-digit UPC-A, and the tool expands it for you.
Prefixes run from 6 to 10 digits, counting the first, so the split between company prefix and item reference moves from brand to brand. The digits alone do not show where it falls.
- Number system digit
- The first digit. 0 is an ordinary product. Other digits mark coupons, weighed goods and store labels.
- GS1 company prefix
- Assigned by GS1 when a brand licenses a prefix.
- Item reference
- Chosen by the brand for each product, size and variant.
- Check digit
- Worked out from the other 11 digits. See how it works below.
UPC vs EAN vs GTIN
GTIN is the family name. UPC and EAN are the barcode types that carry a GTIN, and they all use the same mod 10 check digit.
| Type | GTIN | Digits | Used for | Good to know |
|---|---|---|---|---|
| UPC-A | GTIN-12 | 12 | Products in the US and Canada | The usual retail barcode there. |
| UPC-E | Expands to GTIN-12 | 8 printed | Small packs in the US and Canada | Expands to 12 digits before you use it in a feed. |
| EAN-13 | GTIN-13 | 13 | Products in the rest of the world | A UPC-A with a leading 0 is the same item as the EAN-13. |
| EAN-8 | GTIN-8 | 8 | Small packs | Its own number, not a short form of an EAN-13. |
| GTIN-14 | GTIN-14 | 14 | Cases and cartons | The first digit is the packaging indicator. The check digit is worked out again. |
| ISBN-13 | GTIN-13 | 13 | Books | Starts with 978 or 979. |
How the check digit works
The last digit of a UPC, EAN or other GTIN is a check digit. It is worked out from the digits before it, so a mistyped digit usually stops the two matching. GS1, the body that issues barcode numbers, calls the method mod 10. By hand:
- Leave off the last digit.
- From the right, multiply the digits by 3, then 1, then 3, and so on.
- Add up the results.
- The check digit is what takes the sum up to the next multiple of 10. A sum that already ends in 0 gives 0.
A valid check digit catches typos. It does not show that a GS1 member assigned the code to your product: GS1's own lookup does that.
| 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 up to 58. The next multiple of 10 is 60, so the check digit is 2 and the full UPC-A is 036000291452.
What the results mean
When a code fails, the table says why in a sentence. These are the reasons you will see most.
- Wrong check digit
- The last digit does not match the others. The tool shows the digit that would fit, but a different digit may be the typo, so check the barcode on the product before you use it.
- Wrong length
- A GTIN has 8, 12, 13 or 14 digits. Eleven digits is often a UPC that lost its leading zero.
- Not only digits
- A letter or symbol is in the code. A capital O typed for a zero is the usual cause.
- UPC-E, expand it
- An 8-digit UPC-E is the short code printed on small packs. WooCommerce and feeds want its 12-digit UPC-A, which the tool gives.
- ISBN-10, convert it
- A book's 10-character ISBN is not a GTIN. Its ISBN-13, which starts with 978, is. The tool works it out.
- Spreadsheet damage
- Spreadsheets drop leading zeros and turn long codes into numbers like 4.00638E+12. Format the column as Text before you paste codes in.
How to get real UPC codes
Real UPCs come from GS1, the non-profit that runs the barcode system. In the US you license a company prefix from GS1 US. GS1 charges a yearly fee, set by how many codes you need. You then give each product its own item reference, and the check digit completes the number.
Resold "cheap barcodes" are a risk. The numbers may sit under the reseller's prefix and not be listed under your brand, and Amazon and Google check codes against GS1 data, so a listing can be refused.
A valid UPC is not always yours
You cannot make up a UPC that works. Any number with the right check digit passes this tool, whether or not anyone has registered it, and a code copied from another product passes too.
To see which company a code is registered to, use Verified by GS1, which replaced GEPIR, GS1's older company lookup. If you resell another brand's product, use the code on its package, never one of your own.
Why AI shopping agents and Google Merchant Center need valid GTINs
A GTIN is how one product is told apart from every other. When it is wrong or missing, your listing is hard to match to the same item in other stores.
Google Merchant Center
Merchant Center uses GTINs to match your product to the same product in Google's catalog. It checks them, and a product with an invalid GTIN gets an issue in your diagnostics and may stop showing until you fix it. Our guide to the Google product feed for WooCommerce covers the other fields Merchant Center asks for.
ChatGPT, Gemini and Perplexity
Shopping agents read structured product data, such as the gtin12 and gtin13 properties in schema.org Product markup, to tell whether two listings are the same item. None of them publishes exactly how it matches, so a valid GTIN is no promise of a place in an answer. A bad or missing one takes away a signal you control. Once a code checks out, the Product schema markup generator puts it in the right gtin property for you.
See how the rest of a product page reads with the free product data checker, or download the free plugin to run this check on every product.
Where GTINs go in WooCommerce
Since WooCommerce 9.2, a product has a "GTIN, UPC, EAN, or ISBN" field on the Inventory tab, just below the SKU. A variable product has the same field on each variation, so every size and colour can carry its own code.
Fix the codes here, then enter them or import them. Our guide, GTINs for WooCommerce: where to find them and where to enter them, covers where a code comes from and what to do when a product has none. WooCommerce SEO shows where the GTIN field fits among the rest of your product data.
Check the whole store, not only a list
The free Agent Ready Shops plugin runs this same check on each product and variation it reads, up to 100 of your newest and best-selling products, and names the ones that fail. GTIN and MPN are worth 15 of the 100 points in its score, and one audit covers what ChatGPT, Gemini and Perplexity read.
Feed plugins such as Feedship and PromptStocked check products while they build a ChatGPT feed. This calculator is free, with no install and no feed, and works on any list of codes. See how they compare.
What we found in real stores
Most of the WooCommerce stores in our study left this field empty. When we ran our audit once on 127 stores from WooCommerce's own showcase on November 21, 2026, 103 of the 121 stores whose product pages we could read (85%) had no barcode in the markup of any page we read, and only 48 of 886 product pages (5%) had one. What we found in 127 WooCommerce stores has the method and its limits.
Brand-name Shopify stores did better, partly because Shopify publishes each variant's barcode. In our audit of 67 Shopify stores on October 29, 2026, the typical store had a valid barcode on 62% of its variants, only 23 had one on at least 90%, and 9 had none at all.
See your own score first.
The audit is free, needs no account and runs on your own site. It scores your store 0 to 100 and ranks the three fixes that matter most.
Then read the product data checklist or the guide to adding GTINs.
Questions
What is a UPC code?
A UPC is the 12-digit number under the barcode on most products sold in the US and Canada. It is also called a UPC-A or a GTIN-12. The first digit is the number system digit, then come the GS1 company prefix, the item reference the brand chose and a check digit.
Can I look up a product by its UPC here?
No. This tool checks that a code is well formed and that its check digit is right. It is not a product database, so it cannot tell you what a UPC belongs to. To see which company a code is registered to, use Verified by GS1.
How do I calculate a UPC check digit?
Multiply the first 11 digits by 3, 1, 3, 1 and so on from the left, add up the results, and the check digit is what takes the sum up to the next multiple of 10. Or choose Calculate a check digit in the tool and enter the 11 digits: it shows each step.
What is the difference between UPC and EAN?
A UPC has 12 digits and is used mainly in the US and Canada. An EAN-13 has 13 digits and is used in the rest of the world. A UPC-A with a 0 added at the front is a valid EAN-13 for the same item. Both are GTINs and use the same check digit method.
How do I get a UPC for my product?
License a company prefix from GS1, which is GS1 US in the US, then give each product its own item reference. GS1 charges a yearly fee based on how many codes you need. You cannot make up a number that passes: a valid check digit does not mean the code is registered to you.
What is a GTIN check digit?
It is the last digit of a GTIN, worked out from the digits before it with the GS1 mod 10 method. If one digit is mistyped, the check digit usually no longer matches, so a wrong code can be caught before it reaches a feed or a marketplace.
Is a UPC a GTIN?
Yes. A UPC-A is a 12-digit GTIN, and an EAN-13 is a 13-digit GTIN. GTIN is the family name: GTIN-8, GTIN-12, GTIN-13 and GTIN-14 all use the same check digit method. The short 8-digit UPC-E is expanded to its 12-digit UPC-A before it is used in WooCommerce or a feed.
Can a code with a valid check digit still be wrong?
Yes. A valid check digit shows the number is well formed, not that a GS1 member assigned it to your product. A code copied from another product, or a made-up number that happens to add up, passes. GS1's own lookup tells you who the code belongs to.
Do you store the codes I paste?
No. The check runs in your browser. Nothing you paste or open is sent to us or anyone else, and there is no account. A file you open with the CSV button is read on your own computer.
Why does my spreadsheet show 4.00638E+12 instead of my code?
The spreadsheet read the code as a number and shortened it, and the digits it dropped are gone. Format the column as Text, enter or import the codes again from the source, and copy them from there.