Skip to content

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

How to use the GTIN validator

Three steps, all in your browser.

  1. 1

    Enter a number

    Type or paste a number. Spaces and dashes are ignored.

  2. 2

    Read the result

    See whether the number is valid, with the working shown.

  3. 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

Each digit multiplied by its weight
Digit200123456789
× Weight131313131313
= Product200329415621827

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:

PrefixUsed for
020–029Restricted circulation: Store and in-house numbers within a geographic region, defined by the local GS1 organization
040–049Restricted circulation: Numbers for use within a company, such as in-store labels
200–299Restricted circulation: Variable-measure items and in-store numbers within a geographic region, defined by the local GS1 organization
977ISSN: Serial publications such as magazines and journals (ISSN)
978–979Bookland: Books (ISBN); 979-0 is used for printed music (ISMN)
980Refund receipts
981–983Coupons: GS1 coupons for common currency areas
990–999Coupons: 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.

Frequently asked questions

No. This checks the number's structure: length, digits and check digit, plus which GS1 organization's prefix range it falls in. Whether it's licensed to a company is in GS1's registry, which you can search with GS1's free Verified by GS1 lookup.

Global Trade Item Number, the GS1 family of product numbers. GTIN-12 is the UPC-A, GTIN-13 the EAN-13, GTIN-8 the EAN-8 and GTIN-14 identifies cases and other packaging levels. Any of them can be written as 14 digits by adding leading zeros.

Paste it into the validator above. It checks the length (8, 12, 13 or 14 digits), that it has only digits, and the check digit: the digits before it are multiplied alternately by 3 and 1 from the right, added up, and the last digit must bring the total to a multiple of 10.

EAN-13s starting with 20 to 29 (and UPC-As starting with 2) are in GS1's restricted circulation range. Shops and local GS1 organizations use them for in-store items, often weighed goods with the price or weight inside the number, so they aren't unique product numbers and no company is registered to them. 2001234567893 has a correct check digit, so it's a valid in-store number.

Usually because one digit was mistyped or two neighbouring digits were swapped, or because a spreadsheet dropped a leading zero from a UPC. Find the original number at its source rather than only changing the last digit, which would make a wrong number look valid.

Not from the number alone. The prefix only shows which national GS1 organization issued it, not who the company is or where the product was made. GS1's free Verified by GS1 lookup shows the registered owner and product data for numbers licensed through GS1.

Yes. A 13-digit ISBN starting with 978 or 979 is also a valid GTIN-13, which is why books carry an EAN-13 barcode. The validator checks it like any other GTIN-13 and shows the Bookland prefix; to convert an older 10-digit ISBN, use the ISBN converter.

No. Barcodes are drawn in your browser, and camera frames, pictures and CSV files are processed on your device. Nothing is stored and nothing is sent to our server, and it's all gone when you close or reload the page.

No. A barcode is a picture of a number. Retail product numbers (GTINs such as UPC and EAN) are licensed from GS1, which links them to your company; making a barcode image here doesn't assign or register a number. Retailers and marketplaces may check numbers against GS1's records.

Yes. Every tool is free with no sign-up and no limits on use, including commercial use of the barcodes you make. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers, and the scanner uses your phone's camera.