How EAN-13 and UPC-A Product Barcodes Are Structured
What the digits under a product barcode mean: country or prefix, maker, product and the final check digit.
The number printed under a barcode is not random. It follows a structure that you can read.
Two common formats
- UPC-A has 12 digits and is common in North America.
- EAN-13 has 13 digits and is used in most of the world.
A UPC-A code can be treated as an EAN-13 with a leading zero, so systems that read one can read the other.
The parts of an EAN-13
| Part | Meaning |
|---|---|
| First digits (prefix) | assigned by the GS1 organisation, related to where the number was issued |
| Company section | identifies the brand owner |
| Item section | identifies the product |
| Last digit | the check digit |
A note on the prefix
The prefix shows where a company's barcode number was registered, not necessarily where the product was made. A product made in one country can carry another country's prefix.
What is in the bars
The bars encode only the digits. There is no price, name or description inside. When a scanner reads the number, a database supplies the details.
Left and right halves
An EAN-13 is divided into a left half and a right half, separated by a centre guard pattern. The two halves use different encodings, which lets a scanner read the code even if it is upside down.
Using this as a shopper
- The digits printed below the bars are a backup if the bars will not scan.
- A scanned number can be searched to find a product's information.
- Damaged codes can often be typed in by hand.
Tips
- Scan in good light.
- Hold steady until the digits are read.
- Check the digits if a scan seems wrong.
QR Code Scanner reads product barcodes as well as QR codes, all from the same camera view.
Scan and create QR codes and barcodes with QR Code Scanner →
QR Code Scanner
Fast QR & barcode scanner with a built-in QR code generator
More about QR Code Scanner
Check Digits: How a Barcode Catches Its Own Typos
The last digit of a product barcode is a check digit. See how it is calculated and why it prevents most misreads.
Read article →Code 128 and Code 39: The Barcodes Behind Labels and Warehouses
Beyond product barcodes, many labels use Code 128 or Code 39. Learn what they encode and where you will meet them.
Read article →Data Matrix, PDF417 and Aztec: The Other 2D Codes
QR is the best-known square code, but others exist. A guide to Data Matrix, PDF417 and Aztec and where each appears.
Read article →ISBN Barcodes on Books: What the Numbers Tell You
How the ISBN identifies a book edition, why it starts with 978 or 979, and how the barcode on the back cover relates to it.
Read article →