ToolPopToolPop
Back to BlogGuides

Understanding Barcode Types: Complete Guide to UPC, EAN, Code128 and More

From retail shelves to warehouse management, barcodes are everywhere. This guide explains every major barcode type and helps you choose the right one for your needs.

ToolPop TeamMarch 10, 202514 min read

The Barcode Revolution: From Invention to Ubiquity

Barcodes have become so ubiquitous that we rarely notice them, yet they process over 10 billion scans daily worldwide. From the groceries you buy to the packages you receive, barcodes silently orchestrate the flow of commerce. Understanding barcode types is essential for anyone involved in retail, manufacturing, logistics, or inventory management.

A Brief History

The barcode was patented in 1952 by Norman Joseph Woodland and Bernard Silver, inspired by Morse code extended into thin and thick bars. The first commercial scanning of a UPC barcode occurred on June 26, 1974, at a Marsh supermarket in Troy, Ohio—a pack of Wrigley's chewing gum that now resides in the Smithsonian Institution.

Linear (1D) Barcodes

Linear barcodes store data in the widths and spacings of parallel lines. They are read by laser or camera-based scanners that measure the reflection of light.

UPC (Universal Product Code)

The UPC is the most recognized barcode in North America, appearing on virtually every consumer product sold in stores.

UPC-A (12 digits)

  • Structure: 1 digit number system + 5 digit manufacturer code + 5 digit product code + 1 check digit
  • Used for: Standard retail products in US and Canada
  • Example: 012345678905
UPC-E (8 digits)
  • Compressed version of UPC-A
  • Used for: Small packages where space is limited
  • Removes zeros from UPC-A to create compact code
Key Characteristics:
  • Numeric only (0-9)
  • Fixed length
  • High scanning reliability
  • Requires GS1 membership for official codes
  • Annual fees based on company size
Best Use Cases:
  • Retail point-of-sale
  • Consumer goods
  • Grocery items
  • General merchandise

EAN (European Article Number)

Now managed by GS1 and officially called International Article Number, EAN is the international standard compatible with UPC.

EAN-13 (13 digits)

  • Structure: 2-3 digit country code + manufacturer code + product code + check digit
  • Used for: International retail products
  • Compatible with UPC-A (UPC-A + leading 0 = EAN-13)
EAN-8 (8 digits)
  • Compact version for small products
  • Used for: Items too small for EAN-13
Country Code Examples:

PrefixCountry/Region
00-13USA and Canada
30-37France
40-44Germany
45-49Japan
50UK
690-699China
Best Use Cases:
  • International retail
  • Export products
  • E-commerce with global shipping
  • Books (with ISBN conversion)

Code 39 (Code 3 of 9)

One of the oldest and most widely used alphanumeric barcodes, Code 39 remains popular for non-retail applications.

Characteristics:

  • Alphanumeric (0-9, A-Z, and special characters: - . $ / + % SPACE)
  • Variable length
  • Self-checking (no check digit required, though optional)
  • Lower density than modern alternatives
Best Use Cases:
  • Automotive industry (AIAG standard)
  • Defense and government applications
  • Internal inventory tracking
  • Employee ID badges
  • Healthcare specimen tracking

Code 128

The most versatile linear barcode, Code 128 offers high data density and full ASCII support.

Character Sets:

  • Code 128A: Uppercase letters, numbers, control characters
  • Code 128B: Upper and lowercase letters, numbers, punctuation
  • Code 128C: Numeric pairs (high density for numbers)
Key Features:
  • Variable length
  • Full ASCII support
  • Highest density linear barcode
  • Automatic character set switching
  • Mandatory check digit
GS1-128 (formerly UCC/EAN-128)
  • Application identifiers for structured data
  • Used for shipping labels (SSCC)
  • Encodes batch numbers, dates, weights
  • Required for supply chain compliance
Best Use Cases:
  • Shipping and logistics
  • Healthcare
  • Supply chain management
  • Inventory tracking
  • Asset management

Interleaved 2 of 5 (ITF)

A high-density numeric barcode that encodes digit pairs together.

Characteristics:

  • Numeric only
  • Must have even number of digits
  • Higher density than Code 39
  • Common in warehouse environments
ITF-14
  • 14-digit version for shipping containers
  • GTIN (Global Trade Item Number) encoding
  • Larger tolerances for corrugated surfaces
Best Use Cases:
  • Shipping cartons
  • Warehouse pallets
  • Distribution packaging
  • Industrial applications

2D Barcodes

Two-dimensional barcodes store data both horizontally and vertically, dramatically increasing capacity while enabling error correction.

QR Code (Quick Response)

The most recognized 2D barcode, originally developed by Denso Wave for automotive tracking.

Capacity:

  • Numeric: 7,089 characters
  • Alphanumeric: 4,296 characters
  • Binary: 2,953 bytes
  • Kanji: 1,817 characters
Error Correction Levels:

LevelRecovery CapacityUse Case
L7%Clean environments
M15%General use
Q25%Industrial
H30%High-damage risk
Best Use Cases:
  • Marketing and advertising
  • Mobile payments
  • Contact information (vCard)
  • WiFi credentials
  • Event tickets
  • Product authentication

Data Matrix

A high-density 2D barcode excelling in small-item marking.

Characteristics:

  • Square or rectangular format
  • Sizes from 10x10 to 144x144 modules
  • Up to 2,335 alphanumeric characters
  • Excellent for small surfaces (as small as 2mm x 2mm)
  • ECC 200 error correction standard
Best Use Cases:
  • Electronic component marking
  • Pharmaceutical packaging (FDA compliance)
  • Aerospace parts tracking
  • Surgical instruments
  • Small product identification
  • Direct part marking (DPM)

PDF417

A stacked linear barcode capable of storing large amounts of data.

Characteristics:

  • Up to 1,850 alphanumeric characters
  • Up to 2,710 numeric characters
  • Variable size (3 to 90 rows)
  • Error correction from 0 to 8 levels
Best Use Cases:
  • Driver's licenses (US standard)
  • ID cards
  • Airline boarding passes
  • Shipping labels (large data needs)
  • Government documents

Choosing the Right Barcode

Decision Factors

1. Data Requirements

  • Numeric only: UPC, EAN, ITF
  • Alphanumeric: Code 39, Code 128
  • Large data: QR Code, Data Matrix, PDF417
2. Size Constraints
  • Limited space: Data Matrix, EAN-8, UPC-E
  • Standard products: UPC-A, EAN-13, Code 128
  • Large surfaces: ITF-14, Code 39
3. Industry Standards
  • Retail: UPC, EAN
  • Healthcare: Code 128, Data Matrix
  • Logistics: GS1-128, ITF-14
  • Automotive: Code 39, Data Matrix
4. Scanning Environment
  • Point-of-sale: UPC, EAN (laser scanners)
  • Warehouse: Code 128, ITF (industrial scanners)
  • Consumer mobile: QR Code (smartphone cameras)
  • Manufacturing: Data Matrix (machine vision)

Comparison Table

FeatureUPC/EANCode 128QR CodeData Matrix
Dimensions1D1D2D2D
Data TypeNumericFull ASCIIAnyAny
Capacity12-13Variable4,296 alnum2,335 alnum
Error CorrectionCheck digitCheck digitUp to 30%Up to 25%
Min Size~25mmVariable~10mm~2mm
Primary UseRetailLogisticsMarketingManufacturing

Implementation Best Practices

Print Quality Standards

ISO/IEC 15416 (Linear)

  • Grade A: Excellent (>2.5)
  • Grade B: Good (>1.5)
  • Grade C: Acceptable (>0.5)
  • Grade D: Marginal (>0)
  • Grade F: Failed

Common Printing Mistakes

  • Insufficient quiet zone: Always maintain required margins
  • Bar width reduction: Compensate for ink spread in printing
  • Poor contrast: Ensure light background and dark bars
  • Wrong orientation: Consider scanning direction
  • Truncation: Don't reduce barcode height arbitrarily

Verification and Testing

Always verify barcodes before production:

  • Use ISO-compliant verifiers
  • Test with actual scanning equipment
  • Verify in end-use environment
  • Check after packaging and labeling processes

Industry Compliance Requirements

Retail (GS1 Standards)

  • UPC/EAN for point-of-sale
  • GS1-128 for shipping
  • ITF-14 for cases and pallets
  • GS1 DataMatrix for small items

Healthcare

  • FDA UDI (Unique Device Identification) requirements
  • GS1 DataMatrix preferred for devices
  • NDC (National Drug Code) in linear barcodes
  • 2D codes for serialization compliance

Automotive

  • AIAG B-10 standard
  • Code 39 widely used
  • Data Matrix for component marking
  • VDA 4902 for European operations

Getting Started with Barcode Generation

ToolPop's Barcode Generator supports all major barcode formats:

  • Select your barcode type based on your use case
  • Enter your data following format requirements
  • Customize appearance including size and colors
  • Download in multiple formats (PNG, SVG, PDF)
  • Verify before printing with test scans

Quick Reference Guide

Use CaseRecommended Barcode
Selling in US retailUPC-A
International salesEAN-13
Shipping labelsGS1-128
Internal inventoryCode 128
Small componentsData Matrix
Marketing campaignsQR Code
ID cardsPDF417

Conclusion

Barcodes are foundational technology that powers modern commerce and logistics. Whether you're launching a retail product, managing inventory, or implementing track-and-trace systems, understanding barcode types ensures you choose the right solution for your needs.

The key is matching barcode capabilities to your specific requirements: data type and volume, available space, industry standards, and scanning environment. With this knowledge, you can implement barcode systems that improve efficiency, reduce errors, and integrate seamlessly with your operations.

Start generating professional barcodes with ToolPop's free Barcode Generator—supporting all major formats with instant downloads.

Tags
barcode typesUPC barcodeEAN barcodeCode128barcode generatorretail barcodesinventory barcodes
Share this article

Try Our Free Tools

Put these tips into practice with our free online tools. No signup required.

Explore Tools