How to validate GTIN barcodes on Shopify
Check Shopify barcode values for supported GTIN length, digits, check-digit errors, duplicate assignments, and the correct product-variant match.
A Shopify barcode can contain the expected number of digits and still identify the wrong product. Reliable GTIN validation has three layers: structural checks, ownership and assignment checks, and confirmation that the value belongs to the exact variant being sold.
Identify the type of GTIN you expect
GTIN is the family name for standardized trade item identifiers. Common examples include GTIN-12 for UPC, GTIN-13 for EAN, GTIN-14 for some packaging levels, and GTIN-8 for smaller items. Shopify stores these values in the variant barcode field and describes UPC, EAN, and ISBN as common examples.
Preserve leading zeros. A spreadsheet that converts a barcode to a number can remove them or display the value in scientific notation. Treat GTINs as text throughout exports, review files, and imports.
Check digits, length, and characters
A standard GTIN uses digits and includes a final check digit calculated from the preceding digits. Validate the supported length first, then calculate the check digit and compare it with the stored final digit. This catches many typing and transcription errors without needing a product database.
Passing the mathematical check does not prove that the number was assigned to the brand or item. Many invented numbers happen to have a valid check digit. Structural validation should therefore be labeled as one check, not as proof of marketplace acceptance or GS1 ownership.
A valid check digit proves arithmetic, not identity. Confirm the number against product packaging, the manufacturer, or the standards owner before changing Shopify or submitting a product feed.
Confirm the GTIN belongs to the exact variant
Compare the stored value with the packaging for the same size, color, quantity, and condition. Google advises that variants such as different colors or sizes need their own unique identifiers. Do not borrow a barcode from a neighboring variant merely because the product title is similar.
Also scan for duplicates across the catalog. A repeated GTIN can be an intentional duplicate listing, but it can also mean two variants compete for the same scanner lookup or feed match. Review the relationship before editing either record.
Do not invent a GTIN for a product that has none
Not every product has an assigned GTIN. Custom, handmade, vintage, or private-label goods can follow different identifier rules. Google says not to guess a GTIN or substitute a store-specific SKU when an assigned identifier is unavailable. Use its unique product identifier guidanceto determine the correct brand and MPN treatment for that sales channel.
Shopify'sGoogle & YouTube requirementssimilarly direct merchants to add a GTIN when the product has one and use brand plus MPN for products without one.
Verify the result at the destination
After correcting a barcode, rescan the Shopify catalog and then test the system that reported the problem. Scan the physical label in POS, inspect the warehouse lookup, or wait for the product feed to synchronize and review its diagnostics. A clean field in Shopify is only the first half of the check.
For a broader catalog workflow, start withhow to audit SKUs and barcodes on Shopify. If the issue is a repeated value rather than invalid structure, use the separateduplicate correction process.