📊 Barcodes

How to Read a Barcode: The Complete Guide to EAN, UPC and QR Codes

📅 April 6, 2026 🕐 8 min read 🔢 ProductBarcode.com
EAN-13 barcode illustration

Every product you buy has a barcode on it. But have you ever stopped to wonder what those black and white lines actually mean? Barcodes are one of the most clever inventions in retail history — a simple visual code that contains a product's entire identity. In this guide, we explain exactly how barcodes work, what each number means, and how you can use them to look up any product in the world.

What is a Barcode?

A barcode is a machine-readable representation of data. It encodes numbers and letters as a series of parallel lines (bars) and spaces of varying widths. A barcode scanner reads the reflected light pattern to decode the information — typically a product identification number.

Barcodes were first used commercially in 1974 when a pack of Wrigley's chewing gum was scanned at a supermarket in Ohio. Today, over 5 billion barcodes are scanned every single day worldwide.

"Barcodes are scanned more than 5 billion times per day globally — making them one of the most-used technologies on the planet."

The Main Types of Barcodes

There are dozens of barcode formats, but these are the ones you will encounter most often on everyday products:

FormatDigitsWhere Used
EAN-1313 digitsMost products worldwide (Europe, Asia, Middle East)
UPC-A12 digitsNorth America (USA and Canada)
EAN-88 digitsSmall products (lipstick, batteries)
ISBN13 digitsBooks
QR CodeVariableMarketing, menus, payments
Code 128VariableShipping and logistics

How to Read an EAN-13 Barcode

The EAN-13 (European Article Number) is the most common barcode in the world. You will find it on virtually every product sold outside North America — and increasingly on US products too. It consists of 13 digits with a specific structure:

The 3 Parts of an EAN-13 Number

💡 Example: The barcode 5 000112 546415 breaks down as: 50 = UK GS1 prefix, 0011254 = Nestlé company code, 641 = specific product (Nescafé Gold 200g), 5 = check digit.

How to Read a UPC-A Barcode

The UPC-A (Universal Product Code) is the North American equivalent of EAN-13. It has 12 digits instead of 13. In fact, a UPC-A barcode is identical to an EAN-13 barcode with a leading zero added. This means UPC-A barcodes are a subset of EAN-13.

What is the Check Digit and How is it Calculated?

The check digit is a clever mathematical safeguard that ensures a barcode was scanned correctly. Here is how it works for EAN-13:

  1. Take the first 12 digits of the barcode
  2. Add together all digits in odd positions (1st, 3rd, 5th... )
  3. Add together all digits in even positions (2nd, 4th, 6th...) and multiply by 3
  4. Add both results together
  5. The check digit is the number needed to make the total a multiple of 10

If a scanner reads a barcode and the check digit does not match, the scan is rejected and the cashier must try again.

Country Codes: Where is This Product From?

The first 2-3 digits of an EAN-13 barcode tell you which GS1 member organisation issued the barcode — not necessarily where the product was manufactured. Here are the most common prefixes:

PrefixCountry/Region
00–09United States and Canada
30–37France
40–44Germany
45, 49Japan
50United Kingdom
57Denmark
60–69China
625–626UAE and Middle East
628Saudi Arabia
70–79Norway, Sweden, Finland
80–83Italy
84Spain
93Australia

QR Codes: The Modern Barcode

QR codes (Quick Response codes) are the square, pixelated barcodes you scan with your smartphone. Unlike traditional barcodes that only store numbers, QR codes can store up to 3,000 characters of text, URLs, contact information and more.

QR codes are increasingly used on food packaging to link to nutritional information, allergen data, and product origin stories. However, they are not typically used for product identification in the same way as EAN/UPC barcodes.

How to Look Up Any Product by Barcode

Now that you understand barcodes, you can use them to look up any product instantly. Simply:

  1. Find the barcode number printed below the bars on any product
  2. Go to ProductBarcode.com
  3. Click By Barcode and type or paste the number
  4. Get full product details: ingredients, nutrition facts, allergens, images and where to buy
🔍 Did you know? You can search over 4 million products by barcode on ProductBarcode.com — covering products from 150 countries. It is completely free for up to 5 searches per day.

Summary

Barcodes are a remarkably clever system that has remained largely unchanged for 50 years. The key things to remember:


🔍 Look up any product by barcode

Search over 4 million products worldwide. Get ingredients, nutrition facts, allergens and where to buy near you — free.

Search ProductBarcode.com →
Barcodes Product Guides More Articles