Every product you pick up in a store has a barcode. That barcode carries more information than most people realize. When you scan an EAN-13 barcode, the 13 digits aren't random they tell you where a product was registered and which company made it. Understanding how an EAN-13 country and maker code breakdown works helps retailers, manufacturers, supply chain professionals, and even curious consumers decode what those numbers actually mean.

What Does an EAN-13 Barcode Actually Contain?

An EAN-13 barcode is a 13-digit number split into several parts. Each section serves a specific purpose. Here's the basic structure:

  • Prefix (first 2–3 digits): Identifies the country or numbering organization that issued the barcode.
  • Manufacturer code (next 4–6 digits): Identifies the company or brand that owns the barcode.
  • Product code (next 3–5 digits): Identifies the specific product.
  • Check digit (last digit): A calculated number used to verify the barcode was scanned correctly.

The length of the manufacturer code and product code can vary. A shorter manufacturer code means a longer product code, and vice versa. This depends on how many product numbers the issuing organization allocates to a given company.

What Does the Country Prefix Tell You?

The first two or three digits of an EAN-13 barcode are called the GS1 prefix. This prefix is assigned by GS1, the global organization that manages barcode standards. Common examples include:

  • 00–13: United States and Canada (UPC-compatible codes)
  • 40–44: Germany
  • 45–49: Japan
  • 50: United Kingdom
  • 690–699: China
  • 880: South Korea
  • 87: Netherlands

Here's something important: the country prefix does not necessarily mean the product was manufactured in that country. It means the company registered its barcode through the GS1 member organization in that country. A company based in Germany that sells products made in Vietnam would still carry a German prefix (40–44).

Why Does This Confusion Happen?

Many people assume the prefix tells them where a product is made. This is one of the most common mistakes when reading barcodes. The prefix indicates the registration origin, not the manufacturing origin. If you need to know where something was actually produced, you'll need to look at the product label, packaging, or import documentation instead.

How Is the Manufacturer Code Assigned?

After the country prefix, the next set of digits represents the manufacturer code. This code is assigned by the local GS1 organization when a company registers. For example, a business in the UK would apply to GS1 UK, receive a unique company prefix, and use that prefix for all its products.

The manufacturer code and product code together make up the "item reference" section. The split between them depends on how many digits are in the prefix. A 3-digit prefix leaves fewer digits for the rest, which affects how many products a company can list under one prefix.

If you want a deeper look at how these codes are structured compared to other systems, the breakdown of how UPC-A manufacturer codes are assigned and structured covers similar ground with the North American UPC format.

How Do You Calculate the Check Digit?

The 13th digit is a check digit. It's calculated using the first 12 digits through a specific formula. Here's a simplified version of the process:

  1. Starting from the rightmost digit (excluding the check digit), multiply alternating digits by 1 and 3.
  2. Add all the results together.
  3. Find the remainder when dividing by 10.
  4. Subtract that remainder from 10. The result is the check digit.

Example: For the barcode 400638133393(1):

  • Digits at odd positions (1st, 3rd, 5th…): 4+0+6+8+3+9 = 30
  • Digits at even positions (2nd, 4th, 6th…): 0+3+1+3+3+3 = 13
  • Total: 30 + (13 × 3) = 30 + 39 = 69
  • 69 ÷ 10 = 6 remainder 9
  • 10 − 9 = 1

So the check digit would be 1. This calculation helps point-of-sale systems verify that the barcode was scanned and read correctly.

What's the Difference Between EAN-13 and UPC Codes?

EAN-13 and UPC-A are closely related. A UPC-A barcode has 12 digits, while EAN-13 has 13. In practice, a UPC-A code can be converted to EAN-13 by adding a leading zero. Both use the same basic structure a prefix, a manufacturer code, a product code, and a check digit.

The key difference is scope. UPC codes were originally designed for the North American market, while EAN-13 was created for international use. Today, most scanning systems read both formats. You can learn more about the specific differences between these two barcode types and how their origin codes compare.

How Can You Look Up an EAN-13 Country Code?

Several free tools and databases let you enter an EAN-13 number and get back the country of registration and sometimes the company name. Some options include:

  • GS1 GEPIR database: The official GS1 lookup tool where you can search by barcode number.
  • Open Food Facts: A crowd-sourced database focused on food products.
  • Barcode lookup websites: Sites like Barcodelookup.com or UPCitemdb.com aggregate product information.

Keep in mind that not every barcode will return results. Smaller brands or newly registered products might not appear in public databases immediately.

What Are Common Mistakes When Reading EAN-13 Codes?

People new to barcodes often make a few recurring errors:

  • Confusing registration country with manufacturing country. As mentioned earlier, the prefix shows where the barcode was registered, not where the product was made.
  • Ignoring the leading zero. Some UPC codes stored as EAN-13 will start with a zero. Dropping it can lead to wrong lookups.
  • Misreading the check digit as part of the product code. The last digit is always for verification and shouldn't be treated as product data.
  • Assuming all codes starting with the same prefix belong to one company. Within a single country prefix range, thousands of different companies can have registered codes.

Why Does This Matter for Businesses?

If you're a manufacturer or retailer, understanding EAN-13 structure matters for several practical reasons:

  • Inventory management: Correctly structured barcodes help you track products across warehouses and stores without duplication or errors.
  • Marketplace compliance: Amazon, Walmart, and other online marketplaces require valid, registered EAN-13 or UPC codes for product listings.
  • Counterfeit detection: If a product claims to be from a specific brand but the barcode prefix doesn't match the brand's registered country, that can be a red flag.
  • Supply chain traceability: Knowing which GS1 organization issued a code can help you trace a product back through distribution channels.

When designing product labels, clear and legible barcode presentation also matters. The font you choose for human-readable numbers beneath the barcode affects scannability and compliance. A clean sans-serif option like Montserrat works well for this purpose.

Quick Reference: EAN-13 Breakdown at a Glance

PositionDigitsPurpose
1–2 or 1–32–3GS1 country/organization prefix
Middle section4–6Manufacturer (company) code
Before last digit3–5Product/item code
Last digit1Check digit for verification

The exact split between manufacturer and product code depends on the prefix length. GS1 organizations allocate these based on how many products a company expects to register.

Checklist: How to Break Down Any EAN-13 Barcode

  1. Read all 13 digits from left to right.
  2. Check the first 2–3 digits against a GS1 prefix list to identify the registration country.
  3. Identify the manufacturer code it follows the prefix and varies in length.
  4. Separate the product code the remaining middle digits before the check digit.
  5. Verify the check digit using the alternating 1-3-1-3 multiplication method.
  6. Look up the barcode in GS1 GEPIR or a barcode database if you need company or product details.
  7. Don't assume manufacturing origin based on the prefix alone.

Start with any product near you, scan its barcode or read the digits, and work through this checklist. Once you've done it a few times, the structure becomes second nature.