GTIN / UPC Decoder
Validate GTIN and UPC check digits and read the structure of a product code.
Output appears here as you type — decoded on your device.
Input is processed on your device. Nothing you paste is sent anywhere.
What is the GTIN / UPC Decoder?
A GTIN decoder validates the check digit of a Global Trade Item Number — GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN) or GTIN-14 — and breaks the number into its company prefix, item reference and check digit.
GTIN is the umbrella term for the product numbers printed under retail barcodes. GTIN-13 (EAN-13) is the global standard, GTIN-12 is the 12-digit UPC-A used in North America, GTIN-8 is the compact form for small packaging, and GTIN-14 adds a packaging-level indicator digit for cases and pallets. Shorter forms are zero-padded to 14 digits when stored, so all four are directly comparable.
Every one ends in a check digit computed the same way: multiply digits alternately by 3 and 1 from the right, sum them, and the check digit is whatever brings the total to the next multiple of ten. That single digit catches the overwhelming majority of manual keying errors.
The leading digits are a GS1 company prefix, assigned to the brand owner — which is why the prefix indicates where a company registered, not where a product was manufactured. Reading it as a country of origin is a persistent and incorrect internet claim.
GTIN / UPC Decoder at a glance
- Forms
- GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN), GTIN-14
- Check digit
- Alternating ×3/×1 weights, rounded up to a multiple of 10
- Prefix
- GS1 company prefix — registration, not manufacture
- Storage
- Zero-padded to 14 digits for comparison
How to use the GTIN / UPC Decoder
- 1Enter the GTIN, UPC or EAN exactly as printed under the barcode.
- 2Read the detected form and the component breakdown.
- 3Confirm the check digit validates before entering the code into a catalogue.
When you would reach for it
- Validating product codes during a catalogue or PIM data import.
- Computing the correct check digit before generating a barcode.
- Diagnosing why a scanner rejects a printed label.
GTIN / UPC Decoder — frequently asked questions
Last reviewed · questions or corrections: contact@decoder.tools