GTIN Validator
Check a product number's format, check digit and prefix.
8, 12, 13 or 14 digits. Spaces and dashes are ignored.
Checked in your browser. Nothing is uploaded.
Valid GTIN-13
The prefix shows which GS1 organization issued the company number, not where the product was made. A valid check digit means the number is well-formed, not that it's registered: GS1's Verified by GS1 service looks up owners.
More Barcode Tools
All tools- Check digit calculatorGS1 check digits for UPC, EAN and GTIN
- UPC to EAN converterConvert UPC-A to EAN-13 and back
- ISBN converterConvert ISBN-10 to ISBN-13 and back
- Barcode generatorMake UPC, EAN, Code 128 and 2D barcodes
- UPC barcode generatorUPC-A barcodes for US and Canadian retail
- Barcode scannerScan barcodes with your camera
- ISBN barcode generatorBookland EAN barcodes for book covers
- Code 128 generatorCode 128 for letters, numbers and symbols
- Design barcode generatorBarcodes with art in the bars, scan-checked
How to use the GTIN validator
Three steps, all in your browser.
- 1
Enter a number
Type or paste a number. Spaces and dashes are ignored.
- 2
Read the result
See whether the number is valid, with the working shown.
- 3
Copy the result
Copy the corrected or converted number in one click.
GTIN Validator: what to know
A GTIN is valid when it has 8, 12, 13 or 14 digits and its last digit is the correct GS1 check digit: multiply the other digits alternately by 3 and 1, starting with 3 next to the check digit, add them up, and the check digit is what brings the total to the next multiple of 10. Valid doesn't mean registered: only GS1's records show who owns a number.
GTIN, the Global Trade Item Number, is GS1's family of product numbers: GTIN-8 (EAN-8), GTIN-12 (UPC-A), GTIN-13 (EAN-13) and GTIN-14 (cases and other packaging levels). The validator checks a number's length, that it has only digits and that its check digit is correct, and says which kind of GTIN it is.
It also reads the GS1 Prefix, the first digits of the number, and shows which GS1 organization issued it or what the range is reserved for: restricted circulation numbers for in-store use, coupons, ISSN for magazines or ISBN for books. The prefix shows where the company joined GS1, not where the product was made.
A valid structure doesn't prove a number is licensed to the company using it. To see who a GTIN is registered to, use GS1's free Verified by GS1 lookup. To turn a valid number into a barcode, use the EAN-13 barcode generator or the UPC barcode generator; to read the number off a printed barcode, use the barcode scanner.
Worked example: checking 2001234567893
| Digit | 2 | 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| × Weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| = Product | 2 | 0 | 0 | 3 | 2 | 9 | 4 | 15 | 6 | 21 | 8 | 27 |
Add the products: 2 + 0 + 0 + 3 + 2 + 9 + 4 + 15 + 6 + 21 + 8 + 27 = 97. Round 97 up to 100: 100 − 97 = 3, so the check digit is 3 and the full number is 2001234567893.
The calculated check digit, 3, matches the last digit, so 2001234567893 is a valid EAN-13. Its prefix, 200, is in GS1's restricted circulation range, so it's an in-store number rather than a product number licensed to a company.
What the first digits mean
The GS1 Prefix is the first three digits of a 13-digit GTIN (put a 0 in front of a 12-digit UPC, or drop the first digit of a GTIN-14). Most ranges belong to a national GS1 organization, such as 400–440 for GS1 Germany or 500–509 for GS1 UK, and show where the company joined GS1, not where the product was made. These ranges have a special use:
| Prefix | Used for |
|---|---|
| 020–029 | Restricted circulation: Store and in-house numbers within a geographic region, defined by the local GS1 organization |
| 040–049 | Restricted circulation: Numbers for use within a company, such as in-store labels |
| 200–299 | Restricted circulation: Variable-measure items and in-store numbers within a geographic region, defined by the local GS1 organization |
| 977 | ISSN: Serial publications such as magazines and journals (ISSN) |
| 978–979 | Bookland: Books (ISBN); 979-0 is used for printed music (ISMN) |
| 980 | Refund receipts |
| 981–983 | Coupons: GS1 coupons for common currency areas |
| 990–999 | Coupons: GS1 coupon identification |
Source: GS1's list of assigned GS1 Prefixes. Every range is in our GS1 prefix list.
Popular uses
- Checking supplier product data before importing it
- Validating GTINs for marketplace listings
- Spotting typos in UPC and EAN columns
- Finding out what kind of number a barcode carries
Tips for the best result
- Numbers starting with 2 or 02 are usually in-store or variable-weight codes, not product numbers.
- A GTIN can be padded with leading zeros to 14 digits without changing its meaning.
- Paste numbers as printed: spaces and dashes are ignored.
Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.