
UPC codes are ubiquitous on nearly every product. These barcodes allow instant access to encoded data when scanned with a barcode reader.
Early barcode formats, including UPC codes, were 1D, storing data in a single direction. While effective for simple numeric codes, the demand for barcodes with greater data capacity led to the development of more advanced formats.
This is where 2D barcodes, also known as QR codes, play a role. But how exactly do QR codes function?
The Evolution to Stacked and 2D Barcodes
Stacked barcodes, still in use today, consist of multiple 1D codes layered vertically. While they can store more data than standard 1D barcodes, their size increases significantly with additional information, making them harder to scan.
The demand grew for a compact, easily scannable barcode capable of storing vast amounts of data and supporting diverse character types, prompting the need for an innovative solution.
This led to the introduction of 2D barcodes.
As the name suggests, 2D barcodes, often referred to as matrix codes, store data in two dimensions: both vertically and horizontally.
2D barcodes can store significantly more information than 1D barcodes—sometimes hundreds of times more. For example, Denso Wave's QR Code, a widely used 2D format, can accommodate over 7,000 digits or 4,000 text characters, far surpassing the 20-character limit of even the most advanced 1D codes.
However, 2D codes aren't universally ideal. Their complexity demands more advanced scanners for decoding, which can be a limitation in certain scenarios.
Additionally, limited familiarity with the technology initially hindered its widespread use. However, the prevalence of smartphones is rapidly changing this.
Generators and Scanners for 2D Barcodes

The Adoption Dilemma: UPC Codes Versus 2D Barcodes
In the 1970s, the now-commonplace UPC code began gaining traction, and retailers quickly saw its value. However, the technology encountered a classic chicken-and-egg problem.
Retailers hesitated to invest in costly scanners until manufacturers widely adopted UPC codes on their products. Similarly, manufacturers delayed adoption until retailers could reliably scan the codes [source: Rawsthorne]. Large chains like Kmart eventually stepped in to drive the technology forward.
Thankfully for 2D barcode advocates, smartphones have become ubiquitous scanners. Both iPhones and Android devices come equipped with built-in QR Code readers, eliminating a major barrier to widespread adoption.
Understanding QR Code Technology
But how does a smartphone—or any barcode scanner—interpret the seemingly random patterns of lines and squares in 2D barcodes? The key lies in the barcode's design, which ensures the scanning process is both fast and accurate.
Alignment and Data
Each QR Code includes a finder pattern: a set of squares that assist the scanner in identifying the code's size, orientation, and the angle at which it's being scanned.
Additionally, every QR Code features an alignment pattern, a series of squares that help the scanner detect if the code is distorted, such as when placed on a curved surface.
After the smartphone's camera captures the QR Code image, the software begins analyzing it. By assessing the ratio of black to white areas, it swiftly distinguishes alignment patterns from the squares containing actual data.
Allowing for Imperfection
QR Code scanning is designed to handle minor errors. Even if parts of the code are smudged or blocked, a QR Code reader can still successfully scan it.
The QR Code system incorporates built-in patterns and error correction, enabling the software to adjust for distortions or obscured sections. Once the software digitally reconstructs the QR Code, it deciphers the arrangement of black and white squares in the data section and extracts the encoded information.
How to Generate QR Codes
You can create your own 2D barcodes using online QR Code generators. These tools allow you to customize everything from the code's format to its dimensions.
Next time you create a flyer for a local event like a garage sale, consider adding a QR Code with event details. It could attract tech-savvy shoppers with smartphones looking for deals.
Scan Smart
However, be cautious of scanning malicious QR Codes designed to steal your data. Some apps and scanners verify the legitimacy of QR Codes, offering an extra layer of security.
Diversity in 2D Barcodes
QR Codes are just one type of 2D barcode. For instance, UPS uses MaxiCode, which allows rapid scanning of packages on conveyor belts, while the U.S. Department of Defense utilizes DataMatrix, a compact 2D barcode capable of storing extensive data in a small space.
No matter the format, 2D barcodes include both data and patterns to assist scanners in decoding the information. Many devices can read multiple formats, including traditional 1D barcodes.
Advertising with 2D Barcodes
If there's a way to market a product, it’s likely already been attempted.
From blimps displaying massive logos to televisions in taxis streaming ads and even edible ink advertisements on food, advertisers leave no stone unturned. However, measuring the effectiveness of physical ads remains a persistent challenge.
2D barcodes revolutionized advertising by enabling companies to track consumer engagement directly. By adding a 2D barcode to ads, businesses could monitor how often the code was scanned and whether it led to website visits or product purchases.
Real-World Applications
Tommy Bahama integrated a 2D barcode into an Esquire Magazine ad, which directed readers to a webpage showcasing the sunglasses featured in the ad. With a simple click of their mouse or tap on their smartphone, readers could purchase the sunglasses for $138.
Target has also experimented with dynamic QR codes in its magazine ads. Scanning the code reveals a video from a renowned interior designer offering tips on using the advertised product.
Future of 2D Barcodes in Advertising
Advertisers claim this interactive approach is ideal for tech-savvy consumers who demand instant access to product details, reviews, and more. In Japan, these codes are so popular that they appear on billboards, allowing drivers to scan them even at high speeds.
While 2D barcodes aren't as widely used in the United States as in Japan, data on their adoption and effectiveness remains scarce. However, as smartphone usage grows and awareness of QR Code capabilities increases, 2D barcodes could follow the same trajectory as their 1D counterparts.
For years, the mysterious crop circles appearing worldwide sparked theories of extraterrestrial activity. However, the 160-square-meter (1,700-square-foot) design in a 2007 wheat field was the creation of Ben Hopfeng-Aertner, a German programmer fascinated by 2D barcode symbology. Over several months, he meticulously crafted a massive 2D barcode visible from space. The message? A simple "Hello, World!"