technology

Bar Coding: A Comprehensive Guide to How It Works and Why It Matters

Bar coding is a machine-readable representation of data that uses parallel lines and spaces of varying widths to encode identifiers, prices, or other information. It enables fas...

Mara Ellison
Bar Coding: A Comprehensive Guide to How It Works and Why It Matters

What Bar Coding Is and Why It Matters

Bar coding is a machine-readable representation of data that uses parallel lines and spaces of varying widths to encode identifiers, prices, or other information. It enables fast, accurate data capture at points of sale, in warehouses, and across logistics and healthcare workflows. By converting item details into scannable symbols, bar coding reduces manual entry errors, speeds transactions, and supports real-time tracking. This guide explains the core types, standards, and practical applications of bar coding, focusing on widely used, stable technologies that remain relevant over time.

Key Barcode Symbologies and Their Uses

Different symbologies suit different use cases; each encodes data in bars and spaces according to its own pattern rules. Linear or one-dimensional (1D) codes are common on retail items and for logistics, while two-dimensional (2D) matrix codes hold more data and are popular in healthcare and manufacturing. Understanding which symbology to use depends on scan distance, data density, and industry requirements.

UPC and EAN for Retail

Universal Product Code (UPC) and European Article Number (EAN) are the dominant retail symbologies. UPC encodes 12 digits and is standard in North America; EAN encodes 13 digits and is widely used internationally. Both appear as GTIN-12 or GTIN-13 in barcode numbers, linking products to pricing, inventory, and point-of-sale systems.

Code 128 and GS1-128 for Logistics

Code 128 is a high-density 1D symbology that can encode the full ASCII character set and is efficient for labeling cartons and assets. GS1-128, formerly UCC/EAN-128, encodes application identifiers that carry structured data such as batch numbers, expiration dates, and quantities, making it essential for supply chain and healthcare traceability.

Data Matrix and QR Codes for 2D

Data Matrix codes are square 2D symbols that store large amounts of data in a small area, often used in electronics and pharmaceuticals. QR codes are widely adopted for marketing, ticketing, and traceability because they can be read quickly from printed materials and screens and support URLs, contact details, and other data types.

How Barcode Scanning Works

Scanning a barcode converts the bar and space pattern into electrical signals that a decoder interprets as characters. This section covers the core mechanisms behind 1D and 2D scanning, common reader types, and factors that affect read accuracy.

  • Light reflection: A scanner’s light source illuminates the barcode; the reflected light varies with bar width and color, enabling discrimination between elements.
  • Signal conversion: Photodiodes convert light patterns into electrical signals, which are processed into digital data representing the encoded characters.
  • Decoding and verification: Decoders map patterns to data using symbology specifications and can verify print quality against standards for contrast and minimum module size.

Scanning Technologies and Hardware Options

Choosing a scanning method depends on use case, environment, and required read distance. Options range from simple laser wands to advanced imagers and mobile devices.

Low cost; simple
  • Slow; requires close contact; not ideal for rough environments
  • Scanner Type Typical Use Case Pros Cons
    Laser scanners Retail point-of-sale and simple warehouse scanning Long read range on standard codes; intuitive aiming line Slow on high-density or damaged codes; moving parts
    Imager (camera-based) scanners Warehousing, manufacturing, mobile computers Fast, omnidirectional reading; better on damaged or poorly printed codes Higher initial cost; some require more illumination
    Mobile device scanning Field service, small-business point-of-sale, asset tracking Ubiquitous hardware; flexible software integration Dependent on camera quality; may require licensing for advanced SDKs
    Pen (wand) scanners Retail price checking and basic inventory

    Barcode Standards and Identification Keys

    Global standards ensure interoperability and accurate identification across industries. These include number structures, check digits, and application identifiers that enable consistent interpretation and data integrity.

    • GTIN (Global Trade Item Number): A family of GS1 identifiers (GTIN-8, GTIN-12, GTIN-13, GTIN-14) used to uniquely identify trade items.
    • SSCC (Serial Shipping Container Code): A 18-digit GS1 identifier for pallets and shipping containers to support traceability.
    • GLN (Global Location Number): Identifies locations such as warehouses, stores, or legal entities in supply chain messages.
    • GS1 AI (Application Identifier) syntax: Enables structured data within 2D and linear codes, including lot numbers, best-by dates, quantities, and serialized serial numbers.

    Practical Applications by Industry

    Bar coding supports efficiency, accuracy, and compliance across many sectors. Different industries emphasize different aspects of barcode use, from speed at checkout to precise lot traceability.

    Retail and Point of Sale

    UPC and EAN barcodes streamline checkout, enable pricing consistency, and connect sales data to inventory systems. They also support self-checkout, mobile coupons, and loyalty programs when integrated with POS software.

    Warehousing and Logistics

    Inbound and outbound processes rely on bar codes for receiving, put-away, cycle counting, and shipping. SSCC and GS1-128 facilitate carton-level tracking and advance shipping notices (ASNs), improving visibility across the supply chain.

    Healthcare and Pharmaceuticals

    Bar coding helps ensure the right patient receives the right medication by linking medication barcodes to electronic medication administration records (eMAR). It supports traceability for serial numbers, lot numbers, and expiration dates, aligning with regulatory requirements.

    Manufacturing and Asset Management

    Bar codes track work-in-progress, capture time-and-attendance data, and manage fixed assets. Durable asset tags and label standards help maintain visibility across equipment and tooling.

    Print quality directly affects scan reliability. Poor contrast, insufficient quiet zones, incorrect module sizes, or damage can prevent reading. Verification against symbology standards and using barcode grade checks help ensure acceptable print quality.

    Common issues include low contrast, smudges, narrow print widths, and barcode shrinkage during label printing. Using correct media, printer settings, and verification tools reduces read failures and supports compliance with industry requirements.

    Best Practices and Strategic Considerations

    Effective barcode use requires clear standards for symbology, numbering, label layout, verification, and staff training. Organizations should align barcode practices with data standards (such as GS1), integrate scanning events into enterprise systems, and plan for device lifecycle management.

    • Define label formats and quiet zone sizes to meet specifications for each symbology.
    • Use verification to measure print quality; aim for grades that exceed minimum scanner requirements.
    • Standardize application identifiers to ensure consistent interpretation across trading partners.
    • Train staff on correct scanner placement, maintenance, and troubleshooting to reduce downtime.

    Related Reading

    More pages in this topic cluster.

    Samsara: A Verified Overview of the Company and Its Core Offerings

    Samsara is an operations IoT company that connects physical operations to the cloud, enabling enterprises to manage fleets, assets, and field workflows using data and automation...

    Read next
    What Is Video Capture: Definition, Methods, and Best Practices

    Video capture is the process of recording or converting moving images and audio into a digital format that can be stored, edited, and shared. It underpins streaming, broadcastin...

    Read next
    CDMA Mobile Network: How It Works, Key Differences, and Current Use

    Code Division Multiple Access (CDMA) is a channel access method used in some mobile radio networks that allows multiple users to share the same frequency band by assigning each...

    Read next