A single wrong digit in a product barcode is enough to make it fail at the checkout scanner, get rejected by a marketplace, or trigger mass returns. Before you send artwork to the printer, spend 30 seconds validating.
This tutorial explains what GTIN is, how the check digit works, the difference between validating structure and verifying GS1 registration, and how to use the Code2Scan barcode checker step by step.
What Is GTIN?
GTIN stands for Global Trade Item Number — the international standard behind every consumer product barcode.
In practice, you know the GTIN by the visual format name:
| Format | Digits | Typical Use |
|---|---|---|
| EAN-13 | 13 | Retail products worldwide |
| EAN-8 | 8 | Small packages (candy, capsules) |
| UPC-A | 12 | North American market |
| ITF-14 | 14 | Shipping cases (wholesale/logistics) |
| GS1-128 | variable | Logistics, healthcare, food |
All these formats are technically GTIN variants with different lengths. The EAN-13 on a shampoo bottle is a GTIN-13.
How the Check Digit Works
The last digit of any EAN or GTIN barcode is the check digit. It doesn't identify the product — it exists solely to detect typing or printing errors.
The calculation follows the GS1-adapted Luhn/modulo-10 algorithm:
- Take the digits left to right, excluding the last one.
- Multiply each position alternately by 3 and 1 (starting from the rightmost non-check digit).
- Sum all results.
- The check digit is the number that brings the total up to the next multiple of 10.
Example with EAN-13: 789 1234 56789 ?
| Position | Digit | Factor | Result |
|---|---|---|---|
| 1 | 7 | 1 | 7 |
| 2 | 8 | 3 | 24 |
| 3 | 9 | 1 | 9 |
| 4 | 1 | 3 | 3 |
| 5 | 2 | 1 | 2 |
| 6 | 3 | 3 | 9 |
| 7 | 4 | 1 | 4 |
| 8 | 5 | 3 | 15 |
| 9 | 6 | 1 | 6 |
| 10 | 7 | 3 | 21 |
| 11 | 8 | 1 | 8 |
| 12 | 9 | 3 | 27 |
| Sum | 135 |
Next multiple of 10 above 135 is 140. Check digit = 140 − 135 = 5.
Doing this by hand is tedious and error-prone. The checker does it in milliseconds.
Validating Structure vs. Verifying GS1 Registration
This is the most common point of confusion. They are two very different things:
Validating structure (what the Code2Scan checker does):
- Does the number have the correct length for the declared format?
- Is the check digit correct?
- Does the country prefix fall within valid GS1 ranges?
Verifying GS1 registration:
- Was that specific GTIN purchased from GS1 by a company?
- Is there a product registered with that code?
Structural validation is sufficient to know whether the barcode will work at checkout scanners. Registration verification is required if you want to sell through major retailers or export.
To sell on Amazon, eBay, and Walmart Marketplace, you need a GS1-registered GTIN, not just a structurally valid one.
Why Validate Before Printing?
- Rework costs: reprinting packaging is expensive. A typo in the EAN can cost weeks of delay.
- POS rejection: supermarket and pharmacy checkout scanners read the code — if the checksum fails, the product won't sell.
- Marketplace rejection: Amazon and other platforms validate GTIN automatically when you list a product.
- Supply chain traceability: distributors and retail chains require valid ITF-14 on shipping cases for warehouse system entry.
Validation is the cheapest step in the chain.
Step by Step in the Code2Scan Barcode Checker
- Open the checker at /en/barcode-checker.
- Type or paste the full barcode (including the check digit).
- Select the format (EAN-13, EAN-8, UPC-A, ITF-14) or leave it on "Auto-detect".
- Click Check.
- The result shows:
- ✅ Valid structure — correct length, checksum passes.
- ❌ Incorrect check digit — the correct value is displayed.
- ⚠️ Invalid prefix — the code starts with a range not recognized by GS1.
- If there is an error, fix the digit and verify again before sending to the printer.
You can also check multiple barcodes in sequence — useful when registering an entire product line.
Practical Uses by Sector
Manufacturing and Packaging
Before finalizing packaging artwork, verify all GTINs for the product, box, and pallet. An error in the ITF-14 blocks entry at the retailer's distribution center.
E-commerce and Marketplace
Amazon and other platforms require a valid GTIN to create a new listing. Validating beforehand avoids error messages during product setup.
Import and Export
When importing products, check that the manufacturer's EAN is structurally valid. When exporting, ensure the UPC-A is correct for the North American market.
Pharmacy and Healthcare
Regulatory bodies require barcode traceability. An incorrect EAN can lead to compliance issues during inspections.
For packaging you may also need a QR Code for product packaging with extra info like lot number, expiry date, and tracking.
Common Mistakes
❌ Generating a random EAN and thinking you can sell with it
A number is not yours just because you generated it. GTINs must be purchased from GS1 (or licensed resellers). Using a random number that happens to match another company's product causes system conflicts at the retailer.
❌ Confusing EAN-13 with an internal code
Many ERPs generate 13-digit internal codes that are not valid EAN-13. Validation reveals whether the code will pass external scanners or only works inside your own system.
❌ Copying the EAN from a similar product
Each variant (size, color, flavor) needs a different GTIN. Copying the 500ml EAN for the 1L version is a classic mistake.
❌ Missing the leading zero on UPC-A
UPC-A has 12 digits. If your ERP exported 11, the leading zero is missing. The checker catches this instantly.
❌ Validating only visually
"It looks right" is not enough. The human eye cannot detect checksum errors. Always use a tool.
See also: how to generate a barcode, how to use the online barcode scanner to test a printed code, and how QR Code tracking for parcels works.
Summary
- GTIN is the global product number; EAN-13, UPC-A, ITF-14 are visual formats.
- The check digit is algorithm-calculated and detects typing or printing errors.
- Validating structure ≠ verifying GS1 registration — both matter in different contexts.
- Before printing any packaging, validate the GTIN — it's the cheapest step in production.
- Random GTINs cannot be used commercially; they must be acquired from GS1.
Use the Code2Scan barcode checker to validate GTIN, EAN-13, EAN-8, UPC-A and ITF-14 in seconds — free, no sign-up required.