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.
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
- Compressed version of UPC-A
- Used for: Small packages where space is limited
- Removes zeros from UPC-A to create compact code
- Numeric only (0-9)
- Fixed length
- High scanning reliability
- Requires GS1 membership for official codes
- Annual fees based on company size
- 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)
- Compact version for small products
- Used for: Items too small for EAN-13
| Prefix | Country/Region |
|---|---|
| 00-13 | USA and Canada |
| 30-37 | France |
| 40-44 | Germany |
| 45-49 | Japan |
| 50 | UK |
| 690-699 | China |
- 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
- 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)
- Variable length
- Full ASCII support
- Highest density linear barcode
- Automatic character set switching
- Mandatory check digit
- Application identifiers for structured data
- Used for shipping labels (SSCC)
- Encodes batch numbers, dates, weights
- Required for supply chain compliance
- 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
- 14-digit version for shipping containers
- GTIN (Global Trade Item Number) encoding
- Larger tolerances for corrugated surfaces
- 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
| Level | Recovery Capacity | Use Case |
|---|---|---|
| L | 7% | Clean environments |
| M | 15% | General use |
| Q | 25% | Industrial |
| H | 30% | High-damage risk |
- 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
- 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
- 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
- Limited space: Data Matrix, EAN-8, UPC-E
- Standard products: UPC-A, EAN-13, Code 128
- Large surfaces: ITF-14, Code 39
- Retail: UPC, EAN
- Healthcare: Code 128, Data Matrix
- Logistics: GS1-128, ITF-14
- Automotive: Code 39, Data Matrix
- 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
| Feature | UPC/EAN | Code 128 | QR Code | Data Matrix |
|---|---|---|---|---|
| Dimensions | 1D | 1D | 2D | 2D |
| Data Type | Numeric | Full ASCII | Any | Any |
| Capacity | 12-13 | Variable | 4,296 alnum | 2,335 alnum |
| Error Correction | Check digit | Check digit | Up to 30% | Up to 25% |
| Min Size | ~25mm | Variable | ~10mm | ~2mm |
| Primary Use | Retail | Logistics | Marketing | Manufacturing |
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 Case | Recommended Barcode |
|---|---|
| Selling in US retail | UPC-A |
| International sales | EAN-13 |
| Shipping labels | GS1-128 |
| Internal inventory | Code 128 |
| Small components | Data Matrix |
| Marketing campaigns | QR Code |
| ID cards | PDF417 |
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.
Try Our Free Tools
Put these tips into practice with our free online tools. No signup required.
Explore Tools