Bar Codes
Bar codes are machine-readable optical representations of data encoded through patterns of lines, shapes, or dots that a scanner reads and converts into digits or characters, used across retail, manufacturing, healthcare, and logistics.
What Are Bar Codes?
Bar codes are machine-readable optical representations of data that encode information through systematic patterns of parallel lines, geometric shapes, or dot arrays printed on or affixed to a surface. A scanner illuminates the pattern, measures the reflected light, and converts the spatial sequence of elements into a string of digits or characters. Bar codes were developed in the late 1940s and first applied commercially in railroad car identification; the modern linear bar code used in retail grocery, the Universal Product Code (UPC), was standardized in 1973 and first scanned at a checkout terminal in 1974. Since then, bar code technology has expanded far beyond retail to encompass manufacturing, healthcare, logistics, and identity documents.
Bar codes draw on optical engineering, signal processing, and standardization work spanning multiple international bodies. Reading accuracy depends on the optical geometry of the scanner, the contrast ratio of the printed symbol, and the mathematical error-correction properties built into the symbology. Two broad categories exist: one-dimensional (linear) bar codes that encode data in the widths and spacings of parallel bars, and two-dimensional (2D) symbols that encode data in a two-dimensional matrix of elements, enabling much higher data density in a smaller physical area.
Linear and Two-Dimensional Symbologies
Linear symbologies include Code 39, Code 128, and the EAN/UPC family. Code 128, defined in ISO/IEC 15417, encodes all 128 ASCII characters and supports variable-length data, making it suitable for shipping labels and logistics applications. The EAN-13 and UPC-A symbols encode 13- and 12-digit numbers, respectively, and are the dominant retail point-of-sale identifiers globally. Two-dimensional symbologies represent a significant step in encoding capacity. QR Code, standardized in ISO/IEC 18004 and originally developed by Denso Wave in 1994, encodes up to 4,296 alphanumeric characters in a square matrix with integrated Reed-Solomon error correction capable of recovering data even if up to 30 percent of the symbol is damaged. Data Matrix (ISO/IEC 16022) is widely used in aerospace and healthcare parts marking because it can be laser-etched directly onto metal surfaces. GS1's barcode standards govern the symbologies and data structures used in global supply chain applications, covering both linear and 2D variants.
Scanning and Decoding Technology
Bar code scanners operate on one of two physical principles: laser scanning, which sweeps a laser beam across the symbol and measures reflected intensity, or image-based scanning, which captures a two-dimensional photograph of the symbol and applies pattern recognition algorithms to decode it. Image-based scanners have become dominant because they can read both 1D and 2D symbols, tolerate tilt and rotation, and work at greater distances. Smartphone cameras combined with dedicated decoding libraries now perform bar code reading without specialized hardware. The decoding pipeline includes binarization (converting the grayscale image to black and white), symbol detection, candidate region cropping, and algebraic decoding of the error-correction codes embedded in the symbology. The ISO/IEC standard for automatic identification and data capture techniques defines the technical parameters that scanning hardware must satisfy for reliable interoperability. IEEE conference publications on image-based decoding, including work indexed in IEEE Xplore on machine-readable optical symbols, document advances in camera-based readers operating under variable lighting and skew conditions.
Standards and Identification Systems
Bar code data standards are primarily maintained by GS1, an international not-for-profit organization that manages the Global Trade Item Number (GTIN) system. A GTIN identifies a specific product at a specific packaging level and forms the key to product databases used by retailers, hospitals, and regulators worldwide. The GS1-128 symbology combines Code 128 with a structured Application Identifier system that encodes not just a GTIN but also batch numbers, expiration dates, serial numbers, and weights in a single scan. Interoperability across industries depends on adherence to these standards, which are documented in the GS1 General Specifications updated annually.
Applications
Bar codes have applications in a wide range of industries, including:
- Retail checkout and point-of-sale inventory tracking
- Hospital patient safety, medication administration, and specimen labeling
- Internet of Things device provisioning and asset lifecycle management
- Inventory management in warehouses, distribution centers, and manufacturing lines
- Airline boarding passes, postal tracking, and government identity documents