The History of the Barcode and the QR Code

Matt George

Fractional CTO · Founder of Injuria.ai

•16 min read•

The History of the Barcode and the QR Code

The barcode is one of the most successful and pervasive technologies of the 20th century, a silent orchestrator of global commerce and logistics. Its evolution from a simple pattern of lines into the data-rich, two-dimensional squares known as QR codes represents a multi-decade journey of innovation driven by clear economic needs. This history traces the arc from a conceptual idea in the 1930s to the first practical applications in the 1960s, the standardization that unlocked mass adoption in the 1970s, and the leap into the digital age with the invention of the QR code in the 1990s.

The story is not one of a single invention but of convergence. The concept of automated data capture predated the technology required to implement it. Early pioneers conceived of machine-readable symbols decades before lasers and microprocessors became commercially viable. The primary catalyst for the barcode's widespread success was not just technological feasibility but industry-wide collaboration. The grocery industry's demand for a standardized system to speed up checkout and manage inventory forced competing companies to agree on a single format, the Universal Product Code (UPC), creating a unified ecosystem.

As the demands of manufacturing and logistics outgrew the limited data capacity of linear barcodes, a new paradigm emerged: the 2D code. The QR code, born from the needs of the Japanese automotive industry, could hold orders of magnitude more information, offered robust error correction, and was designed for high-speed scanning. Yet, its true potential was only realized when another technology converged with it: the camera-equipped smartphone. The decision to make the QR code an open standard, combined with its native integration into mobile operating systems, transformed it from an industrial tool into a universal interface between the physical and digital worlds, a role it continues to expand upon today.

The Conceptual Origins (1932 to 1952)

The foundational idea of automating retail transactions predates the barcode itself. In 1932, Wallace Flint[1], a student at the Harvard Graduate School of Business Administration, wrote his master's thesis on an automated checkout system for retail. His system proposed that customers would select items represented by punched cards from a catalog. At the checkout, the cards would be inserted into a reader, which would activate mechanisms to deliver the items from a stockroom via conveyor belts and generate a bill. While it did not involve scanning a symbol on the product itself, Flint's work was the first documented proposal for automating the flow of goods and information at the point of sale, the core problem the barcode would eventually solve.

The direct lineage of the barcode began sixteen years later. In 1948, a local food chain executive visited Drexel Institute of Technology in Philadelphia, seeking help from the dean of engineering. The executive was desperate for a way to automatically capture product information at checkout to speed up lines and improve inventory accuracy. Bernard Silver, a graduate student at Drexel, overheard the conversation. Intrigued by the challenge, he mentioned it to his friend and fellow graduate, Norman Joseph Woodland.

The problem captivated Woodland. His first idea involved using patterns of fluorescent ink that would glow under ultraviolet light, but this proved to be expensive and unstable. His breakthrough moment famously occurred on a Miami beach in the winter of 1948 to 1949. While sitting in a beach chair, Woodland began contemplating the problem again. He recalled the dots and dashes of Morse code[2], which he had learned as a Boy Scout. As he drew patterns in the sand, he extended the dots and dashes downwards, forming narrow and wide lines. He realized that a pattern of these lines could represent data and be read by a machine. This was the conceptual birth of the linear barcode.

Woodland and Silver refined the idea, filing a patent application on October 20, 1949. Their initial design, however, was not the rectangular bar pattern common today. To solve the problem of orientation, they arranged the lines in a series of concentric circles, resembling a bull's-eye. This would allow the symbol to be scanned from any angle. On October 7, 1952, they were granted U.S. Patent 2,612,994[3] for a "Classifying Apparatus and Method." Their patent described both the bull's-eye symbol and a linear version, along with a rudimentary scanner using a powerful incandescent lamp and a photomultiplier tube to detect the reflected light. Despite securing the patent, the technology was far ahead of its time. The scanner's light source was too large and expensive, and the data processing electronics were not yet available in a compact or affordable form. Woodland and Silver sold their patent to Philco for $15,000 in 1962, not before 1952. Philco then sold the patent to RCA, with sources placing this sale in the 1960s or as late as 1971.

Early Implementations and Standardization (1959 to 1973)

While the Woodland-Silver patent lay dormant, the need for automatic identification grew in other industries. The first major, operational use of a similar technology was developed for the railroad industry. David Collins began working at Sylvania in 1959, but development of the KarTrak system he managed started in 1960. The first tests on the Boston and Maine Railroad were in 1961. The system, known as KarTrak[4] Automatic Car Identification (ACI), used a series of reflective red, white, and blue horizontal stripes attached to the side of each rail car. Scanners installed alongside the tracks used powerful xenon lamps and photomultiplier tubes to read the patterns as trains passed, identifying the car's owner and number. The system was standardized by the Association of American Railroads in 1967 and was widely deployed by the early 1970s. While technically not a barcode (it used color and was not printed), KarTrak proved that optical scanning for automatic identification was viable on an industrial scale.

The Grocery Industry's Push for a Standard

The true catalyst for the modern barcode came from the same industry that inspired Woodland and Silver: grocery retail. By the late 1960s, supermarkets were struggling with rising labor costs, slow checkout lines, and inaccurate inventory management. The industry recognized that a universal standard for product identification was the only path forward. A fragmented landscape with competing codes would be unworkable for national supply chains.

In 1969, the National Association of Food Chains (NAFC) commissioned a study on the feasibility of an automated checkout system. The resulting report spurred the formation in 1970 of the U.S. Supermarket Ad Hoc Committee on a Uniform Grocery Product Code. This committee, comprised of executives from major grocery manufacturers and retailers, set out the requirements for a standard symbol. It had to be small, printable on existing packaging with existing technology, readable from any orientation and at various speeds, and have a very low error rate. The committee invited numerous technology companies to submit proposals for a standard symbol and scanner system.

The Birth of the Universal Product Code (UPC)

Several companies, including RCA (which owned the Woodland-Silver patent), Singer, and IBM, entered the competition. Norman Joseph Woodland was now an engineer at IBM and was part of the team working on its proposal. Initially, IBM favored the bull's-eye pattern, using RCA's patent. However, another IBM engineer, George J. Laurer[5], was tasked with creating the final symbol. Laurer argued against the bull's-eye, pointing out that the circular pattern was difficult to print without smearing, especially on high-speed presses. A smeared circle would become an unreadable ellipse.

Laurer instead championed a linear, rectangular format based on Woodland's original line concept. He developed a symbology that was compact, printable, and highly reliable. Laurer's design, which became the Universal Product Code (UPC)[6], encoded digits using a specific pattern of bars and spaces. Each of the 10 digits (0 through 9) is represented by a seven-bit sequence, consisting of two bars and two spaces. The symbol includes a number system character, a five-digit manufacturer code, a five-digit product code, and a final check digit to ensure accuracy. Laurer also incorporated guard bars at the beginning, middle, and end to help the scanner synchronize with the code. Crucially, the left and right sides of the code use different parity patterns for the digits, allowing the scanner to determine the direction of the scan (left-to-right or right-to-left) and read the code correctly either way.

On April 3, 1973[7], the industry committee announced its decision. It selected the IBM proposal, with Laurer's rectangular UPC symbol, as the single standard for the grocery industry. The decision to establish one unified code was the most important event in the history of the barcode, as it guaranteed interoperability and created the network effect necessary for mass adoption.

The Rise of the UPC (1974 to 1993)

The first-ever commercial use of a UPC scanner occurred at 8:01 a.m. on June 26, 1974[8]. At a Marsh supermarket in Troy, Ohio, a shopper named Clyde Dawson purchased a 10-pack of Wrigley's Juicy Fruit gum. The cashier, Sharon Buchanan, scanned the newly printed UPC symbol on the package. The register correctly rang up the price of 67 cents. That pack of gum is now on display at the Smithsonian Institution's National Museum of American History, a relic marking the beginning of a retail revolution.

Despite this successful debut, adoption was slow for the remainder of the 1970s. The primary obstacle was a classic chicken-and-egg problem. Retailers were hesitant to invest in expensive scanner systems (which could cost over $100,000 per store) until a critical mass of products had barcodes. Manufacturers, in turn, were reluctant to bear the cost of redesigning packaging to include barcodes until enough retailers had scanners to make it worthwhile. By 1977, fewer than 200 grocery stores in the U.S. had installed scanners.

The tide began to turn in the early 1980s as the cost of scanning technology fell and the benefits became undeniable. Retailers who adopted the system saw significant improvements in checkout speed, reduced pricing errors, and, most importantly, access to real-time sales data that transformed inventory management and marketing. To manage the allocation of the UPC's five-digit manufacturer codes, the industry formed the Uniform Code Council (UCC), which is now known as GS1[9]. This non-profit organization became the global administrator of barcode standards, ensuring that each manufacturer and product had a unique identifier.

As the UPC became ubiquitous in retail, other industries saw the value of barcoding for their own applications. The fixed-length, numbers-only format of UPC was not suitable for industrial environments, which needed to encode alphanumeric characters and variable-length data. This led to the development of new barcode symbologies.

  • Code 39: Developed in 1974 by David Allais and Ray Stevens of Intermec, Code 39[10] (or Code 3 of 9) was one of the first alphanumeric symbologies. It could encode 43 characters: uppercase letters (A-Z), digits (0-9), and seven special characters. Its self-checking nature and variable length made it ideal for industrial applications like asset tracking and logistics. Its adoption was cemented in 1981 when the U.S. Department of Defense chose it as the standard for its Logistics Applications of Automated Marking and Reading Symbols (LOGMARS) program, specified in MIL-STD-1189.
  • Code 128: Introduced by Computer Identics Corporation in 1981, Code 128[11] offered much higher data density than Code 39. It can encode all 128 ASCII characters and uses a more compact structure, making it highly efficient for shipping and logistics. GS1 later adopted it for its GS1-128 standard, which is used to encode supplementary information like batch numbers, expiration dates, and measurements.
  • European Article Number (EAN): In Europe, a compatible system called the European Article Number (EAN)[12] was introduced in 1977. It is a superset of UPC, adding a leading digit to indicate the country of origin, creating a 13-digit code. Modern scanners can read both UPC and EAN codes interchangeably.

By the early 1990s, the linear barcode was a mature, indispensable technology that underpinned the global supply chain, from manufacturing and warehousing to retail and shipping.

The Need for More Data and the Birth of 2D Codes (1987 to 1994)

Linear barcodes, for all their success, had a fundamental limitation: their data capacity was very small. A UPC code contains only a 12-digit product identifier. To get meaningful information like price, description, or stock level, the scanner must be connected to a database where that identifier is used as a lookup key. The codes were also vulnerable, as a single scratch or smudge along the length of the bars could render the entire code unreadable.

By the late 1980s, industries like electronics manufacturing, pharmaceuticals, and logistics needed to store more information directly on the item itself. This could include serial numbers, batch information, expiration dates, or component details. This need drove the development of two-dimensional (2D) barcodes. Instead of encoding data in the width of parallel lines, 2D codes use a matrix of geometric shapes (typically squares, dots, or hexagons) to store information along both a horizontal and vertical axis.

Early 2D codes included Code 49 (developed by David Allais at Intermec in 1987) and, more significantly, Data Matrix[13]; while a patent was filed in 1988, it was developed in the 1990s. Data Matrix became popular for marking small electronic components and surgical instruments due to its high data density and ability to be read even when a significant portion of the code is damaged.

However, the most famous 2D code was yet to come. Its development was driven by the specific needs of the Japanese automotive industry. At Toyota's subsidiary, Denso Wave[14], workers were struggling to keep up with the variety of components used in car manufacturing. They were using multiple barcodes on a single part container, and scanning them was inefficient. They needed a single code that could hold more information and be scanned faster.

In 1992, a team at Denso Wave led by engineer Masahiro Hara[15] was tasked with creating a new 2D code to solve this problem. Their primary design goals were:

  1. High Data Capacity: It needed to hold significantly more data than existing barcodes, including Kanji and Kana characters.
  2. High-Speed Scanning: It had to be readable by scanners from any angle and at high speed to keep assembly lines moving.
  3. Robustness: It needed to be readable even if partially damaged or dirty.

Hara's key innovation was the finder pattern. To enable high-speed scanning, the scanner needed to be able to locate the code instantly within its field of view. Hara's team studied thousands of printed patterns to find a black-and-white ratio that was statistically unlikely to appear in other printed material. They settled on the iconic three square patterns located in the corners of the code. This unique design allows a scanner to rapidly detect the code's presence, orientation, and size. The code also includes smaller alignment patterns for larger codes and timing patterns (alternating black and white modules) to determine the data grid coordinates.

To meet the robustness requirement, the team integrated a powerful error correction algorithm called Reed-Solomon error correction[16]. This system adds redundant data to the code, allowing it to be read correctly even when a portion is missing or obscured. QR codes have four error correction levels, from Level L (which can restore about 7% of data) to Level H (which can restore up to 30%).

After two years of development, Denso Wave released the "Quick Response" or QR Code in 1994. In a decision that proved critical to its global success, Denso Wave made the specification for the QR code publicly available and announced it would not exercise its patent rights[17]. This open-standard approach allowed anyone to create and use QR codes without licensing fees, paving the way for widespread adoption.

The Digital Revolution and Mobile Adoption (1995 to 2010)

Following its release, the QR code was quickly standardized. It was adopted as an AIM International[18] standard in 1997, a Japanese Industrial Standard (JIS X 0510) in 1999, and an International Organization for Standardization standard (ISO/IEC 18004[19]) in 2000. Initially, its use was confined to the industrial and logistics sectors where it originated.

The transition to a consumer technology began in the early 2000s in Japan, which had a mature mobile internet ecosystem. Mobile phones with built-in cameras and pre-installed QR code reader software became common. Advertisers began placing QR codes in magazines, on billboards, and on product packaging. Users could scan a code to be instantly directed to a website, receive a coupon, or add contact information to their phone. This created a simple, effective bridge between the physical world of print media and the digital world of the mobile web.

Adoption in North America and Europe lagged significantly behind. The mobile web was less developed, data plans were more expensive, and most phones did not have built-in QR code readers. To scan a code, a user had to find, download, and open a dedicated third-party application, a cumbersome process that created too much friction for widespread use. For much of the 2000s, QR codes in the West were often seen as a marketing gimmick with low engagement.

This situation changed dramatically with the maturation of the smartphone ecosystem. The widespread availability of high-speed mobile internet and the dominance of the iOS and Android platforms set the stage for the QR code's global breakout.

The Modern Era and Future Directions (2011 to Present)

The tipping point for QR code adoption outside of Asia occurred in 2017. With the release of iOS 11[20], Apple integrated a QR code reader directly into the native camera application. Users no longer needed a separate app; they could simply point their camera at a code, and a notification would appear with the decoded action. Google soon followed, building similar functionality into Android via Google Lens and the native camera apps of many manufacturers. This removal of friction was transformative. Suddenly, billions of smartphone users had a QR code scanner in their pocket, and they knew how to use it instinctively.

This newfound ease of use, combined with the COVID-19 pandemic starting in 2020, caused an explosion in QR code usage. To minimize physical contact, restaurants replaced physical menus with QR codes on tables that linked to online versions. Retailers and payment systems adopted them for contactless transactions. Systems like Alipay[21] and WeChat Pay[22] in China had already demonstrated the power of QR codes for mobile payments on a massive scale, a model that began to see wider adoption globally.

The modern QR code is used for an enormous range of applications: Wi-Fi network onboarding, two-factor authentication, event ticketing and check-in, public transit passes, and linking to supplementary product information. The standard itself continues to evolve, with variations like the Micro QR Code[23] designed for applications where space is extremely limited.

Looking ahead, the worlds of the linear barcode and the 2D code are set to merge at the retail point of sale. GS1, the global standards organization, is spearheading an initiative called Sunrise 2027. The goal is for all retail scanning systems to be capable of reading 2D codes, like QR codes, by the end of 2027. This will allow a single symbol on a product to replace the venerable UPC. This new 2D code can contain not only the product identifier but also rich data like the batch number, expiration date, and a URL for consumer engagement. This transition promises to enhance food safety and traceability, improve inventory management (for example, by automatically identifying and discounting items nearing expiration), and provide consumers with more information about the products they buy.

From a simple idea drawn in the sand to a globally standardized system orchestrating commerce, and finally to a universal digital interface, the history of the barcode and QR code is a story of persistent, practical innovation. It demonstrates how a simple, open, and well-timed standard can fundamentally reshape industries and daily life.

Sources (23)
  1. The Bar Code Book by Roger C. Palmer (re: Wallace Flint)
  2. Wikipedia: Morse Code
  3. U.S. Patent 2,612,994 (Woodland/Silver)
  4. Wikipedia: KarTrak
  5. Wikipedia: George J. Laurer
  6. Wikipedia: Universal Product Code (UPC)
  7. GS1: 50 Years of the Barcode
  8. Smithsonian Magazine: The History of the Bar Code
  9. GS1 Official Website
  10. Wikipedia: Code 39
  11. Wikipedia: Code 128
  12. Wikipedia: International Article Number (EAN)
  13. Wikipedia: Data Matrix
  14. Denso Wave: QR Code History
  15. QRcode.com: History of the QR Code (Masahiro Hara)
  16. Wikipedia: Reed-Solomon error correction
  17. QRcode.com: Patent FAQ
  18. AIM Global Official Website
  19. ISO: ISO/IEC 18004:2015
  20. Apple Support: Scan a QR code with your iPhone camera
  21. Wikipedia: Alipay
  22. Wikipedia: WeChat Pay
  23. QRcode.com: Micro QR Code

Recommended reading

The History of Digital Photography16 min readA comprehensive reference history of digital photography, from its theoretical origins and the first prototype in 1975 to the era of computational imaging and smartphone dominance.The History of USB and the Connector Wars13 min readA comprehensive reference history of the Universal Serial Bus, from the pre-USB chaos of legacy ports to the rise of USB-C and the current challenges of protocol fragmentation.The History of the Computer Display: From CRT to OLED15 min readA comprehensive, chronological reference on the evolution of computer display technology, from the early cathode ray tubes and vector graphics to the standardization of VGA, the rise of LCD flat panels, and the modern era of self-emissive OLED and MicroLED screens.The History of Bluetooth14 min readA comprehensive history of the Bluetooth wireless standard, from its origins at Ericsson in the 1990s through the formation of the SIG, the evolution of its core specifications, and its modern applications in audio, IoT, and beyond.The History of the Domain Name System (DNS)14 min readA comprehensive, chronological history of the Domain Name System (DNS), from its origins as a solution to the scaling problems of ARPANET's HOSTS.TXT to its modern role as a cornerstone of internet infrastructure, security, and privacy.The History of Cryptocurrency and Blockchain13 min readA comprehensive, chronological history of cryptocurrency and blockchain, from the cryptographic foundations of the 1970s through the creation of Bitcoin, the rise of Ethereum, and the modern era of institutional adoption and technical scaling.