Understanding Barcode Numbers: What the Data Means

How to read and interpret barcode numbers. Understand GS1 country prefixes, manufacturer codes, product identifiers, and check digits.

Understanding Barcode Numbers: What the Data Means - How to read and interpret barcode numbers. Understand GS1 country prefixes, manu

Barcode numbers are structured product identifiers managed by GS1, a global standards organization operating in 116 countries with over 2 million member companies. Each section of a barcode number carries specific meaning: a GS1 country prefix (where the product was registered), a manufacturer code (which company), a product code (which item), and a check digit (for error detection). The GS1 system assigns over 1 billion unique product identifiers worldwide. Understanding this structure helps you verify products, detect counterfeits, and make sense of supply chain data.

Retail Barcode Numbers: UPC-A and EAN-13

The barcodes on products you buy in stores follow the GS1 numbering system, a global standard managed by GS1, a non-profit with member organizations in over 110 countries.

UPC-A Structure (12 Digits)

Every UPC-A barcode on a North American product breaks down as:

0  36000  29145  2
│  │      │      │
│  │      │      └─ Check digit (mathematically calculated)
│  │      └──────── Product code (assigned by manufacturer)
│  └─────────────── Manufacturer code (GS1 company prefix)
└────────────────── Number system digit (product type)

Number system digit: The first digit indicates the type of product or numbering scheme:

  • 0, 1, 6, 7, 8: Standard retail products
  • 2: Variable-weight items (meat, produce priced by weight)
  • 3: Pharmaceutical products (National Drug Code)
  • 4: In-store use (loyalty cards, store-specific codes)
  • 5: Coupons

Manufacturer code (Company Prefix): Assigned by GS1 US, this uniquely identifies the company. Larger prefixes (fewer digits) go to large companies needing many product codes; smaller prefixes go to companies with fewer products.

Product code: Assigned by the manufacturer to identify each specific product. Different sizes, flavors, and variants each get their own code.

Check digit: Calculated using the modulo 10 algorithm. This single digit validates the entire barcode. If even one other digit is misread, the check digit won't match and the scanner rejects the read.

EAN-13 Structure (13 Digits)

EAN-13 barcodes used internationally follow the same logic with one addition: a country prefix.

590  1234  12345  7
│    │     │      │
│    │     │      └─ Check digit
│    │     └──────── Product code
│    └───────────── Company prefix
└────────────────── GS1 country prefix (Poland in this example)

The first 2-3 digits identify the GS1 member organization that issued the barcode. This is the GS1 prefix — and it's one of the most commonly misunderstood aspects of barcodes.

GS1 Country Prefixes

The GS1 prefix tells you where the product was registered, not where it was manufactured. A product with prefix 00-13 (United States) could be manufactured in China, Vietnam, or anywhere else. The prefix only means the company registered the barcode through GS1 US.

Common GS1 Prefixes

PrefixCountry/Region
00-13United States and Canada
30-37France
40-44Germany
45, 49Japan
46Russia
471Taiwan
480Philippines
489Hong Kong
50United Kingdom
54Belgium and Luxembourg
57Denmark
590Poland
64Finland
690-699China
729Israel
73Sweden
76Switzerland
80-83Italy
84Spain
880South Korea
885Thailand
888Singapore
890India
893Vietnam
899Indonesia
90-91Austria
94New Zealand
93Australia

When you scan a product with our free barcode scanner, the decoded results include the GS1 prefix and the corresponding country of registration.

Special Prefixes

Some prefixes serve specific purposes rather than identifying countries:

  • 020-029: In-store use (retailer-specific product codes)
  • 040-049: In-store use
  • 200-299: In-store use (variable weight items)
  • 977: Serial publications (ISSN)
  • 978-979: Books (ISBN)
  • 980: Refund receipts
  • 981-984: Common currency coupons

If a product's barcode starts with 978 or 979, it's a book — the remaining digits encode the ISBN.

The Check Digit: How Barcode Validation Works

Every UPC and EAN barcode ends with a check digit calculated from the preceding digits. This mathematical safeguard catches errors from damaged barcodes, poor printing, or manual data entry mistakes.

Modulo 10 Algorithm (UPC-A and EAN-13)

Here's how to verify a barcode's check digit yourself:

Example: EAN-13 barcode 5901234123457

  1. Starting from the right (excluding the check digit), alternate between multiplying each digit by 3 and 1:

    • Position values (right to left, before check digit): 5, 4, 3, 2, 1, 4, 3, 2, 1, 0, 9, 5
    • Multipliers (alternating from right): 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1
  2. Calculate: (5×1) + (4×3) + (3×1) + (2×3) + (1×1) + (4×3) + (3×1) + (2×3) + (1×1) + (0×3) + (9×1) + (5×3) = 5+12+3+6+1+12+3+6+1+0+9+15 = 73

  3. Subtract from next multiple of 10: 80 - 73 = 7

The check digit is 7, matching the barcode. If any digit were changed (by a printing error or counterfeiting), the check digit calculation would fail.

Our barcode generators (EAN-13, UPC-A) calculate check digits automatically. Enter your digits and the generator appends the correct check digit.

Understanding Supply Chain Barcode Numbers

Beyond retail barcodes, supply chain barcodes encode structured data using GS1 Application Identifiers (AIs). These two- to four-digit prefixes identify what type of data follows.

GS1-128 and GS1 Data Matrix Data Structure

When you scan a GS1-128 or GS1 Data Matrix barcode, the decoded data might look like:

(01)09520123456788(17)261231(10)ABC123(21)SN-98765

Each parenthesized number is an Application Identifier:

AIMeaningData in This Example
(01)GTIN (product identifier)09520123456788
(17)Expiry date (YYMMDD)December 31, 2026
(10)Batch/lot numberABC123
(21)Serial numberSN-98765

Common Application Identifiers

AIData FieldFormat
(00)Serial Shipping Container Code (SSCC)18 digits
(01)Global Trade Item Number (GTIN)14 digits
(02)GTIN of contained trade items14 digits
(10)Batch/lot numberUp to 20 characters
(11)Production dateYYMMDD
(13)Packaging dateYYMMDD
(15)Best before dateYYMMDD
(17)Expiry dateYYMMDD
(20)Product variant2 digits
(21)Serial numberUp to 20 characters
(30)Variable countUp to 8 digits
(37)Count of trade items in containerUp to 8 digits
(310X)Net weight in kg6 digits (X = decimal position)
(400)Customer purchase order numberUp to 30 characters

This system allows automated parsing. Any scanning system that understands GS1 standards can pull the product ID, expiry date, batch number, and serial number from any manufacturer's barcode without custom programming.

Reading QR Code Data

QR codes are more flexible. They don't follow a fixed data structure, and the content depends on what the creator encoded:

URLs: The most common QR code content. Scanning opens the URL in your browser.

Contact cards (vCard): Structured text containing name, phone, email, and address. Scanning offers to add the contact to your phone.

Wi-Fi credentials: Network name, password, and encryption type. Scanning offers to connect to the network.

Plain text: Any text at all, from product descriptions to instructions to messages.

GS1 Digital Link: A special URL format that embeds GS1 product identifiers in the URL path. Used by GS1 QR Codes for retail applications where both POS scanners and consumers need to read the same barcode.

When you scan a QR code with our barcode scanner, the results display the content type, the raw data, and any structured fields that can be parsed.

What Barcode Numbers Can (and Can't) Tell You

What barcode numbers reveal:

  • Which company registered the product (manufacturer code / GS1 prefix)
  • Where the product was registered (GS1 country prefix)
  • Whether the barcode is valid (check digit verification)
  • Product identity (connects to databases with name, price, description)
  • Supply chain data (batch, expiry, serial via Application Identifiers)

What barcode numbers don't reveal:

  • Where the product was manufactured (only where it was registered)
  • Product ingredients or composition (stored in databases, not in the barcode)
  • Price (determined by the retailer, not encoded in the barcode)
  • Whether the product is genuine (counterfeiters can copy valid barcode numbers)

Barcodes are identifiers, not databases. The barcode number is a key that unlocks information stored in external databases. The barcode itself only guarantees that the identifier is properly formatted and the check digit is valid.

Verifying Product Authenticity

While a barcode alone can't guarantee a product is genuine, it provides useful verification signals:

  1. Check digit validation: An invalid check digit means the barcode was improperly created. Legitimate manufacturers don't make this mistake
  2. GS1 prefix verification: If a product claims to be from a German company but carries a Chinese GS1 prefix, that's a red flag (though not conclusive, since companies operate globally)
  3. Database lookup: Search the GTIN in GS1's GEPIR database or retailer databases. If the product isn't registered, or the registered product doesn't match what you're holding, investigate further
  4. Serialization check: Products with unique serial numbers (pharmaceuticals, luxury goods) can be verified against the manufacturer's authentication database

Scan any barcode with our free scanner to see the full decoded data, including format identification, GS1 prefix, and check digit validation.

Frequently Asked Questions

What do the numbers under a barcode mean?
For retail barcodes (UPC/EAN), the numbers represent a structured product identifier: a GS1 country prefix (where the product was registered), a manufacturer code (which company), a product code (which specific item), and a check digit (for error detection). The barcode and the printed numbers encode the same data.
Can I tell where a product was made from its barcode?
The GS1 prefix indicates where the product was registered, not where it was manufactured. A barcode starting with 00-13 means the product was registered in the US or Canada, but it could have been manufactured anywhere in the world. Country of registration and country of manufacture are separate things.
What is a GS1 prefix?
A GS1 prefix is the first 2-3 digits of an EAN-13 barcode that identifies which GS1 member organization issued the barcode. Prefixes 00-13 are assigned to GS1 US, 30-37 to France, 40-44 to Germany, 45-49 to Japan, and so on. These indicate where the product was registered in the GS1 system.
How can I verify if a barcode is legitimate?
Check the check digit using the modulo 10 algorithm — if it doesn't match, the barcode is invalid. Look up the GS1 prefix to verify the claimed country of registration. Search the GTIN in GS1's GEPIR database or the product's retailer database. Scan it with our free scanner to see decoded details including format validation.