Home > Blog Channel > Types of Barcodes: 1D vs 2D and How to Choose the Right Format
Types of Barcodes: 1D vs 2D and How to Choose the Right Format
- Author: Iris Chen
- 18 min read
Introduction: Why Barcode Types Matter for Retail and Operations Teams
Barcodes are everywhere in modern commerce, but not all barcodes are created equal. For retail and operations teams, B2B buyers, and anyone responsible for inventory, supply chain, or point-of-sale (POS) systems, understanding the different types of barcodes is more than a technical detail—it’s a strategic decision that impacts efficiency, compatibility, and future readiness. The barcode format you choose affects scanner selection, label design, software integration, and your ability to adapt to evolving industry standards. Whether you’re rolling out a new POS system, upgrading warehouse operations, or planning for next-generation retail workflows, knowing the strengths and limitations of 1D and 2D barcodes will help you make informed choices that support your business goals now and in the future.
Barcodes fall into two main groups: 1D linear codes and 2D matrix codes. 1D barcodes, such as UPC and EAN, use parallel lines of varying widths and spaces to encode binary data, making them easily recognized by their horizontal arrangement. In practical terms, 1D barcodes still dominate traditional retail checkout, while two-dimensional (2D) formats such as QR Code and Data Matrix matter when businesses need more data, better error tolerance, smartphone readability, or a clearer path toward next-generation retail and supply-chain workflows. For POS, retail, and operations teams, the real decision is not how many barcode types exist. It is the barcode types your scanners, labels, software, and rollout standards can reliably support over time, especially when you deploy advanced POS systems and hardware for retail and hospitality that must handle both 1D and 2D formats consistently.
What Are Barcodes and Why Does the Type Matter?
A barcode is a machine-readable symbol used to carry data for identification, tracking, and automated capture. GS1 notes that different barcode formats encode different kinds of information, and the right choice depends on what data must be stored, where the code will be scanned, and whether any industry or regulatory requirements apply. That is why “types of barcodes” is not just a technical taxonomy question. It is also an operational design question.
For a B2B buyer, the impact is immediate. The barcode format influences scanner selection, print quality requirements, label size, POS host behavior, and future migration flexibility. A barcode that works in a warehouse pilot can still fail at front-of-store checkout if the POS application only expects traditional product identifiers, or if store scanners are not configured for the new symbol set. Different barcode symbologies are designed for specific industry needs and data management requirements, ensuring that the chosen barcode supports efficient data management and seamless integration with digital systems.
Industry-specific barcode types are developed for specialized applications, helping businesses achieve their operational goals.
The Two Main Barcode Families: 1D vs 2D

The broadest and most useful way to classify barcode types is by dividing them into 1D and 2D codes. GS1 describes barcode as an umbrella term that includes both linear 1D symbols and 2D symbols. Scandit explains that 1D barcodes encode data along a single horizontal axis, while 2D barcodes encode data on both horizontal and vertical axes. 2D barcodes offer high data density, allowing more information to be stored in a compact space. Additionally, some barcode symbologies use variable-length encoding to efficiently store different amounts of data, making them flexible for applications like retail, warehousing, and inventory management.
What 1D barcodes do well
1D barcodes are the classic “bars and spaces” symbols most people associate with checkout. Common examples include UPC, EAN, Code 39, Code 128, ITF, Code 93, and Codabar. 1D barcodes typically encode numeric digits and numeric data, making them suitable for applications like retail and inventory. They encode data by varying the widths and spacings of parallel lines. Some 1D barcode symbologies, such as UPC and EAN, include a check digit for error detection. However, 1D barcodes generally have low data density, which can result in larger barcode sizes and limit their use on small items. They are efficient, familiar, and widely supported in legacy retail and industrial scanning environments. In many businesses, the installed-base compatibility is still their biggest advantage.
What 2D barcodes do better
2D barcodes store more information in a smaller footprint and often include error correction, which helps them remain scannable even if they are partially damaged. 2D barcodes can encode information such as alphanumeric data, making them suitable for a wide range of applications. They require compatible scanning equipment, such as camera-based imagers, for accurate reading. 2D barcodes can be scanned with devices that contain a camera, such as smartphones, while 1D barcodes are typically scanned with laser scanners. Common 2D examples include QR Code, Data Matrix, PDF417, and Aztec. GS1’s retail guidance also highlights GS1 DataMatrix and QR Code with GS1 Digital Link as important 2D paths for retail POS evolution.
The shift matters because retail is moving toward richer data capture. GS1 Sunrise 2027 is the industry initiative pushing retail POS systems toward the ability to read both traditional linear barcodes and 2D barcodes by the end of 2027. That does not mean 1D disappears overnight, but it does mean barcode choice is becoming a long-range systems question, not just a label question.
Comparison Matrix: 1D vs 2D at a Glance

The matrix below synthesizes the current standards and guide-page consensus around 1D and 2D capabilities. Barcode readers are used to scan and interpret the data encoded within barcodes, allowing businesses to retrieve product or inventory information efficiently, and self-service devices, such as a retail price checker kiosk with 1D/2D barcode verification, can extend that capability directly to customers on the sales floor.
| Criteria | 1D Barcodes | 2D Barcodes |
|---|---|---|
| Data direction | Horizontal only | Horizontal + vertical |
| Typical data capacity | Lower | Higher |
| Common examples | UPC, EAN, Code 39, Code 128, ITF | QR Code, Data Matrix, PDF417, Aztec |
| Legacy scanner compatibility | Stronger | Depends more on imager capability |
| Smartphone readability | Limited | Usually stronger |
| Error correction | Limited | Often built in |
| Best fit | Traditional retail item ID, simple industrial IDs | Richer product data, compact labels, future-ready POS workflows |
Common 1D Barcode Types
UPC and EAN
UPC and EAN are the most recognizable retail barcodes. UPCs, also known as Universal Product Code, are standardized barcodes used mainly in North America for identifying consumer goods in retail environments. A standard UPC-A barcode consists of 12 digits, including manufacturer, product, and check digits, and is primarily used in North America. EAN barcodes (European Article Number) are widely used in Europe and other parts of the world for product identification. GS1 identifies UPC-A, UPC-E, EAN-13, and EAN-8 as part of the mainstream retail barcode family. In plain language, these are the formats most closely associated with everyday price lookup and product identification at checkout. UPC and EAN barcodes are essential for the scanning process at retail checkout, enabling quick and accurate identification of consumer goods. If your business objective is standard retail item scanning with broad compatibility, UPC and EAN remain foundational.
Code 39 and Code 128
Code 39 and Code 128 are among the most common industrial and logistics-oriented 1D symbologies. Keyence highlights them as standard 1D formats worth knowing, and Google ML Kit includes both in its list of supported linear formats. For operations teams, the distinction is not merely academic: these codes are often chosen when businesses need internal identifiers, alphanumeric support, or more flexible encoding than consumer retail UPC/EAN.
Code 39 barcodes are commonly used in the automotive industry and the U.S. Department of Defense for inventory control and asset labeling. Code 128 barcodes are widely used in logistics and transportation industries for ordering, distribution, and shipping labels. Code 128 can also serve as a data carrier for various business-related information, supporting efficient inventory control. Both Code 39 and Code 128 can encode alphanumeric data and may include a check digit for error detection.
ITF, Code 93, and Codabar
ITF, Code 93, and Codabar remain part of the broader 1D family and still appear in supported-format documentation and barcode education guides. ITF and Code 93 are designed to encode numeric digits efficiently, making them suitable for applications such as packaging and inventory. Codabar barcodes are easy to print and are commonly used in logistics and healthcare, including blood banks, due to their simplicity and reliability. They matter less as general-purpose front-of-store retail defaults and more as format options that may appear in specialized workflows, legacy estates, or specific supply-chain environments. For multi-site buyers, the key lesson is simple: do not assume every 1D barcode in the field deserves ongoing support in your new standard.
Common 2D Barcode Types
QR Code
QR Code is the best-known 2D barcode in the public market because it is easy to scan with smartphones and can support web-linked experiences. QR codes can be scanned using mobile devices and are commonly used in marketing initiatives to encode a wide range of data types. GS1 also includes QR Code with GS1 Digital Link URI syntax among the 2D barcode options relevant to future retail POS use. That makes QR important not only for consumer engagement, but also for broader retail transformation, where one code can serve both operational and digital use cases.
Data Matrix and GS1 DataMatrix

Data Matrix is a compact 2D format that is especially relevant when label space is tight or when more information must be encoded than a traditional linear barcode can comfortably hold. GS1’s retail and healthcare guidance gives GS1 DataMatrix a central role in practical 2D implementation, especially where product identification plus additional data attributes matter. If your packaging is small or your workflow needs stronger data density, Data Matrix deserves serious consideration.
Reduced space symbology, such as GS1 DataBar, is specifically designed for small items and can encode additional information like expiration dates, making it ideal for retail and healthcare applications where space is limited. Additionally, Micro QR Code is another compact barcode option suitable for applications with limited label space, such as packaging and electronic components.
PDF417 and Aztec
PDF417 and Aztec are also mainstream 2D formats, and Google ML Kit lists both among its supported 2D barcode types. The Aztec code is a type of 2D barcode featuring a central square finder pattern, known for its space efficiency, strong error correction, and is commonly used in the transportation industry for tickets and boarding passes. For buyers, the main point is not that every deployment needs them. Is it that a modern scanning stack increasingly benefits from supporting more than just QR. That matters in environments where business units, documents, tickets, or partner systems introduce barcode diversity over time.
Which Barcode Type Fits Which Job?
The right barcode type depends less on popularity and more on workload. The current standards and vendor guides point to a few strong patterns: traditional retail checkout still centers on UPC/EAN; 2D codes become more attractive when brands need more data on-pack; and solution providers must think through both scanner and host-side readiness when introducing new formats. Inventory systems rely on barcode technology to streamline product tracking, tracking inventory, and enhance efficiency across the supply chain.
2D barcodes like QR Code and MaxiCode are commonly used for package tracking and tracking inventory in logistics and manufacturing, due to their ability to store more information and facilitate efficient data management.
| Business Need | Best-Fit Barcode Direction | Typical Format Choices | Why It Fits |
|---|---|---|---|
| Standard retail checkout | 1D first | UPC, EAN | Strong legacy POS compatibility |
| Small label with more data | 2D | Data Matrix, GS1 DataMatrix | Higher density in a limited space |
| Product ID + web engagement | 2D | QR Code with GS1 Digital Link | Supports both scan and linked content |
| Internal warehouse/logistics IDs | 1D or 2D, based on the system | Code 128, ITF, Data Matrix | Depends on software and label constraints |
| Package tracking and tracking inventory in logistics/manufacturing | 2D | QR Code, MaxiCode | Enables efficient package tracking and inventory management |
| Mixed estate preparing for next-gen retail | Dual-marking / phased 2D | Linear + QR/Data Matrix | Reduces migration risk |
How Barcode Type Affects POS, Scanner, and Software Compatibility

This is where most “types of barcodes” articles stop too early. Knowing the barcode family is useful, but deployment success depends on whether the full estate can process it. Advancements in scanning equipment, including optical scanners, have significantly improved the ability to read both 1D and 2D barcodes, making it easier and more cost-effective to scan barcodes with a range of devices, from dedicated scanners to mobile phones and OCR-enabled apps. Scandit notes that older dedicated scanning devices, such as laser scanners, often read 1D only, while smartphone-based scanning software can read 1D, 2D, and composite codes more flexibly. Google ML Kit likewise supports a wide set of linear and 2D formats through modern computer-vision scanning.
Barcode Scanners
GS1’s implementation guidance makes the operational consequence explicit: moving retail POS toward 2D acceptance will require scanner software updates, and in some cases, equipment upgrades if the installed scanner base is not already imager-capable, for example, when rolling out price checker kiosks with built-in QR code readers across supermarket aisles. It also emphasizes that not all imaging scanners will automatically meet the 2027 ambition, and that collaboration with the POS solution provider is essential. In other words, 2D readiness is a system capability, not a marketing checkbox.
Barcode Labels
Additionally, businesses may need to generate their own barcodes to meet specific operational or branding requirements, ensuring that their barcode solutions are tailored to their unique needs.
Barcode Software
The POS host matters just as much as the scanner. A store may physically read a 2D symbol, but still fail to use it correctly if the application only expects a traditional GTIN flow or does not parse additional attributes properly. This is why barcode strategy should sit inside a broader rollout plan that includes scanners, label design, host parsing, test cases, and training.
Key Technology Components of Barcode Systems
A modern barcode system is built on a foundation of several essential technology components that work together to deliver fast, accurate, and reliable data capture.
Barcode Scanners
At the heart of these systems are barcode scanners, which come in various forms such as traditional laser scanners and advanced camera-based imagers. Laser scanners are especially common in retail and industrial settings, where they quickly read the barcode pattern by shining a beam of light across the barcode and detecting the reflected signal. Camera-based imagers, on the other hand, can read both 1D and 2D matrix codes—including data matrix codes and QR codes—making them ideal for environments where more complex data needs to be captured.
Barcode Labels
Barcode labels are another critical component. These labels, printed on materials ranging from paper to durable synthetics, carry the barcode pattern that encodes data such as product identifiers, serial numbers, or batch information. The quality and durability of barcode labels directly impact scanning accuracy and the overall reliability of the barcode system.
Barcode Software
Tying everything together is the software layer. Inventory management software and other barcode systems link the barcode data captured by scanners to detailed product or asset records, and dedicated grocery POS systems with integrated inventory and scale support apply the same principles to high-volume supermarket environments. This integration allows businesses to track inventory levels, monitor asset locations, and manage product information in real time. Matrix codes like data matrix and QR codes further enhance these systems by enabling the encoding of more complex information within a compact space, supporting advanced inventory management and data tracking needs.
By combining barcode scanners, barcode labels, and robust software, businesses can create barcode systems that streamline operations, reduce manual errors, and provide the data backbone for efficient inventory management.
Enhance Your Asset Management with Barcodes
Benefits of Barcode Asset Management
Barcodes have become an essential tool for businesses looking to manage inventory efficiently and improve asset tracking across the supply chain. By applying barcode labels to assets and inventory items and using barcode scanners to capture data, organizations can dramatically reduce the time and effort required for inventory tracking and asset management. Barcode technology—whether using traditional UPC barcodes, EAN barcodes, or advanced 2D barcodes like data matrix codes and Aztec codes—enables quick, accurate identification of items, minimizing human error and boosting productivity.
Integration with Inventory Systems
Modern barcode systems integrate seamlessly with inventory management and supply chain management software, providing real-time visibility into inventory levels, asset locations, and movement throughout the supply chain. This integration allows businesses to track serial numbers, monitor expiration dates, and manage complex product information with ease. The use of 2D barcodes and matrix codes is especially valuable for encoding more data in a small space, supporting advanced asset management capabilities such as detailed product descriptions, batch tracking, and compliance with industry regulations.
By leveraging barcode technology, businesses can streamline their inventory management processes, reduce costs, and ensure accurate tracking of assets from the warehouse to the point of sale. Whether you’re managing a small stockroom or a global supply chain, barcode systems provide the tools you need to manage inventory efficiently, improve data accuracy, and enhance overall operational performance.
How Retail and Operations Teams Should Choose
A good barcode decision usually comes down to five filters.
First, data capacity. If you only need a simple item identifier, 1D may still be enough. If you need expiration, batch/lot, serial, or richer linked information, 2D becomes much more attractive. GS1’s 2D retail guidance explicitly points to those added-data scenarios as a driver of the transition. The amount and type of data encoded in a barcode should match your business’s operational needs.
Second, label space. Small packaging and compact labels often push businesses toward denser formats such as Data Matrix. That is one reason 2D formats are increasingly relevant in industries where the physical label area is constrained. Some barcode types, such as GS1-128, serve as data carriers, enabling the encoding and transfer of complex business information efficiently.
Third, scan the environment. High-speed checkout requires a different barcode-management discipline than backroom scanning. GS1 notes that barcode placement and multiple on-pack symbols affect lane productivity, including targets of roughly 40 to 70 items per minute at retail POS. Barcode choice must therefore match the real operating environment, not just a technical ideal.
Fourth, compatibility with the installed estate. If your organization has a large footprint of legacy laser scanners, 1D-first standardization may reduce disruption in the short term. If you are already deploying imagers or mobile-first scanning, broader 2D support becomes more practical.
Fifth, future-readiness. Sunrise 2027 does not force every organization to drop linear barcodes immediately, but it does raise the cost of pretending 2D is optional forever. Buyers who standardize new hardware today without evaluating 2D roadmaps may create avoidable refresh costs later.
Decision Checklist Before You Standardize a Barcode Format
Before you lock in a barcode standard, ask these questions:
- Does the chosen barcode symbology support our business’s data and operational requirements?
- Do we only need a product identifier, or do we also need batch, expiry, serial, or link-based data?
- Are our front-end scanners laser-based, imager-based, or mixed?
- Can our POS or warehouse software parse the barcode content we plan to use?
- Will this barcode appear at lane checkout, self-checkout, backroom, mobile POS, or all of them?
- Is the label space large enough for a linear code, or do we need a denser symbol?
- Are we choosing a barcode only for today’s pilot, or for a three-to-five-year estate standard?
- Do we need dual-marking during a transition period?
- Have we tested real scan performance, not just theoretical support?
- Can we generate and customize our own barcodes to meet specific use cases or branding needs?
Common Mistakes Buyers Make
- Choosing scanners first and barcode standards second. That often reverses the real dependency. You should first define which barcode families and data structures your business must support, then confirm that the hardware and software stack can support them consistently. Barcode readers must be compatible with the chosen barcode types to ensure effective inventory control, as mismatches can disrupt accurate tracking and management of stock items. Otherwise, low-cost hardware can quietly become a long-term constraint.
- Assuming “2D-capable” means rollout-ready. GS1’s guidance is clear that moving toward 2D at POS may require scanner software updates, host-side changes, and barcode-management rules to protect checkout productivity. A successful barcode transition is operationally coordinated, not just technically possible.
- Allowing too many symbologies into the estate without a support model. Barcode diversity can feel flexible during pilots, but it creates replacement, training, troubleshooting, and partner-integration complexity later. For multi-location teams, fewer approved formats usually means lower support friction. That conclusion is an operational inference from the implementation constraints described in the current GS1 guidance.
Final Recommendations by Scenario
If you run standard retail checkout today, keep UPC/EAN support non-negotiable. That is still the safest baseline for broad retail POS interoperability.
If you need more on-pack data or a path toward smarter retail, begin evaluating QR Code with GS1 Digital Link and GS1 DataMatrix. These formats align better with the industry direction toward richer product data and 2D-capable POS.
If you have small labels or dense data requirements, Data Matrix is often the more serious candidate than consumer-style QR alone. It is compact, data-dense, and already prominent in GS1 implementation thinking.
If you operate a mixed estate, the most practical path is often phased support rather than immediate replacement. GS1’s transition model explicitly anticipates a dual-marking period in which linear and 2D barcodes coexist. That is the most realistic model for buyers who need continuity during rollout.
For logistics or supply chain scenarios, barcodes serve as essential data carriers for package tracking and data management across the supply chain. Choosing the right barcode type can streamline operations, improve process efficiency, and ensure accurate information transfer throughout your business infrastructure.
If you are an integrator or multi-site buyer specifying new hardware, treat barcode support as a lifecycle standard. Require clarity on supported symbologies, parsing behavior, firmware or software update paths, and test coverage across checkout, self-checkout, mobile, and backroom workflows. That is how you prevent a barcode decision from becoming a support problem later. This recommendation follows directly from the implementation scope GS1 outlines for retail POS environments.
FAQ
Are QR codes barcodes?
Yes. GS1 explicitly treats “barcode” as a broad term that includes both 1D barcodes and 2D barcodes, such as QR Code.
What is the difference between 1D and 2D barcodes?
1D barcodes store data on a single horizontal axis, while 2D barcodes store data across both horizontal and vertical axes, which gives them higher density and broader data capacity.
Which barcode types are most common in retail?
Traditional retail still relies heavily on UPC and EAN for price lookup and product identification, although GS1’s current roadmap is pushing retail toward broader 2D acceptance as well.
Will 2D barcodes replace 1D completely?
Not immediately. GS1’s guidance describes a transition period in which linear and 2D barcodes can coexist, with 2D capability becoming increasingly important at POS by the end of 2027.
Conclusion
The best way to understand the types of barcodes is to stop thinking in terms of a long list and start thinking in terms of decision paths. 1D barcodes are still essential where compatibility and simplicity matter most. 2D barcodes become the stronger choice when data density, compact labels, consumer interaction, or future-ready retail workflows matter more. The winning choice is the one your scanners, software, labels, and rollout model can all support together.
Table of Contents
Subscribe to our Blog
Recent Articles
Post Categories
Explore Topics Tags
Contact Us
Iris Chen
Iris Chen is a senior content editor and POS solutions expert at POSZEO with 10 years of hands-on experience in retail and F&B payments. She turns complex hardware specs—EMV/NFC, scanners, printers, cash drawers—into practical, ROI-focused guides and case studies. Before POSZEO, Iris supported large rollouts for system integrators across APAC and Europe. She now leads the blog program and rigorously fact-checks content against datasheets and PCI/EMV standards.