Chapter 50: The Rise of 2D Barcodes (PDF417, Data Matrix, QR) |
Short Summary |
The emergence of two-dimensional (2D) barcodes in the 1990s represented a fundamental shift in automatic identification technology. While linear symbologies like Code 39 had served industry well for two decades, their inherent limitations in data capacity and space efficiency became insurmountable barriers for emerging applications. This chapter traces the development of the three dominant 2D symbologies - PDF417, Data Matrix, and QR Code - and examines how their technical characteristics enabled entirely new categories of use cases that Code 39 could never address. We will explore the specific attributes of each symbology and their impact across multiple industries, from automotive manufacturing and healthcare to logistics and consumer engagement. The chapter concludes with a detailed summary of how the technical features of 2D barcodes have fundamentally reshaped data capture across the global economy. |

|
1. Introduction: The Limitations That Drove Innovation |
By the mid-1980s, Code 39 had established itself as one of the most widely used barcode symbologies in the world. Its adoption by the United States Department of Defense through the LOGMARS program, by the automotive industry through AIAG standards, and by healthcare through the Health Industry Bar Code (HIBC) standard had cemented its position as a reliable workhorse for alphanumeric data encoding . The symbology's self-checking property, which meant that a single printing defect could not transform one valid character into another, made it robust even in imperfect printing conditions . |
Yet even as Code 39 reached the height of its influence, its fundamental limitations were becoming increasingly apparent to engineers and supply chain professionals. The most significant constraint was its low data density. Each character in Code 39 required nine elements - five bars and four spaces - of which three were wide and six were narrow . The inter-character gap added further space requirements. A typical Code 39 label encoding 20 to 30 characters was already approaching its practical limit for most label sizes . For applications requiring serial numbers, expiration dates, batch information, or other supplementary data alongside a product identifier, Code 39 simply could not fit everything onto a label of practical dimensions. |
The character set presented another constraint. Standard Code 39 encoded only 43 characters - uppercase letters A through Z, digits 0 through 9, and a handful of special characters including space, hyphen, period, dollar sign, slash, plus, and percent . While the Full ASCII extension made it possible to encode lowercase letters and control characters by using pairs of Code 39 characters, this effectively doubled the length - and therefore the space required - for each extended character . A label encoding lowercase text could easily become twice as long, consuming valuable label real estate. |
For industries that had embraced Code 39 early, these limitations were not necessarily fatal. Military logistics, automotive parts tracking, and internal asset management could continue using Code 39 for many applications. But as the 1980s progressed, new demands emerged that Code 39 simply could not satisfy. The result was a period of intense innovation that gave birth to the first practical two-dimensional barcodes. |

|
2. The Birth of Two-Dimensional Symbologies |
The Conceptual Leap |
The idea of encoding data in two dimensions was not entirely new. Matrix codes had been explored in academic settings and in specialized industrial applications for some years. But making such codes practical for widespread commercial use required solving several difficult problems: finding a way to encode sufficient data in a small space, building error correction robust enough to handle real-world printing and scanning conditions, and creating a symbol structure that could be reliably located and decoded regardless of orientation. |
The fundamental concept was elegantly simple. Instead of encoding data as a single row of variable-width bars, a two-dimensional code would use both horizontal and vertical axes to encode information. This could be accomplished either by stacking rows of linear barcodes on top of each other (a 'stacked' or 'multi-row' code) or by using a matrix of square modules arranged in a grid (a 'matrix' or '2D' code). Both approaches dramatically increased the amount of data that could be encoded in a given area. |
By the late 1980s and early 1990s, several companies had independently developed practical 2D symbologies. Intermec, the same company that had created Code 39, developed Code 49 in 1988, a stacked code that could hold up to 49 alphanumeric characters across multiple rows . While Code 49 demonstrated the feasibility of stacked codes, its capacity was still relatively modest. |
The true breakthroughs came in 1991 and 1994, when three symbologies emerged that would define the 2D barcode landscape for decades to come: PDF417 from Symbol Technologies, Data Matrix from International Data Matrix, and QR Code from Denso Wave . Each approached the 2D challenge differently, and each found its own niche based on its technical characteristics. |

|
3. PDF417: The Workhorse for Government and Logistics |
Technical Characteristics |
PDF417, developed by Symbol Technologies in 1991, was a stacked symbology that built on the concepts pioneered by Code 49 but with far greater sophistication . The name 'PDF417' stands for 'Portable Data File 417,' with the 417 referring to the pattern of four bars and one space in each codeword and the fact that each codeword represents one of 417 possible values. This was a significant departure from the simple 'wide/narrow' encoding of Code 39; PDF417 used a more complex encoding scheme that allowed much higher data density. |
In practical terms, a PDF417 symbol consists of a stack of rows, with each row containing a start pattern, a number of data codewords, and a stop pattern. The symbology can encode up to 1,850 alphanumeric characters, making it vastly more capable than any linear barcode . Crucially, PDF417 incorporated Reed-Solomon error correction, a sophisticated mathematical technique that allowed the code to be read even if portions of the symbol were damaged or obscured. This made PDF417 much more robust in real-world conditions than Code 39, which lacked any formal error correction capability . |
Industry Applications |
The combination of high data capacity and robust error correction made PDF417 attractive for applications where large amounts of data needed to be printed in a machine-readable form. The first major adoption came in government identification documents. The United States, many European countries, and jurisdictions worldwide adopted PDF417 for driver's licenses, encoding everything from the bearer's name and address to organ donor status and other demographic information. A single PDF417 symbol on the back of a driver's license could replace multiple pages of printed information, and law enforcement officers could instantly access all relevant data with a single scan. The adoption of PDF417 for this purpose was so widespread that, for many years, the presence of a PDF417 symbol on an identification card was a de facto standard. |
Automotive shipping became another major application area. Shipping labels from major carriers such as FedEx and UPS began incorporating PDF417 symbols to encode address information, tracking numbers, package weight, and other details . This allowed automated sorting systems to process packages more quickly and accurately than was possible with linear barcodes alone. A shipping label that might previously have required multiple Code 39 symbols (one for the tracking number, one for the destination ZIP code, one for the service type) could now encode all this information in a single compact symbol. |
The logistics industry's adoption of PDF417 was driven by the simple economics of efficiency. According to research from GS1 US, warehouses relying on traditional one-dimensional barcodes could spend more than $800,000 annually on shipment errors, rescanning labor, and relabeling. Facilities operating with advanced two-dimensional barcodes could reduce these costs to approximately $302,000 per site, representing potential savings of more than $515,000 per facility . PDF417, as one of the earliest 2D symbologies available, captured a significant portion of this early market. |
PDF417 vs. Code 39 |
Comparing PDF417 to Code 39 highlights the dramatic leap forward that 2D symbologies represented. A typical Code 39 symbol encoding a 20-character alphanumeric string would occupy roughly two inches of linear space at a reasonable print resolution. The same data in PDF417 could fit into a square less than an inch on a side. Moreover, PDF417 could encode far more than 20 characters; its practical capacity was measured in hundreds or even thousands of characters, depending on the symbol size. |
The error correction capability was another critical difference. Code 39 was self-checking, meaning that a single bar width error would produce an invalid character that the decoder would reject . But if the symbol was damaged beyond a single character, the entire reading would fail. PDF417's Reed-Solomon error correction allowed the symbol to be decoded even if significant portions were torn, smudged, or otherwise damaged. This made PDF417 much more suitable for applications where symbols would be subjected to rough handling, such as shipping labels on packages traveling through automated sorting systems. |
For government identification cards, which needed to remain readable for years despite being carried in wallets and subjected to wear, the robustness of PDF417's error correction was a decisive advantage. |

|
4. Data Matrix: The Champion of Miniaturization |
Technical Characteristics |
Data Matrix was developed in 1994 by International Data Matrix (IDMatrix) specifically to address one of the most persistent limitations of linear barcodes: the inability to encode sufficient data on very small objects . While Code 39 and other linear symbologies could be printed in small sizes, the minimum practical size was limited by the need to maintain readable bar widths. Printing a Code 39 label small enough to fit on a tiny electronic component was simply not possible. |
Data Matrix solved this problem by using a matrix of square modules arranged in a rectangular or square grid. The symbol is surrounded by a finder pattern of solid lines on two adjacent sides and alternating dark and light modules on the other two sides, which allows a scanner to locate and orient the symbol regardless of its rotation. Within the data region, each square module represents a single bit of data. |
The practical data capacity of Data Matrix is substantial: up to 2,335 alphanumeric characters or 3,116 numeric digits . In real-world applications, however, the key advantage is not the maximum capacity but the ability to encode useful amounts of data in extremely small symbols. A Data Matrix symbol measuring as little as 2.5 millimeters square can encode enough data for serialization and traceability purposes . This makes Data Matrix uniquely suited for marking objects where label space is at a premium. |
Industry Applications |
The electronics industry was among the earliest and most enthusiastic adopters of Data Matrix. Printed circuit boards, integrated circuits, and other electronic components are often too small to accommodate any linear barcode. Yet manufacturers needed to track these components through production processes, manage inventory, and provide traceability in case of quality issues. Data Matrix allowed laser etching of codes directly onto components and circuit boards, enabling lifetime traceability without requiring any additional label material. |
The adoption of Data Matrix in electronics manufacturing was driven by both necessity and regulation. As electronic devices became smaller and more complex, the need for component-level traceability increased. A Data Matrix code etched onto a chip could encode the manufacturer, date code, lot number, and other production information. If a particular batch of chips was found to be defective, the manufacturer could trace which chips had been installed in which products, enabling targeted recalls that minimized cost and disruption. |
The aerospace industry followed a similar path. Aircraft components are subject to stringent safety requirements and must be tracked throughout their service life. Direct part marking with Data Matrix codes, achieved through laser etching or dot peening, allowed individual components to be identified and traced from manufacturing through maintenance and eventual retirement. The same principle applied in automotive manufacturing, where Data Matrix codes became standard for marking engine blocks, transmissions, and other major components . The German automotive industry, in particular, was an early adopter of Data Matrix for assembly tracking and quality control. |
Healthcare was another sector that embraced Data Matrix. The United States Food and Drug Administration's Unique Device Identification (UDI) mandate required medical devices to carry a unique identifier that could be read at point of use. Data Matrix was one of the symbologies approved for this purpose, and many medical device manufacturers adopted it . A Data Matrix code on a surgical instrument or implantable device could encode the device identifier, lot number, expiration date, and other critical information in a space barely larger than a pinhead. Hospital inventory management systems could scan these codes to track which devices were used on which patients, enabling rapid recalls if a device was found to be defective. |
The pharmaceutical industry, under pressure from the Drug Supply Chain Security Act (DSCSA), similarly adopted Data Matrix for serialization of drug packages . A Data Matrix code on a vial or blister pack could encode the National Drug Code, lot number, and expiration date, allowing wholesalers, pharmacies, and hospitals to verify the authenticity of drugs and track their movement through the supply chain. |
Data Matrix vs. Code 39 |
The contrast between Data Matrix and Code 39 is perhaps the most dramatic of any pair of symbologies. Code 39 could not be effectively printed smaller than about 0.19 millimeters per narrow bar width (7.5 mils) for reliable reading . At this size, a typical Code 39 symbol was several centimeters long. Data Matrix could be printed at 0.25 millimeters per module and still be readable, and symbol sizes of 2.5 millimeters square were practical . For applications requiring marking on tiny objects, Code 39 was simply not a viable option. |
Another key difference was the reading technology. Code 39 was designed to be read by laser scanners, which scanned a line across the symbol and detected the widths of bars and spaces. Data Matrix, like other 2D symbologies, required imaging-based scanners that could capture and decode the entire matrix of modules at once. For many years, this limited Data Matrix adoption to environments where imaging scanners were available. The rise of smartphone cameras and native QR code reading capabilities in the 2010s dramatically expanded the addressable market for 2D codes. |
Perhaps the most significant difference was the error correction capability. Data Matrix uses Reed-Solomon error correction that can reconstruct the original data even if a portion of the symbol is damaged. This is particularly important for direct part marking, where the surface conditions may be rough or the code may be partially obscured by wear or dirt. A Code 39 symbol that is scratched or smudged enough to obscure even a single character would be unreadable; a Data Matrix code with similar damage might still decode successfully. |

|
5. QR Code: From Assembly Line to Consumer Phenomenon |
Technical Characteristics |
QR Code was developed in 1994 by Denso Wave, a subsidiary of Toyota, specifically for tracking automotive parts on the assembly line . The 'Quick Response' in the name reflected the design goal of allowing high-speed reading; the finder patterns at three corners of the symbol allow a scanner to quickly locate and orient the code regardless of its angle. The symbol is composed of a matrix of square modules with a distinctive bullseye-like pattern at the three corners and smaller alignment patterns throughout. |
The data capacity of QR Code is impressive: up to 4,296 alphanumeric characters or 7,089 numeric digits . This is sufficient to encode substantial amounts of information, including product names, specifications, batch details, and even entire documents or images. QR Code also incorporates Reed-Solomon error correction at multiple levels, allowing users to choose between higher data capacity or greater robustness. |
One of QR Code's key innovations was the inclusion of four error correction levels: L (Low, 7% recovery capacity), M (Medium, 15% recovery), Q (Quartile, 25% recovery), and H (High, 30% recovery). This allowed designers to choose the appropriate balance between data capacity and damage tolerance for each application. For an automotive assembly line environment, where codes might be partially obscured by grease or dirt, a high error correction level would be appropriate. For a marketing application where the code would be printed on clean paper and scanned under good conditions, a low error correction level would allow more data to be encoded in a smaller space. |
Industry Applications: Manufacturing Origins |
As noted above, QR Code was born in automotive manufacturing. Toyota was an early adopter of just-in-time manufacturing, and the company needed a system to track parts as they moved through the production process. QR Code's ability to encode multiple data elements in a single small symbol and its high-speed reading capability made it ideal for this purpose. Workers on the assembly line could quickly scan QR Codes on parts bins to verify that the correct components were available at each station. The system could track which parts were installed in which vehicles, enabling traceability and quality control. |
From Toyota, the use of QR Code spread throughout the Japanese automotive industry and then to other manufacturing sectors . Electronics manufacturers, appliance makers, and other industrial users found QR Code valuable for work-in-progress tracking and inventory management. The symbology's flexibility (multiple sizes, multiple error correction levels, multiple data encoding modes) made it adaptable to a wide range of applications. |
Industry Applications: Healthcare and Patient Safety |
As the healthcare industry became more focused on patient safety and error reduction, QR Code emerged as a useful tool for medication administration and patient identification. Hospital bedside scanning systems using QR Codes on patient wristbands and medication packaging could dramatically reduce medication administration errors . A nurse scanning a patient's wristband and the medication package would receive immediate confirmation or warning about the drug, dose, route, and timing. This 'five rights' verification (right patient, right drug, right dose, right route, right time) was far more reliable than manual checking. |
The regulatory environment also drove healthcare QR Code adoption. The FDA's Unique Device Identification mandate and the DSCSA serialization requirements affected QR Code as well as Data Matrix . Hospitals and healthcare systems needed to be able to scan codes on medical devices and drug packages to verify authenticity and track usage. QR Code's compatibility with consumer smartphones meant that even smaller healthcare facilities could implement scanning capabilities without investing in specialized equipment. |
Industry Applications: Consumer Marketing and Beyond |
The most dramatic shift in QR Code's trajectory came with the widespread adoption of smartphones. Apple added native QR Code reading to the iOS camera app in 2017 (iOS 11), and Android followed with similar native support . This transformed QR Codes from an industrial tool into a consumer interface accessible to billions of people worldwide. |
Restaurants adopted QR Codes for contactless menus, allowing patrons to view menus on their phones without touching physical menus. Retailers used QR Codes on product packaging to provide detailed product information, sustainability data, or promotional content. Payment systems in many countries, particularly in Asia, integrated QR Codes for peer-to-peer and merchant payments. In China, QR Code-based payments became so ubiquitous that cash and credit cards were largely displaced for everyday transactions. |
The consumer adoption of QR Code represents a fascinating divergence from the typical barcode story. While Code 39, PDF417, and Data Matrix remained largely invisible to consumers (used behind the scenes in supply chains and logistics), QR Code became a direct interface between consumers and digital information. The QR Code on a product package, advertisement, or business card was a portal to a website, a video, a payment system, or other digital content. This consumer-facing role required QR Code to be readable by smartphone cameras, which in turn influenced its design (such as the finder patterns and the choice of error correction levels). |
QR Code vs. Code 39 |
The comparison between QR Code and Code 39 is perhaps the most instructive in understanding the evolution of barcode technology. Code 39 was designed for a world where barcodes were scanned by specialized devices and where data capacity was modest. QR Code was designed for a world where barcodes could be scanned by anything with a camera, where data capacity could be enormous, and where error correction was essential. |
The most obvious difference is data capacity. A Code 39 symbol could practically encode 20 to 30 characters . A QR Code of even moderate size could encode hundreds or thousands of characters. This difference is not merely quantitative; it is qualitative. With Code 39, the data encoded was typically an identifier that would be looked up in a database. With QR Code, the data itself could be the content, such as a URL, contact information, or product details. The code became a standalone data carrier rather than a pointer to a remote database. |
The readability difference is equally significant. Code 39 requires the scanner to read the bars in a specific orientation; scanning upside-down or at an angle may fail. QR Code's finder patterns allow it to be read from any angle, making it much more user-friendly for consumer applications . This omnidirectional reading capability was critical for QR Code's success in consumer-facing roles, where users might scan codes at awkward angles or in varying lighting conditions. |
Finally, the error correction capability is a major differentiator. Code 39 has no formal error correction, only a self-checking property that allows the reader to reject invalid characters. QR Code's Reed-Solomon error correction can reconstruct the original data even if up to 30% of the symbol is damaged (at Level H). This makes QR Code much more robust in real-world consumer usage, where codes may be on crumpled paper, dirty packaging, or displayed on phone screens. |

|
6. Impact Across Industries |
Manufacturing and Supply Chain |
The manufacturing industry was perhaps the earliest and most enthusiastic adopter of 2D barcodes. Automotive manufacturers, electronics companies, and aerospace firms all found that 2D codes solved problems that Code 39 and other linear symbologies could not address . The ability to encode multiple data elements (part number, serial number, date code, manufacturer code) in a single small symbol was revolutionary for work-in-progress tracking and quality control. |
The GS1 Sunrise initiative, launched in the 2020s to accelerate the transition from one-dimensional to two-dimensional barcodes in retail and supply chains, reflects the broad industry consensus that 2D codes are the future . By 2027, the initiative aims to have most retail and related sectors using 2D codes such as QR Code and Data Matrix on all product packaging. This transition is driven by the recognition that one-dimensional barcodes, with their limited data capacity, simply cannot support the traceability, transparency, and regulatory compliance requirements of modern supply chains. |
For manufacturers, the benefits of 2D barcodes extend beyond simple data capacity. The error correction capability of 2D codes allows them to survive harsh industrial environments. A QR Code or Data Matrix code on a part that is exposed to grease, heat, or physical wear is more likely to remain readable than a Code 39 symbol. This reliability is critical in industries where product liability is a concern. |
Healthcare and Patient Safety |
The healthcare industry has been one of the most important adopters of 2D barcodes, driven by regulatory requirements and patient safety goals. The FDA's Unique Device Identification mandate and the DSCSA serialization requirements forced medical device manufacturers and pharmaceutical companies to implement 2D barcode systems . These regulations were not merely bureaucratic paperwork; they were responses to real patient safety issues. Counterfeit drugs, defective devices, and medication administration errors had all caused serious harm, and better traceability was seen as a key part of the solution. |
Hospitals have implemented bedside scanning systems using 2D barcodes on patient wristbands and medication packaging . A scan of the patient wristband and medication package verifies the 'five rights' and documents the administration in the electronic health record. This reduces medication errors and provides an audit trail for quality improvement. The same technology is used for blood transfusions (verifying patient and blood product compatibility), specimen collection (linking the specimen to the patient), and equipment tracking (ensuring that devices are available and properly maintained). |
Government and Identification Documents |
Government-issued identification documents were one of the earliest mass-market applications of 2D barcodes. PDF417 became the de facto standard for driver's licenses in the United States and many other countries . The code on the back of a driver's license encodes the bearer's name, address, date of birth, license number, organ donor status, and other information. This allows law enforcement officers and other authorized users to access this information quickly with a scanner, without manual data entry. |
The same technology has been applied to other identification documents, such as national ID cards, residence permits, and even some passports. The robustness and high capacity of 2D barcodes make them ideal for these applications, where the document must remain readable for many years despite daily use and wear. |
Logistics and Transportation |
The logistics industry, including package carriers, freight forwarders, and postal services, has been a major user of 2D barcodes. PDF417, in particular, was adopted for shipping labels, encoding address information, tracking numbers, and other data . The ability to encode all this information in a single compact symbol allowed automated sorting systems to process packages more quickly and accurately than was possible with multiple one-dimensional barcodes. |
A significant advantage of 2D barcodes for shipping labels is the ability to encode data in both the horizontal and vertical directions. A PDF417 symbol on a shipping label can be oriented so that it can be scanned from almost any direction, which is valuable for automated sorting where packages may be oriented randomly on the conveyor belt. This capability also makes it easier for workers to scan labels manually, reducing the time and effort required for package processing. |
Consumer Applications and Marketing |
QR Code's transformation from an industrial tool to a consumer interface has been the most visible 2D barcode phenomenon of the past decade . QR Codes on product packaging allow consumers to access detailed product information, verify authenticity, or engage with promotional content. QR Codes in advertisements link to websites, videos, or other digital content. QR Codes on business cards and name tags encode contact information that can be added to a phone's address book with a single scan. |
The pandemic accelerated QR Code adoption in restaurants and other businesses. Contactless menus, contactless ordering, and contactless payment systems all relied on QR Codes. These applications required QR Code to be readable by consumer smartphones, which drove improvements in scanning algorithms and increased awareness among consumers. QR Codes are now a familiar part of daily life for billions of people worldwide. |

|
7. The Technical Shift: What 2D Barcodes Made Possible |
Data Capacity as a Game Changer |
The most fundamental technical difference between 2D codes and Code 39 is data capacity. Where Code 39 could encode perhaps 20 to 30 characters in a practical symbol size, PDF417 could encode 1,850 alphanumeric characters, Data Matrix 2,335, and QR Code 4,296 . This increase is not simply a matter of more data in the same space; it enables entirely new applications. |
With Code 39, the typical use case involved encoding an identifier that would be looked up in a database to retrieve additional information. The barcode was a key to a remote data record. With 2D codes, the data itself can be embedded in the symbol. The barcode becomes a portable data file that can be read and interpreted without any network connection. This is essential for applications where network connectivity is not available, such as in remote warehouses, on airplanes, or in other disconnected environments. |
The data capacity of 2D codes also enables granular traceability. In a pharmaceutical supply chain, a Data Matrix code on each drug package can encode the product identifier, lot number, expiration date, and serial number. This allows each package to be tracked individually through the supply chain, enabling rapid recalls and counterfeit detection. Code 39 could not encode all this information in a single symbol, and printing multiple Code 39 symbols on each package would have been impractical. |
Error Correction and Robustness |
The self-checking property of Code 39 means that a single bar width error will produce an invalid character, which the decoder will reject . This is a useful property, but it does not provide any ability to recover from damage. If a Code 39 symbol is smudged or torn in a way that affects multiple characters, the entire reading will fail. |
The Reed-Solomon error correction used in PDF417, Data Matrix, and QR Code is a much more powerful mechanism. Depending on the error correction level selected, a QR Code, for example, can recover from damage affecting up to 30% of the symbol . This makes 2D codes much more robust in real-world conditions where symbols may be printed on rough surfaces, subjected to wear, or partially obscured. The difference is particularly notable for direct part marking, where a Data Matrix code is laser-etched onto a component that may be exposed to harsh environmental conditions. The robustness of the error correction allows the code to remain readable despite years of wear. |
Miniaturization and Direct Marking |
The ability to print readable codes on very small objects is one of the most important advances enabled by 2D symbologies. Data Matrix, in particular, was designed for this purpose, with symbol sizes as small as 2.5 millimeters square . This allows manufacturers to mark electronic components, medical devices, and other small objects with traceability data that would have been impossible with Code 39. |
Direct part marking is another significant advantage. Data Matrix codes can be laser-etched directly onto metal components, plastic housings, or other surfaces. This eliminates the need for labels, which can fall off or become illegible over time. The code is permanently part of the component, providing lifetime traceability. This is essential in aerospace, automotive, and medical device manufacturing, where products must be tracked throughout their service life. |
Reading Technology and Consumer Access |
Code 39 was designed to be read by laser scanners. The laser scans a line across the symbol, and the scanner measures the widths of bars and spaces. This works well for linear barcodes, but it is not suitable for 2D symbols, which require the reading device to capture the entire two-dimensional pattern. |
2D codes require imaging-based readers, which capture an image of the entire symbol and then use software to decode the data. In the early years of 2D barcodes, this required specialized imaging scanners, which were more expensive than laser scanners. This limited 2D adoption to applications where the benefits justified the cost. |
The widespread adoption of smartphones with built-in cameras and image processing capabilities changed this equation dramatically. A smartphone running a barcode reading app can decode 2D codes just as effectively as a dedicated imaging scanner. Apple's addition of native QR Code reading to iOS 11 in 2017 made QR Code scanning available to hundreds of millions of users without any additional app . Android followed with similar native support. This enabled the consumer-facing applications of QR Code, from marketing to payments to contactless menus. |

|
8. The Current State and Future Trajectory |
The Transition from Code 39 |
Code 39 has not disappeared, nor will it disappear anytime soon. The symbology is embedded in established systems across many industries, from U.S. Department of Defense logistics to automotive parts labeling to healthcare inventory management . Replacing these systems would require substantial investment in new hardware and software, and in many cases, the benefits of switching may not justify the costs. |
However, Code 39 is increasingly being phased out for new applications. GS1's Sunrise 2027 initiative aims to transition retail and supply chain applications from one-dimensional to two-dimensional barcodes . This reflects the broad recognition that 2D codes offer superior data capacity, error correction, and flexibility. For applications requiring traceability, serialization, or consumer engagement, Code 39 is no longer competitive. |
The transition will not be immediate or complete. During the transition period, many products will carry both one-dimensional and two-dimensional codes, ensuring backward compatibility with existing scanning systems . One-dimensional codes will continue to be used in contexts where only basic product identification is needed. But over time, 2D codes will become the default, and Code 39 will become a legacy technology used primarily in niche applications. |
The Role of 2D Codes in Digital Transformation |
The broader trend driving 2D code adoption is digital transformation. The ability to encode significant data in a machine-readable form and to connect physical objects to digital information networks is central to the vision of Industry 4.0, the Internet of Things, and other digital transformation initiatives. |
GS1 Digital Link, a standard for connecting barcodes to digital information, exemplifies this trend . A QR Code on a product package can encode a web address that provides dynamic information about the product. The consumer scanning the code might see product specifications, sustainability data, or promotional content. The retailer scanning the same code might access inventory data or supply chain information. The same code serves multiple purposes for different users, depending on the context. This flexibility is something that Code 39, with its limited data capacity, could never provide. |
The Challenges of 2D Code Implementation |
While 2D codes offer many benefits, their implementation is not without challenges. The greater complexity of 2D codes introduces new imaging challenges that require careful attention to print quality, lighting, and scanning conditions . Small, dense codes are more sensitive to image quality and contrast than simple linear barcodes. Poor visibility can reduce decoding accuracy. |
Codes printed on difficult surfaces, such as plastic, film, curved packaging, or glossy labels, may suffer from glare, distortion, or uneven readability. Uniform illumination and controlled beam angles are needed to reduce reflections and improve contrast. High-speed conveyor systems require synchronized cameras and strobed lighting to capture sharp images of moving products. Environmental variations, including changes in ambient light, dust, vibration, and inconsistent packaging orientation, all affect barcode detection and decoding reliability. |
Despite these challenges, the benefits of 2D codes are compelling enough to drive their adoption. Machine vision systems, designed to provide stable imaging conditions under challenging circumstances, are increasingly deployed to ensure reliable decoding . As the technology matures and best practices become widely known, the implementation challenges will diminish. |

|
9. Detailed Summary |
The rise of two-dimensional barcodes in the 1990s represented a fundamental shift in automatic identification technology. Where Code 39 and other linear symbologies had been limited to encoding identifiers and small amounts of supplementary data, 2D codes offered data capacity measured in hundreds or thousands of characters, robust error correction that could recover from significant damage, and the ability to be printed or etched in extremely small sizes. These technical characteristics enabled entirely new categories of applications across multiple industries. |
PDF417 emerged as the workhorse for government identification documents and logistics . Its high capacity (up to 1,850 alphanumeric characters) and robust Reed-Solomon error correction made it suitable for driver's licenses, shipping labels, and other applications where large amounts of data needed to be encoded in a machine-readable form. The adoption of PDF417 for driver's licenses in the United States and many other countries made it perhaps the most visible 2D barcode of its era. |
Data Matrix was designed for miniaturization and became the standard for marking small electronic components, medical devices, and other objects where label space is limited . Its ability to be printed in sizes as small as 2.5 millimeters square enabled direct part marking with laser etching, providing lifetime traceability for components in the electronics, aerospace, and automotive industries. The FDA's Unique Device Identification mandate and the DSCSA serialization requirements for pharmaceuticals further drove Data Matrix adoption in healthcare. |
QR Code was born in automotive manufacturing and became a global consumer phenomenon . Its fast reading speed, omnidirectional scanning capability, and multiple error correction levels made it suitable for assembly line tracking. The widespread adoption of smartphones with native QR Code reading capabilities (starting with iOS 11 in 2017) transformed QR Code from an industrial tool into a consumer interface used for marketing, payments, and everyday interactions. |
Across all these applications, 2D codes offered capabilities that Code 39 could not match: |
Data capacity: Where Code 39 could encode 20 to 30 characters in a practical symbol, 2D codes could encode hundreds or thousands of characters . This enabled the barcode itself to be a data carrier rather than a pointer to a remote database. |
Error correction: Code 39's self-checking property could detect single-character errors but could not recover from damage. 2D codes with Reed-Solomon error correction could recover significant data loss . |
Miniaturization: Code 39's practical size limits made it unsuitable for marking small objects. Data Matrix and other 2D codes could be printed at sizes measured in millimeters . |
Omnidirectional reading: Code 39 required orientation-specific scanning. QR Code's finder patterns allowed reading from any angle . |
Consumer accessibility: Code 39 required specialized scanners. QR Code could be read by consumer smartphones, enabling consumer-facing applications . |
The transition from Code 39 to 2D codes is not complete, nor will it be immediate. Code 39 remains embedded in many established systems, particularly in U.S. Department of Defense logistics, automotive parts labeling, and healthcare inventory management . However, for new applications, 2D codes are increasingly the default choice. GS1's Sunrise 2027 initiative reflects the broad industry consensus that 2D codes will be the future of retail and supply chain barcoding . |
The rise of 2D codes also illustrates a broader pattern in technology evolution. Established technologies like Code 39 become deeply embedded in industry infrastructure and continue to serve well for many applications. But as new requirements emerge that stretch the capabilities of the existing technology, new solutions are developed that offer superior performance. These new solutions coexist with the old ones for years or decades, gradually replacing them in applications where the new capabilities are most valuable. |
In the case of 2D barcodes, the superior capabilities were so dramatic that the technology opened entirely new categories of applications. Automotive manufacturers could track individual components through production. Hospitals could verify medication administration at the bedside. Consumers could scan codes to access digital content. These applications were not simply improvements on existing Code 39 uses; they were new things that Code 39 could never have enabled. |
The legacy of Code 39, however, remains. The symbology developed in 1974 by David Allais and Ray Stevens of Intermec was a foundational achievement in automatic identification technology . Its self-checking property, variable length encoding, and alphanumeric capability established the template for many subsequent symbologies. The naming convention of 'Code 3 of 9' persists in popular references. The symbology's simplicity and robustness ensured its longevity. |

|
But the rise of 2D barcodes marked a new era in barcode technology, one in which data capacity, error correction, and miniaturization enabled applications that early pioneers could scarcely have imagined. As the technology continues to evolve, the trend toward higher data density, improved error correction, and better consumer accessibility will only accelerate. The barcode, which began as a simple way to encode a numeric identifier, has evolved into a versatile data carrier that can connect the physical world to the digital world. |