Back to Blog
Guide

Complete Guide to Barcode Types: QR, PDF417, Data Matrix & More

December 16, 2025
12 min read

Barcodes and 2D codes are everywhere in our daily lives - from product packaging to event tickets, shipping labels to payment systems. This comprehensive guide covers 20+ barcode formats, their differences, and real-world applications to help you choose the right one for your needs.

2D Barcodes (Matrix Codes)

2D barcodes can store significantly more data than traditional 1D barcodes and can be read from any direction. They're ideal for applications requiring high data capacity or error correction.

QR Code (Quick Response Code) - Best for Marketing & URLs

  • Stores up to 4,296 alphanumeric characters
  • Excellent error correction (up to 30% damage tolerance)
  • Perfect for: Website links, mobile payments, product information, event tickets
  • Can embed logos without losing functionality
  • Widely recognized and supported on all smartphones

PDF417 - Best for IDs & Transportation

  • Stores up to 1,850 alphanumeric characters
  • Used on driver's licenses and ID cards (USA, Canada)
  • Standard for airline boarding passes (IATA)
  • Perfect for: Government IDs, shipping labels, inventory management
  • Built-in error correction and government-standardized

Data Matrix - Best for Small Products

  • Extremely compact (as small as 2-3mm square)
  • Stores up to 2,335 alphanumeric characters
  • Perfect for: Electronic components, PCB tracking, pharmaceutical coding, medical devices
  • Works on curved surfaces
  • Can be laser-etched or printed

Aztec Code - Best for Transportation Tickets

  • No quiet zone (blank space) required
  • Stores up to 3,832 characters
  • Perfect for: Airline boarding passes, train tickets, event passes
  • 360° omnidirectional scanning
  • Popular in European railways and postal systems

MaxiCode - Best for High-Speed Sorting

  • Fixed-size format for consistent scanning
  • Extremely fast reading (high conveyor speeds)
  • Perfect for: UPS package sorting, automated logistics, warehouse management
  • Strong error correction for industrial environments
  • Optimized for supply chain applications

Han Xin Code - Best for Chinese Characters

  • Optimized for Chinese character encoding
  • Stores up to 4,350 characters
  • Perfect for: Chinese mobile payments, product authentication in China
  • Growing adoption across Asia
  • Similar error correction to QR codes

1D Barcodes (Linear Barcodes)

Traditional 1D barcodes remain popular for retail, logistics, and inventory management due to their simplicity and wide scanner support.

Code 128 - Best for Shipping & Logistics

  • Most versatile 1D barcode
  • Encodes full ASCII character set
  • Perfect for: FedEx/UPS/DHL labels, inventory management, library systems
  • High density with built-in checksum
  • Widely supported across industries

EAN-13 / UPC-A - Best for Retail Products

  • EAN-13: European/global retail standard (13 digits)
  • UPC-A: North American retail standard (12 digits)
  • Perfect for: Point-of-sale systems, grocery stores, consumer goods
  • GS1 standardized and universally recognized
  • Includes check digits for validation

ITF-14 - Best for Shipping Cartons

  • Used for trade units and shipping containers
  • Perfect for: Outer case packaging, pallet labeling, wholesale distribution
  • Large print for easy scanning on corrugate cardboard
  • GTIN-14 compatible

How to Choose the Right Barcode

Consider Data Amount:

  • Small (< 20 characters): Use 1D barcodes (Code 128, UPC)
  • Medium (20-100 characters): QR Code, Data Matrix
  • Large (> 100 characters): PDF417, Aztec Code

Consider Physical Size:

  • Very small items: Data Matrix, MicroQR
  • Standard size: QR Code, Code 128
  • No size constraints: PDF417

Consider Industry:

  • Retail: UPC-A (USA), EAN-13 (Global)
  • Healthcare: Data Matrix, PDF417
  • Logistics: Code 128, MaxiCode
  • Transportation: Aztec Code, PDF417
  • Marketing: QR Code

Consider Environment:

  • High-speed scanning: MaxiCode, DotCode
  • Damaged surfaces: QR Code with high error correction
  • Small products: Data Matrix, MicroQR
  • Outdoor use: QR Code with H-level error correction
  • No quiet zone available: Aztec Code

Barcode Comparison Table

Here's a quick comparison of the most popular barcode types: QR Code (4,296 chars, medium size, excellent for marketing), PDF417 (1,850 chars, large, best for IDs), Data Matrix (2,335 chars, tiny, perfect for electronics), Aztec (3,832 chars, medium, ideal for transportation), MaxiCode (93 chars, fixed size, optimized for logistics), Code 128 (variable, medium, shipping standard), and EAN-13/UPC-A (12-13 digits, small, retail standard).

Key Takeaways

Remember:

  • QR Codes are best for marketing and general consumer use
  • Data Matrix excels when space is extremely limited
  • PDF417 is the standard for government and travel documents
  • Specialized industries benefit from optimized barcode types
  • Always consider data capacity, size constraints, and environment
  • Use our QR CodeCraft Generator to try different formats!
Share this article: