1. Qlarity
  2. Guides
  3. Barcode numbers explained: EAN-13, UPC and ISBN

Barcode numbers explained: EAN-13, UPC and ISBN

Updated November 20, 2026

The number under a barcode is not random. It follows a fixed structure that lets any checkout read it and lets you check it yourself.

The structure of an EAN-13

An EAN-13 has thirteen digits:

  • The prefix (the first two or three digits) is assigned by GS1 to a national or regional office.
  • The company and item numbers identify the brand owner and the product.
  • The check digit (the last digit) lets a scanner catch a misread.

The prefix is not “made in”

The prefix shows where the brand registered its barcodes, not where the product was manufactured. A product made in one country can carry the prefix of another if its owner is registered there.

PrefixGS1 office
000–139United States and Canada (UPC compatible)
300–379France and Monaco
400–440Germany
450, 490–499Japan
690–699China
893Vietnam
978, 979Books (ISBN)

How the check digit works

  1. Take the first twelve digits. Multiply the digits in odd positions by 1 and in even positions by 3.
  2. Add the results together.
  3. The check digit is the number that brings the total up to the next multiple of ten.

Example, 4006381333931: 4 + 0×3 + 0 + 6×3 + 3 + 8×3 + 1 + 3×3 + 3 + 3×3 + 9 + 3×3 = 89. The next multiple of ten is 90, so the check digit is 1. It matches.

UPC-A, EAN-8 and ISBN

  • UPC-A has twelve digits and is the same system with a leading zero removed.
  • EAN-8 is a short version for small packages.
  • ISBN-13 is an EAN-13 that starts with 978 or 979; the book’s number sits inside.

In Qlarity

When you scan a product barcode, Qlarity checks the digit, decodes the prefix and warns you if a number fails its check or is a store’s own price label.

Questions

Why does the check digit exist?

It lets a scanner notice a misread digit instantly, so the checkout does not charge for the wrong product.

Does the prefix tell me where something was made?

No. It tells you where the brand owner registered its barcodes.

Qlarity shows where a code leads before you open it. It runs on your phone with no account and no ads.
Coming soonApp StoreComing soonGoogle Play