GTIN and Barcode Number Validator
Check barcode lengths and GS1 check digits.
What Is a GTIN and Barcode Number Validator?
A GTIN and barcode number validator helps check whether a product identifier follows the expected numeric format and check-digit rule. Common GTIN formats contain 8, 12, 13, or 14 digits and appear with EAN and UPC barcodes. A correctly calculated check digit can reveal many typing or data-entry errors before an ecommerce feed is submitted. However, passing this mathematical test does not establish GS1 registration, product ownership, or Google Merchant Center approval.
GTIN and Barcode Number Validator
Check barcode lengths and GS1 check digits.
How to Check UPC, EAN and GTIN Numbers Before Publishing Product Listings
A product identifier may look like an arbitrary string of digits, but a genuine Global Trade Item Number (GTIN) has an established structure. One wrong digit can interfere with barcode scanning, retailer catalog matching, and Google Merchant Center product data. A number can also be mathematically correct while referring to the wrong product.
Begin with the identifier printed on the product packaging or supplied by its manufacturer. Enter it using the format accepted by the validator above and review the reported result against your original data. The examples below explain GTIN lengths, the GS1 check-digit calculation, data-import problems, and situations that require a separate GS1 lookup. They illustrate the standards, not unverified features or test results from this particular WordPress tool.
Read Full GuideShow Less
Recognize the Four Standard GTIN Lengths
A GTIN identifies a trade item. The barcode is the machine-readable symbol that can encode that identifier; the two words are related but do not mean exactly the same thing. EAN and UPC are familiar retail barcode names, while GTIN is the broader numbering system.
| GTIN format | Digits | Common association | Typical use |
|---|---|---|---|
| GTIN-8 | 8 | EAN-8 | Small retail items |
| GTIN-12 | 12 | UPC-A | Retail products, especially in North America |
| GTIN-13 | 13 | EAN-13 or JAN | Retail products in international markets |
| GTIN-14 | 14 | Often shown with ITF-14 | Trade and packaging configurations |
These are digit counts, not universal barcode-image requirements. A compressed UPC-E barcode is eight digits in its encoded form, but Google Merchant Center instructs merchants to expand UPC-E into a 12-digit UPC representation for its gtin field. Likewise, an older 10-character ISBN is not a standard GTIN-10; use ISBN-13 when submitting a book’s GTIN to Merchant Center.
How the GS1 Check Digit Is Calculated
The final digit in each standard GTIN is a check digit. It is derived from the preceding digits using alternating weights of 3 and 1, counting from the right of the body. The result is chosen so that the total weighted sum, including the check digit, is divisible by 10.
- Keep the identifier’s digits exactly as printed, including any leading zero.
- Exclude its final digit while calculating the expected check digit.
- Starting at the rightmost remaining digit, multiply by 3, then 1, alternating toward the left.
- Add the weighted products and find the amount needed to reach the next multiple of 10.
- Compare that result with the original last digit.
For example, the illustrative EAN-13 number 4006381333931 has the twelve-digit body 400638133393. Its weighted sum is 89; the next multiple of 10 is 90, so the correct final digit is 1. The number 4006381333932 fails this check because its final digit is 2. This calculation demonstrates the formula only; it does not verify the sample number’s registration or product assignment.
Important: the check digit catches many entry mistakes, but not all possible errors. Someone could change the identifier’s body and recompute a matching final digit. That new number might still have no legitimate relationship to the product.
What a Passing Barcode Validation Actually Means
Validation has several different levels. A simple number checker may confirm length, digits, and checksum. A stricter review may also examine GS1 prefix restrictions. To establish that a GTIN was assigned to the intended manufacturer or item, consult Verified by GS1 or original manufacturer documentation.
| Question | Best evidence | What it cannot guarantee |
|---|---|---|
| Does the number have a valid length? | Digit-count check | That the number is registered |
| Is the final digit correct? | GS1 modulo-10 calculation | That the number identifies your product |
| Who assigned the number? | GS1 registry or manufacturer records | That your Merchant Center account is approved |
| Is the shopping listing accepted? | Merchant Center’s actual item diagnostics | Guaranteed rankings or impressions |
A product can pass a checksum check and still have a restricted or unassigned prefix, an incorrect variant identifier, or an inaccurate manufacturer association. Treat those as separate investigations, not as a contradiction in the arithmetic.
Why Leading Zeros Disappear in Product Spreadsheets
A frequent catalog error occurs when spreadsheet software interprets barcode numbers as ordinary integers. An identifier such as 036000291452 contains twelve digits. If its first zero disappears, the exported value becomes 36000291452, which has only eleven digits and no longer represents the original text.
Import GTIN columns as text, not numbers. Avoid automatic trimming, scientific notation, decimal formatting, and formulas that rewrite identifier values. If you already lost leading zeros, recover the complete assigned number from the original source; do not guess how many zeros belonged at the front.
Some systems store shorter GTINs in 14-character fields by padding with leading zeros. That storage convention does not create a different assigned GTIN. Preserve the supplied identifier and use the representation requested by the receiving platform.
GTIN, SKU, MPN and Barcode Are Different Fields
An SKU is a seller’s internal stock-keeping identifier. An MPN is a manufacturer part number. A GTIN is a globally structured trade-item identifier; a barcode symbol is a way to encode data for scanning. They should not be substituted for one another simply because all appear next to the same product in inventory software.
For example, a retailer might call a product SHOE-BLK-42 in its own warehouse, while the manufacturer assigns a separate MPN and GTIN. Entering the SKU into Merchant Center’s gtin attribute will not make it a GTIN. If internal product IDs are duplicated, investigate them using the Duplicate SKU Finder; the problem is different from checksum validation.
Check the Identifier for the Exact Product Variant
Size, color, and package configuration can change which GTIN is appropriate. A blue shirt in size medium and the same shirt in size large are distinct sellable variants. Where the manufacturer assigns GTINs to those variants, Google expects the corresponding identifier for each one.
Review the manufacturer’s product listing, packaging, and variant record rather than copying the parent’s number across every child variation. For multipacks and manufacturer-created bundles, verify whether you need a separate identifier for the packaged trade item. Do not assume the individual product’s barcode always represents the larger package. The Product Variant Canonical Checker addresses a different aspect of product variants: their website URLs and canonical signals.
Why Google Merchant Center May Reject a Checksum-Valid GTIN
Google’s product-data rules go further than the check-digit formula. For its gtin attribute, Google documents restrictions affecting certain internal-use and coupon prefixes, and checks whether the identifier correctly represents the item. A number can therefore be mathematically valid but still receive an incorrect product identifier or invalid value issue.
Do not randomly replace the check digit when Merchant Center rejects a code. Check that the GTIN belongs to the manufacturer and the specific product, matches the intended packaging level, and was transferred accurately from your product database. Review the actual issue details in Merchant Center. Use the Merchant Center Product Feed Validator for a broader pre-submission review of feed attributes, according to its implemented functionality.
Products That Genuinely Do Not Have a GTIN
Some handmade, customized, vintage, and private-label products have no manufacturer-assigned GTIN. Google does not instruct sellers to invent one. Instead, supply appropriate other identifiers when they exist and follow its identifier_exists rules when a product genuinely lacks unique product identifiers.
For a new product with no assigned GTIN, MPN, or brand that meets Google’s criteria, identifier_exists can be submitted as no or false. Do not use that setting to hide an existing legitimate identifier or bypass a missing-data warning. If the manufacturer supplied a GTIN, use the correct assigned value.
A Practical Troubleshooting Sequence for Invalid Barcode Numbers
- Identify whether the number is intended to be a GTIN-8, GTIN-12, GTIN-13, or GTIN-14.
- Compare every digit with the physical packaging or the manufacturer’s product record.
- Check for missing leading zeros, spaces, pasted punctuation, or altered spreadsheet formatting.
- Calculate the expected check digit and compare it with the final digit.
- If the checksum passes but the number is questioned, review GS1 information, the product variant, and any platform-specific restrictions.
- Correct the authoritative catalog source, regenerate the feed, and inspect the latest destination-specific diagnostics.
For a feed-wide issue, distinguish a missing gtin column from wrong values inside that column. A Product Feed Format Converter or CSV Structure Validator may help inspect separate file-format issues, but neither substitutes for manufacturer identity verification.
Questions to Ask Before Using a Validated Number
Does a valid UPC mean a product is genuine? No. Checksum validity does not authenticate a physical item, its seller, or its manufacturer.
Can two sizes share the same GTIN? Separately identified trade-item variants generally require distinct manufacturer-assigned GTINs. Check the actual packaging and product data.
Can I create a GTIN by calculating a check digit? No. A completed number is not the same as an authorized GS1 assignment.
Is a valid barcode enough for a Google Shopping listing? No. Merchant Center also evaluates product attributes, site information, and applicable policies. A valid GTIN is only one input.