Barcode Technology

Barcode History

Barcode Label Paper

Barcode Printer

Barcode Application

Inventory Management

AI Barcode QRCode

Barcode Scanner

Barcode Software

Barcode Software B

Barcode Software C

Barcode Software D

Barcode Software E

New Technology A

New Technology B

Robot Technology

Barcode Types

Barcode Types B

Barcode Types C

Barcode Types D

Barcode Types E

Barcode Types F

Electronic Technology

Psychology at Work

Barcode Technology and Barcode Software Related   <<< Back to Directory <<<

A Comprehensive Technical Guide to Barcodes: From 1D to 2D, RFID, and the Future of Machine Vision (P20)

Chapter 20: Enter the 2D Barcode - The Matrix Concept

Summary

Two-dimensional (2D) barcodes represent a fundamental leap forward from their linear predecessors. Unlike 1D barcodes, which store data only horizontally, 2D matrix codes encode information in both the horizontal and vertical dimensions. This allows them to pack hundreds or even thousands of characters into a space no larger than a postage stamp. Perhaps even more importantly, 2D barcodes incorporate advanced error correction---typically Reed-Solomon algorithms---that enables reliable reading even when a significant portion of the symbol is damaged or obscured. While the familiar QR Code dominates consumer applications, other matrix symbologies like Data Matrix, Aztec Code, and PDF417 have become essential in industries ranging from aerospace and healthcare to logistics and government. Meanwhile, the pioneering 1D Code 39 symbology, despite its limitations, continues to serve specific industrial niches thanks to its simplicity and broad compatibility.

The Limitations of the Line

To understand the significance of the 2D barcode, it helps to first appreciate the constraints of the one-dimensional codes that preceded it. The 1D barcode, that familiar pattern of vertical black bars and white spaces, is essentially a linear representation of data. A laser scanner reads this pattern from left to right, interpreting the varying widths of the bars and spaces as numbers or letters. This design was revolutionary in its time, and it remains the backbone of retail point-of-sale systems worldwide.

However, the linear format has inherent limits. A Code 39 barcode, for instance, can only encode a modest 43 characters (uppercase letters, digits, and a few special symbols) . Its information density is low, meaning that encoding even a short string of text requires a relatively long, wide label . This makes Code 39 unsuitable for small items or applications where label space is at a premium . Furthermore, because the data is stored in one dimension, any damage to a 1D barcode---a scratch, a smear, or a torn segment---can easily render the entire code unreadable. The scanner has no way to infer the missing information.

The Matrix Concept: A New Dimension

The 2D barcode, or matrix code, solves these problems by thinking in two dimensions. Instead of a single row of bars, a 2D code is a grid of small squares, dots, or other geometric shapes . Data is encoded in both the horizontal and vertical axes. This simple conceptual shift yields a dramatic increase in data capacity. A single QR Code, for example, can store over 4,000 alphanumeric characters, while a Data Matrix code can hold more than 3,000 . This means a 2D code can contain not just a product identifier, but a full URL, a detailed description, or even a small image.

But the true genius of the 2D barcode lies in its resilience. Because the data is distributed across a two-dimensional area, a significant portion of the code can be lost or obscured, and the original information can still be recovered . This is achieved through robust error correction algorithms, most notably Reed-Solomon error correction .

The Power of Reed-Solomon

Reed-Solomon error correction works by adding redundant data to the encoded message. Think of it like this: instead of just writing a sentence, you also write a mathematical formula that describes the sentence. If part of the sentence is smudged, the reader can use the formula to reconstruct the missing words. In 2D barcodes, this redundancy is built into the code itself. Depending on the symbology and the chosen correction level, up to 30% of the symbol can be damaged---be it by a tear, a stain, or deliberate overlay---and the code can still be scanned accurately . This makes 2D barcodes incredibly robust for real-world applications where labels are subject to wear and tear.

The Key Players in the Matrix

Several 2D symbologies have been developed, each optimized for specific use cases. While the QR Code is the most recognizable to the general public, other matrix codes are the silent workhorses of industry.

QR Code: The Ubiquitous Link

The Quick Response code is perhaps the most famous 2D barcode. Originally developed for the automotive industry in Japan to track parts at high speeds, it has become the standard for consumer-facing applications . The QR Code's distinctive three corner squares serve as a finder pattern, allowing a scanner to detect the code's orientation and read it from any angle. Its high data capacity and ability to encode a wide range of data types, including URLs, contact information, and payment data, make it ideal for marketing, mobile payments, and product traceability .

Data Matrix: The Industrial Champion

In the industrial world, the Data Matrix code is king. It is a compact, highly efficient symbology that can be printed in a very small area, sometimes just a few millimeters square, while still holding a surprising amount of data . This makes it perfect for permanently marking small electronic components, surgical instruments, and aerospace parts with unique serial numbers and manufacturing details . A key feature of the Data Matrix is its L-shaped solid border along two sides, which acts as a finder pattern, and alternating patterns on the other two sides to define the grid . It is supported by major GS1 standards for applications like tracking pharmaceuticals and medical devices to combat counterfeiting .

Aztec Code: Compact and Efficient

The Aztec Code was developed in 1995 and is notable for its efficient design . Unlike the QR Code's three corner finders, the Aztec Code uses a small square in the center of the symbol, resembling an Aztec pyramid, to orient the scanner . This design means it requires very little 'quiet zone' (the empty space around the code), allowing it to fit into tight spaces. It offers high data capacity and robust error correction, making it a popular choice for digital ticketing, transit passes, and identification cards .

PDF417: The Stacked Linear

While not a true matrix code, PDF417 is often grouped with 2D symbologies. It can be thought of as a stack of linear barcodes, one on top of the other . This 'stacked' format allows it to store more data than a traditional 1D code while still being readable by specialized scanners. PDF417 is a workhorse for logistics, government, and transportation, famously used for boarding passes, driver's licenses, and ID cards in many countries . It too incorporates Reed-Solomon error correction for resilience .

Other 2D Symbologies

Other notable 2D symbologies include MaxiCode, a matrix code with a central bulls-eye pattern surrounded by hexagonal dots, developed for high-speed package sorting by UPS . There is also Han Xin Code, a 2D symbology developed in China specifically for the efficient encoding of Chinese characters and used in government, logistics, and industrial applications .

Code 39: The Legacy of a Pioneer

The Code 39 barcode, developed by Intermec in 1974, was the first barcode symbology to encode both letters and numbers . Its development was a breakthrough, opening up a world of non-retail applications where simple numeric identification was insufficient. Understanding Code 39's technical characteristics is key to understanding both its continued use and the specific niches where it has been supplanted by 2D codes.

Technical Characteristics of Code 39

1. Alphanumeric Encoding: Code 39's primary advantage is its ability to encode the full uppercase alphabet (A-Z), digits (0-9), and a set of seven special characters (-, ., $, /, +, %, and space) . The standard start and stop character is an asterisk (*) . This alphanumeric capability was revolutionary for the time and made the symbology highly versatile for applications requiring human-readable parts numbers or identifiers.

2. Self-Checking: Code 39 is a self-checking symbology . This means that each character is encoded using a specific pattern of nine elements (five bars and four spaces), of which exactly three are wide and six are narrow . Because of this fixed ratio, a single printing or reading error that changes one element is highly unlikely to create a valid different character. This feature provides a degree of inherent error protection without the need for a separate checksum digit .

3. No Required Check Digit: Unlike more modern symbologies like Code 128, Code 39 does not require a check digit . While a modulo 43 check digit can be optionally added to enhance security, its omission simplifies implementation. This is a significant advantage for legacy systems, as it allows barcodes to be generated simply by typing the desired data into a barcode font without complex calculation .

4. Low Data Density: This is Code 39's most significant limitation . Because each character requires nine elements and three of them are wide, the barcode is physically long. It requires about 30% more space to encode the same data as a Code 128 barcode . This low density makes Code 39 impractical for small items or situations where a great deal of information must be encoded in a compact space .

Code 39 in the Real World: Applications and Industry Impact

Despite the rise of more advanced 1D and 2D codes, Code 39's simplicity and legacy ensure its continued use in several key sectors.

Automotive and Manufacturing

The automotive industry was an early adopter of Code 39, using it to track parts and vehicles throughout the production process . The ability to put a human-readable, alphanumeric part number directly on a component with a simple barcode that any basic scanner can read remains a practical solution. Today, many automotive suppliers still use Code 39 for in-house work-in-progress tracking and component identification, particularly where label space is not a constraint and the information to be encoded is brief, such as a part number or a VIN segment.

Defense and Government

The U.S. Department of Defense (DoD) was a major proponent of Code 39, standardizing it under MIL-STD-1189 for item identification . This mandate ensured that a vast ecosystem of military suppliers adopted Code 39, embedding it deeply into the supply chain. While the DoD has moved toward more modern, data-rich standards like Data Matrix for many applications, Code 39 labels can still be found on legacy equipment and in systems where the infrastructure is already in place. The symbology was also recognized by the American National Standards Institute (ANSI) as MH10.8M-1983, further cementing its status as a reliable standard .

Healthcare

Through standards like those from HIBCC (Health Industry Business Communications Council), Code 39 has been used to label medical devices, pharmaceuticals, and patient records . While GS1 standards are increasingly mandating 2D Data Matrix codes for medical devices to improve traceability and combat counterfeiting, Code 39 still appears in many legacy healthcare environments. Its self-checking nature provides a baseline level of data integrity, which is critical in patient safety applications. However, its low density is a drawback for encoding the increasingly long identifiers now required.

Logistics and Warehousing

In logistics and warehousing, Code 39 has long been used for tracking pallets, totes, and inventory, often as an internal management system . Its simplicity is a boon here: it can be printed with a simple desktop label printer using a barcode font. However, for high-volume, high-speed sortation and tracking, more dense symbologies like Code 128 or, for more data, 2D codes like PDF417 are now preferred. For smaller warehouses, or those using older, simpler scanners that can only read 1D codes, Code 39 remains a cost-effective and reliable solution.

How Code 39's Features Shaped Its Industrial Niche

The technical characteristics of Code 39 directly influenced the sectors in which it became a standard.

Simplicity Led to Widespread Adoption: The fact that Code 39 requires no check digit and can be produced by simply printing a barcode font made it an ideal 'do-it-yourself' barcode . This was particularly attractive in the early days of barcoding when proprietary printing systems were expensive. It allowed companies, particularly in automotive and defense, to quickly and cheaply implement their own tracking systems, creating a 'first-mover' advantage that has been difficult to dislodge.

Alphanumeric Capability Opened New Markets: By encoding letters and numbers, Code 39 transcended the retail market's simple numeric product codes. This alphanumeric capability was essential for identifying parts, assets, and people, making it invaluable for industries where human-readable identifiers were the norm .

Self-Checking Provided a Safety Net: In industries like defense and healthcare, where data accuracy is paramount, Code 39's self-checking nature provided an important layer of security against misreads due to minor printing defects . While not as robust as the Reed-Solomon correction in 2D codes, it was a significant improvement over early numeric-only codes.

Low Density Became a Liability: As the need for more data grew, Code 39's low density became its biggest weakness. It could not encode long serial numbers, detailed expiration dates, or batch information without requiring an impractically large label . This opened the door for Code 128 and, eventually, 2D matrix codes like Data Matrix and QR Code, which could pack vastly more information into a much smaller footprint, often with superior error correction.

Real-World Applications of 2D Barcodes Across Industries

The shift to 2D barcodes has been driven by a need for more data, smaller labels, and greater reliability. This has led to transformative applications across many sectors.

Healthcare: Patient Safety and Traceability

In healthcare, 2D barcodes are saving lives. Data Matrix codes are mandated on many medical devices and pharmaceutical products to comply with regulations like the U.S. Drug Supply Chain Security Act (DSCSA) and the EU's Falsified Medicines Directive . A tiny Data Matrix on a vial of medicine can encode the product's National Trade Item Number (NTIN), lot number, and expiration date . Pharmacists scan it to verify authenticity and ensure the drug hasn't been tampered with, effectively combating counterfeit drugs. Similarly, surgical instruments are permanently marked with Data Matrix codes to track their sterilization history and maintenance cycles, ensuring they are safe for use on patients .

Aerospace and Defense: Parts Traceability

The aerospace industry was an early adopter of Data Matrix, using it to mark critical components. Because a Data Matrix can be directly marked onto a metal part using laser etching or dot peening, it provides a durable, permanent identifier that can withstand extreme conditions . This 'direct part marking' (DPM) is essential for tracking a component's manufacturing history, maintenance records, and inspection results throughout its entire lifecycle. If a part fails, investigators can scan the Data Matrix to access its complete history, aiding in root cause analysis and safety improvements.

Logistics and Transportation: Speed and Efficiency

The logistics industry relies heavily on 2D barcodes for speed and efficiency. PDF417 codes are widely used on shipping labels, containing the address, tracking number, and routing information for a package . The U.S. Postal Service uses its own 2D code, the Mailmark, for postage and data insights . On the ground, MaxiCode, with its unique bulls-eye pattern, was designed specifically for UPS's high-speed automated sorting systems, allowing packages to be scanned omnidirectionally as they zip along conveyor belts . At airports, passengers can use Aztec or PDF417 codes on their smartphones as boarding passes, streamlining the check-in and boarding process .

Manufacturing and Electronics: Quality and Tracking

As discussed, the Data Matrix is the workhorse of electronics manufacturing. The ability to print a high-data-capacity, error-resistant code on a tiny component the size of a grain of rice is unparalleled . This allows manufacturers to track a component from the foundry to the assembly line to the finished consumer device, enabling unprecedented levels of quality control and supply chain visibility. If a defect is found, the manufacturer can quickly identify exactly which batch of components was affected and precisely where they were used.

Government and Identification

Governments worldwide have adopted 2D barcodes for secure identification documents. Many driver's licenses and national ID cards feature a PDF417 code that encodes the holder's full name, address, date of birth, and other demographic information . This machine-readable data allows for rapid verification of identity at airports, security checkpoints, and government buildings. Aztec Code, known for its compactness, has also found its way into government applications like digital identity cards and secure access passes .

Retail and Consumer Engagement

While the retail checkout experience is still dominated by the 1D UPC code, 2D barcodes are revolutionizing how retailers and consumers interact. QR Codes on packaging allow shoppers to scan the box with their phone to watch a recipe video, see nutritional information, or verify a product's authenticity and origin . In promotional marketing, QR Codes are ubiquitous, linking print ads, billboards, and product tags directly to websites, discount coupons, and social media pages.

Ticketing and Events

The entertainment and transportation industries have largely moved to digital tickets powered by 2D barcodes . Whether it's an Aztec Code on a transit card, a QR Code on an event e-ticket, or a PDF417 on a boarding pass, these codes enable swift, secure, and contactless validation. Their error correction means that a slightly crumpled or poorly printed code on a phone screen can still be read by a scanner at the gate, reducing bottlenecks and improving the customer experience .

The Future: Machine Vision and Beyond

The journey from the simple lines of Code 39 to the complex matrix of Data Matrix and QR Code is not just a story of increasing data density. It is a story of increasing intelligence. The 2D barcode is a foundational technology for the Internet of Things (IoT), where physical objects are connected to digital information. A 2D code is a physical hyperlink, granting any object with a label a presence in the digital world.

The future lies in machine vision. Traditional laser scanners are giving way to camera-based imagers and sophisticated vision systems. These systems don't just read barcodes; they can see and understand the entire scene. They can read 1D and 2D codes in any orientation, from any angle, even on moving objects. They can analyze the quality of the print, inspect the product itself, and identify defects. This fusion of barcode reading with advanced visual processing is powering the next generation of smart factories, autonomous logistics, and augmented reality experiences .

Detailed Summary

In conclusion, the transition from 1D to 2D barcodes represents a paradigm shift in data capture and automatic identification.

The 1D Pioneer: Code 39

Origins and Design: Developed in 1974, Code 39 was a groundbreaking alphanumeric symbology. Its structure uses nine elements per character with three wide bars, encoding uppercase letters, digits, and seven special characters .

Key Features: It is self-checking, providing inherent error protection without a mandatory check digit. Its simplicity made it easy to implement, often just by using a special font .

Impact: This simplicity and alphanumeric capability were ideal for early adoption in the automotive, defense, and healthcare sectors . However, its low data density, requiring significant physical space, became a critical limitation as the need for richer data grew .

The 2D Matrix Revolution

The Two-Dimensional Advantage: 2D barcodes encode data both horizontally and vertically, allowing them to store hundreds or even thousands of characters in a much smaller space than any 1D code .

Core Technology: The incorporation of Reed-Solomon error correction is the hallmark of 2D codes, enabling them to be read accurately even when up to 30% of the symbol is damaged or obscured .

Diverse Symbologies for Specialized Roles: The QR Code excels in consumer-facing applications due to its fast readability and large capacity . The Data Matrix is the premier choice for industrial applications requiring small, permanent markings on electronic parts, medical devices, and aerospace components . The Aztec Code is prized for its efficient use of space, making it ideal for ticketing and access control . PDF417, a stacked linear code, is the standard for logistics, transportation, and government IDs .

Wide-Ranging Applications: 2D barcodes are now essential in healthcare for patient safety and anti-counterfeiting, in aerospace for lifetime parts traceability, in logistics for high-speed package sorting, in government for secure identification, and in retail for consumer engagement .

The Path Forward

The simple line has given way to the intelligent matrix. While legacy systems and specific applications will ensure Code 39 remains in use for years to come, the power, resilience, and data capacity of 2D barcodes make them the cornerstone of modern automatic identification. As machine vision and the Internet of Things evolve, these versatile square codes will become even more deeply integrated into the fabric of our physical and digital worlds, enabling a future where every object has a digital voice.

 

EasierSoft Barcode Label Design & Bulk Printing Software

---- Use Excel Data to Batch Print Barcodes on Label Sheets or Roll Labels  

---- How to use this barcode software

Download:  Free Barcode Software + Barcode Label Designer

Download Free Barcode Software at Softonic

     Download at CNET

Once you obtain a GS1/UPC/EAN barcode, or other barcode type and QR code, you can use our free software to batch print barcode labels onto Roll label paper using a professional label printer, or to batch print barcodes onto Avery 5160 label sheets using a regular laser or inkjet printer. Our software has free and paid versions.

The free version fully meets your needs for batch printing GS1/UPC/EAN barcodes. The paid version can import data from Excel and databases to batch print barcode labels with different values.

How to Start

Input Data

Import Excel Data

Print Barcode

Barcode Format

Label Designer

All Screen Shot

Export Barcode Image

Save Template

Output Word Excel

How to Use & FAQ:

The supported barcode types

Load Excel data (pro)

Manually copy data from Excel files

Filter some data for printing

Edit imported barcode data

Input data (Pro)

Label Designer

Edit data in Label designer

Label Designer - Add new label

Label Designer - Printing

Set the barcode label format to be printed

Other Barcode Label Format Settings

Barcode types supported by this program

Barcode Label Font Settings

Configuring the Barcode Print Rotation

Text Alignment for Barcode Labels

Automatically Adjusting Barcode Width

Text Beneath the Barcode

Configuring Barcode Size

Auto Calculate the Barcode Size

Export Barcode images

Export Barcode Image Format

File Names for Exported Barcode

Resolution of Exported Barcode Images

Fixed Folder for Exporting Barcode

Default Barcode Image Export Format

Print bulk barcodes quickly

Print barcodes to Avery 5160 label

How to bulk Barcode Printing

Sample - Avery 5162 (2x7) Label Sheet

Example: Print barcodes to 5*3cm roll

Example: Print barcodes to 5161 label

Example: Print barcodes to 5162 label

Example: Print barcodes to 5163 label

Example: Print barcodes to 5164 label

Example: Print portrait orientation 5164

Example: Print barcodes to 5167 label

Example: Print barcodes to 5168 label

Example: Print portrait orientation 5168

Example: Print barcodes to 5169 label

Example: Print barcodes to 5660 label

Example: Print barcodes to 5661 label

Example: Print barcodes to 5662 label

Example: Print barcodes to 5663 label

Example: Print barcodes to 5664 label

Example: Print portrait orientation 5664

Example: Print barcodes to 5873 label

Example: Print barcodes to 5874 label

Two ways to import Excel data

Import Excel Data - Pro Edition

Highlights

Excel integration: Import data directly from Excel to generate and print barcodes in bulk.

Label designer: Create complex labels with multiple barcodes, text, logos, and shapes.

Batch printing: Print thousands of barcodes at once using standard inkjet/laser printers or professional barcode printers.


Flexible editions:

Standard Edition: Simple batch printing with Excel data.

Professional Edition: Adds command-line automation for workflow integration.

Label Designer Edition: Advanced design features for complex labels.


Why Choose Our Barcode Solutions?

Cost-effective: Free online generator and permanent free desktop version available.

Easy to use: No technical expertise required—just input data and print.

Versatile: Supports nearly all 1D and 2D barcode types, including QR codes.

Trusted: Recommended by CNET and widely downloaded by users worldwide.


Suitable Use Cases

Small businesses and startups needing quick barcode labels for products.

Retailers and online sellers managing inventory with batch barcode printing.

Manufacturers requiring sequential or custom barcode labels for packaging.

Educational and testing environments where barcodes are used for tracking.

 

 

CONTACT

cs@easiersoft.com

If you have any question, please feel free to email us.

 

https://free-barcode.com

 

<<< Back to Directory <<<     Barcode Generator     Barcode Freeware     Privacy Policy