How to validate a barcode number
- Type or paste the number printed under the barcode. Spaces and hyphens are fine.
- Read the detected type and whether the check digit is valid. An invalid code shows the correct last digit.
- Check the GS1 prefix line to see which country office or special range the number belongs to.
- Use the conversions (UPC-E ⇄ UPC-A, ISBN-10 ⇄ ISBN-13) or click Generate barcode.
What the validator checks
| Format | Length | Check digit | Extra information shown |
|---|---|---|---|
| UPC-A | 12 | GS1 mod 10 | Number system, UPC-E form, EAN-13 form, GS1 prefix |
| UPC-E | 8 (or 6/7 without check) | From UPC-A expansion | Expanded UPC-A |
| EAN-8 | 8 | GS1 mod 10 | Prefix, restricted (0/2) numbers |
| EAN-13 | 13 | GS1 mod 10 | GS1 prefix and country, UPC-A if it starts with 0 |
| GTIN-14 | 14 | GS1 mod 10 | Indicator digit meaning, prefix |
| ISBN-10 | 10 | Mod 11 (X) | ISBN-13 equivalent, registration group |
| ISBN-13 | 13 (978/979) | GS1 mod 10 | ISBN-10 equivalent, registration group |
| ISSN | 8 | Mod 11 (X) | EAN-13 (977) barcode number |
| SSCC | 18 | GS1 mod 10 | Extension digit, prefix |
Special prefixes worth knowing
- 000–019, 030–039, 060–139: GS1 US. A 12-digit UPC-A becomes an EAN-13 starting with 0, so most US products land here.
- 020–029, 040–049, 200–299: restricted distribution, used inside a store or company. Not unique.
- 050–059: coupons (UPC-A starting 5).
- 952: reserved for examples in GS1 documentation, never on real products.
- 977: serial publications (ISSN). 978–979: books (ISBN), with 979-0 used for sheet music (ISMN).
- 980–984, 990–999: refund receipts and coupons.
For every country range, see the full GS1 country code list. Remember the prefix shows where the brand registered its number, not where the product was made.
Valid number, unknown product?
A correct check digit doesn't tell you what the product is. Try the barcode lookup to search free product databases, or scan the code from a photo with scan barcode from image if you don't trust the printed digits.
Frequently asked questions
How do I know if a barcode number is valid?
Check three things: the length matches a standard (8, 12, 13 or 14 digits for products), the last digit is the correct check digit, and the prefix is one GS1 has assigned. This validator does all three as you type.
Does "valid" mean the barcode is registered to a company?
No. Valid means the number is well formed. Anyone can create a number with a correct check digit. To see who licensed a GTIN, search it on GS1’s Verified by GS1 service.
Why is my 8-digit code shown as two types?
Eight digits can be an EAN-8, a UPC-E or an ISSN, and some numbers pass the check digit test for more than one. The validator shows every reading that is valid, so you can pick the one that matches the barcode on the product.
What do prefixes 978, 979 and 977 mean?
978 and 979 are Bookland: the barcode carries an ISBN. 977 is for magazines and other serials, and the next seven digits are the ISSN without its check digit.
What does a barcode starting with 2 mean?
Prefixes 020–029 and 200–299 are restricted distribution numbers. Stores use them for their own items and variable-weight goods such as meat or cheese, where the price or weight is often part of the number. They are not unique worldwide.
Can I validate a list of barcodes?
Yes. Click Bulk, paste one number per line, and invalid lines are highlighted. Download the results as CSV to fix them in your spreadsheet.
What is UPC-E to UPC-A expansion?
UPC-E is an 8-digit compressed UPC that drops zeros. Expanding puts the zeros back to give the 12-digit UPC-A, which is what databases and point-of-sale systems store. The validator shows the expansion for every valid UPC-E.