A barcode is a machine-readable optical representation of data, encoded as bars and spaces (1D) or two-dimensional patterns (2D). A scanner lights up the code, captures the reflected contrast, and converts the signal into alphanumeric characters. The foundational standard is ISO/IEC 15420:2009 for linear symbologies.
Barcodes date back to 1949, when Norman Joseph Woodland and Bernard Silver filed the first US patent covering a circular pattern read by photodetector. Patent US 2,612,994 was granted in October 1952. It was not until June 1974, at a Marsh Supermarkets store in Troy (Ohio), that a pack of Wrigley chewing gum became the first product ever scanned at a UPC-A till.
Today, more than 6 billion GS1 barcode scans are logged every day worldwide, according to the GS1 General Specifications v25.0. The technology has diversified into two main families: historic 1D linear codes and high-density 2D matrix codes, adopted massively since 2020 for product traceability, Unique Device Identification (UDI) in healthcare and mobile payments.
How does a scanner physically decode a code? The scanner emits light (LED, laser or image sensor), measures the dark and light zones reflected back, then matches the sequence against a lookup table defined by the symbology in use. A bar absorbs light, a space reflects it: the width combination, decoded according to the format's standard, returns the associated alphanumeric character.