Barcode validation is the process of confirming that a GTIN (Global Trade Item Number) is structurally correct before it is used in packaging artwork, entered into retail systems, or submitted to online marketplaces. Validation catches formatting errors and invalid check digits early, reducing costly reprints and listing rejections.
What validation checks
A valid GTIN must satisfy three basic structural rules:
| Check | What it means | Example failure |
|---|---|---|
| Length | GTIN-8, GTIN-12, GTIN-13, or GTIN-14 only | 11-digit number submitted as GTIN-13 |
| Digit composition | All numeric characters, no letters or symbols | ”12345A7890123” |
| Check digit | Final digit mathematically verifies the preceding digits | Check digit calculates to 4, but 7 is supplied |
The check digit is calculated using a modulo-10 algorithm applied to the preceding digits. The algorithm is described on the Check Digits page.
GTIN lengths and prefixes
| GTIN type | Digits | Typical use |
|---|---|---|
| GTIN-8 | 8 | Small retail items with limited label space |
| GTIN-12 | 12 | North American retail (often encoded as UPC-A) |
| GTIN-13 | 13 | Global retail outside North America (often encoded as EAN-13) |
| GTIN-14 | 14 | Trade items, cases, and multipacks (includes packaging level indicator) |
A number may be a valid GTIN-13 but invalid as a GTIN-12, so always validate against the intended format.
What validation does NOT prove
Validation confirms mathematical correctness, not business acceptance. A structurally valid GTIN may still be rejected by retailers or marketplaces if:
- The number is not registered in the retailer’s database
- Product data (brand, description, dimensions, images) is missing or mismatched within the retailers database
- The GTIN is already assigned to a different product in that retailer’s system
- The retailer requires GS1-issued numbers and the GTIN originates from a barcode reseller
Common validation errors explains specific reasons retailers may reject to accept a product into their stores even with mathematically valid numbers.
When to validate
Reputable barcode suppliers will supply valid GTINs, but it never hurts to re-validate. The formatting page describes some of the avenues a valid GTIN can be accidentally altered into an invalid GTIN during the product creation pipeline.
Validate GTINs at these checkpoints:
- Before artwork approval — Incorrect numbers in print artwork require expensive reprints
- Before marketplace submission — Amazon, eBay, Google Shopping, and others validate GTINs against their catalogs; errors delay listing activation
- Before sending product data to retailers — EDI and GS1 GDSN submissions fail if GTINs are malformed
- When receiving numbers from suppliers — Validate incoming GTINs before adding to your product master data
Validation tools
Online validators
The GTIN Validator checks length, digit composition, and check digit in a single step. It accepts GTIN-8, GTIN-12, GTIN-13, and GTIN-14 inputs and identifies which format a number matches.
GS1 provides its own check digit calculator for users who need to verify or generate check digits manually.
Validation vs. verification
| Validation | Verification |
|---|---|
| Confirms the number is mathematically valid | Confirms the barcode image scans correctly |
| Can be performed on the number alone | Requires a physical or digital barcode image |
| Checks structure (length, digits, check digit) | Checks print quality, quiet zones, symbol contrast |
| Free and instant | May require specialized equipment or services |
Check digit calculators handle validation. Verification requires barcode image analysis and is often a service that a barcode service provider can provide for a fee. Verification typically performed before production runs and some retailers require evidence of verification in the form of a verification report before accepting products. Members of the International Barcodes Network can, depending on the region, supply barcode verification services directly or point you in the direction of a regional service provider who can.
Handling validation failures
| Error | Likely cause | Resolution |
|---|---|---|
| ”Invalid check digit” | Transposed digits, manual entry error, or corrupted data | Re-enter from original source; recalculate check digit |
| ”Incorrect length” | Wrong GTIN type assumed; leading zeros dropped or added | Confirm required format; pad with leading zeros only for GTIN-14 conversion |
| ”Contains non-numeric characters” | Spaces, hyphens, or letters included | Strip all non-numeric characters before validating |
| ”Unknown GTIN” in database lookup | Unregistered number, private assignment, or recent issuance | Confirm number source; register product data with target retailers |
Registering product data separately
Validation and data registration are independent steps. After confirming a GTIN is structurally valid, you must still supply product information to each retailer or marketplace:
- GS1 GDSN — Global data pool for major retailers
- Retailer portals — Direct upload to Walmart, Target, Amazon Brand Registry, etc.
- Marketplace feeds — Structured data files for e-commerce platforms
Without this registration step, a valid GTIN may return no product information at the point of sale.
Summary
- Validate GTINs for length, digit composition, and check digit before any production or submission step
- Use online tools like the GTIN Validator for quick checks
- Treat validation as a necessary but insufficient condition for retailer acceptance
- Register product data with each target retailer or marketplace separately
- Distinguish validation (number structure) from verification (barcode image quality)