2D Barcode: Types, How They Work and Uses in Maintenance

Definition: A 2D barcode is a machine-readable optical label that encodes data in two dimensionsboth horizontally and verticallyallowing it to store significantly more information than a traditional one-dimensional barcode. While a 1D barcode stores data in the width of parallel lines (typically 20-25 characters), a 2D barcode can store hundreds to thousands of characters in the same physical space. In maintenance and asset management, 2D barcodes are used to label equipment, parts, and locations so that technicians can pull up asset records, work orders, and maintenance history instantly from a mobile device.

1D vs. 2D Barcodes

A 1D barcode, also called a linear barcode, encodes data as a series of parallel lines of varying widths and spaces. It can typically hold 20-25 characters and must be scanned in a single direction. Common 1D formats include Code 128 and EAN-13, and they remain standard in retail checkout and basic inventory applications.

A 2D barcode uses patterns of squares, dots, hexagons, or other shapes arranged in a grid. Because data is encoded both horizontally and vertically, a 2D barcode can store URLs, serial numbers, text blocks, or binary data in a fraction of the physical space. It is also readable from any angle, and most formats include built-in error correction that allows the code to be read even when partially damaged or obscured.

Feature 1D Barcode 2D Barcode
Data capacity 20-25 characters (typical) Hundreds to thousands of characters
Scan direction required Yes: single axis only No: readable from any angle
Can encode URLs or text blocks No Yes
Readable if partially damaged No Yes (with error correction)
Scanner required Dedicated barcode scanner Smartphone camera or dedicated scanner
Common formats Code 128, EAN-13, UPC-A QR Code, Data Matrix, PDF417, Aztec
Typical use in maintenance Basic part numbering and bin labels Asset records, work orders, parts inventory

Types of 2D Barcodes

Several 2D barcode formats exist, each with different characteristics that make it suited to specific applications. The formats most relevant to maintenance and industrial operations are covered below.

QR Code (Quick Response Code)

The most recognizable 2D barcode format. A QR code can store up to approximately 3,000 alphanumeric characters and is readable from any angle. Built-in error correction allows it to be read even if up to 30% of the code is damaged, making it suitable for industrial environments where labels may be exposed to grime or physical wear.

QR codes are free to generate, require no proprietary software, and are natively supported by smartphone cameras without a dedicated app. They are the most common format for linking physical assets to digital records in a CMMS.

Data Matrix

A compact square or rectangular format used extensively in manufacturing and logistics. Data Matrix codes can encode up to approximately 2,300 characters and achieve a smaller physical footprint than a QR code at equivalent data density. This makes Data Matrix the preferred format for labeling small parts and components where available label space is limited.

Data Matrix is widely used on printed circuit boards, pharmaceutical packaging, and aerospace components, where permanent direct-part marking (laser engraving or dot-peening) is common.

PDF417

A stacked 1D barcode that functions similarly to a 2D barcode. PDF417 uses multiple rows of 1D-style bar patterns to encode a larger data payload while maintaining a linear form factor. It is commonly found on shipping labels, driver's licenses, and documents that require high data density in a rectangular strip format.

Aztec Code

Similar in function to a QR code, but without a quiet zone (the white border) requirement. Aztec codes can be printed closer to the edges of a surface without losing readability. They are used in transportation ticketing (including airline boarding passes and rail tickets) and in some industrial applications where label space is constrained.

2D Barcodes in Maintenance and Asset Management

2D barcodes become genuinely useful in maintenance when they are connected to a system that holds real data. A barcode label alone is just a label. Linked to a CMMS, it becomes an instant access point for everything relevant to that asset or part.

Asset labeling

A 2D barcode affixed to a motor, pump, panel, or any other piece of equipment links directly to its full record in the CMMS: asset specifications, maintenance history, open work orders, attached documents, and linked procedures. A technician arriving at the asset scans the label and has everything they need on their phone before they open a tool bag.

This is the foundation of asset tracking in a barcode-based maintenance program. Every labeled asset becomes a connected data point rather than a physical object the team has to search for in a system.

Work order access

When a technician scans an asset label, the CMMS surfaces the current work order for that asset along with the parts list and step-by-step procedure. There is no need to log in, search by asset name, or navigate menus. The scan is the navigation. This reduces setup time at the start of a job and increases the likelihood that technicians actually log their activity in the system when the job is done.

Spare parts and storeroom inventory

Barcodes on bin locations and part packages enable accurate inventory management without manual entry. Technicians scan a part when they take it from the storeroom and scan again when stock is received. The CMMS updates quantities in real time, reducing the discrepancies between recorded and actual stock levels that lead to emergency orders and delayed repairs.

For spare parts tied to specific assets, the barcode on the bin can link directly to the asset bill of materials, making it easy to confirm the correct part before it leaves the storeroom.

Inspection rounds

Technicians performing route-based inspections scan the asset label at each stop to confirm their location, log meter readings, and record findings directly in the CMMS. This creates a verifiable record that the inspection was completed at the correct asset, replacing paper-based rounds sheets and manual data entry back at a desk.

Tool tracking

Precision tools, calibrated instruments, and specialty equipment can be labeled with 2D barcodes to track their calibration status, current assignment, and check-out history. When a tool is due for calibration, the CMMS can flag it automatically based on usage or elapsed time since last calibration.

2D Barcodes vs. RFID

Both 2D barcodes and RFID (Radio-Frequency Identification) are used to connect physical assets to digital records, but they work differently and suit different situations.

2D barcodes require line-of-sight scanning from a few inches to a few feet. The scanner (whether a smartphone or a dedicated device) needs a clear view of the label. RFID tags can be read without line-of-sight and from longer distances, making them better suited to automated tracking scenarios such as reading a pallet tag as it passes through a dock door.

For most maintenance programs, 2D barcodes are the practical starting point. They require no reader infrastructure beyond a smartphone and cost a fraction of what an RFID deployment requires. RFID becomes the better choice at higher throughput volumes or in scenarios where scanning by hand is not practical.

Factor 2D Barcode RFID
Line of sight required Yes No
Read range Inches to a few feet Inches to 30+ feet (depending on frequency)
Data writeable after printing No (static once printed) Yes (with read/write tags)
Hardware cost Low (smartphone camera sufficient) Higher (readers, tags, infrastructure)
Infrastructure needed None beyond mobile device Fixed readers or handheld RFID scanners
Best for Manual scan workflows, asset labeling, parts tracking Automated high-throughput tracking, gates and portals
Common maintenance use Asset labels, storeroom bins, inspection rounds Tool cribs, high-value equipment rooms, automated warehouses

How to Implement 2D Barcodes in a Maintenance Program

Implementing 2D barcodes in a maintenance program does not require a large project. The core steps are straightforward once the CMMS is in place.

  1. Choose a CMMS with barcode support. Confirm that the system can generate and read QR or Data Matrix codes for assets, parts, and locations. The CMMS should allow technicians to scan a label from a mobile device and land directly on the relevant asset record or work order.
  2. Select a durable label format. Industrial environments require polyester or metal labels with UV-resistant print. Standard paper labels degrade quickly in dust, heat, moisture, and chemical exposure. For assets in harsh environments, consider anodized aluminum or stainless steel labels with laser-engraved or dot-peened codes.
  3. Label assets systematically. Consistent placement (such as the front face of the asset or the motor nameplate area) reduces scan time and establishes a standard that any technician or contractor can follow. Include the asset ID number visibly on the label alongside the barcode as a fallback for damaged codes.
  4. Label storeroom bins and parts. Barcodes on bin locations connect the physical storeroom to the digital inventory records in the CMMS. Scan in when stock arrives and scan out when parts are consumed on a work order.
  5. Train technicians. The barcode is only as useful as the system it connects to. Technicians need to know how to scan, what the scan opens, and how to complete the relevant action (log a reading, close a work order, check out a part) before the program goes live.

Connect every asset to your maintenance system

Tractian's CMMS supports barcode-based asset management, letting your technicians scan equipment labels to instantly access records, log work orders, and track parts. No manual data entry required.

See Tractian condition monitoring

Frequently Asked Questions

What is a 2D barcode used for in maintenance?

In maintenance, 2D barcodes are placed on equipment, spare parts, and storeroom bin locations to connect physical assets to their digital records. When a technician scans a barcode, they can instantly access the asset's maintenance history, open a work order, view the parts list, or log an inspection finding without navigating a computer or manually entering data.

What is the difference between a QR code and a Data Matrix code?

Both are 2D barcode formats that can encode large amounts of data in a small space. A QR code is the more widely recognized format, readable by standard smartphone cameras, and offers higher data capacity with built-in error correction. A Data Matrix code is more compact at the same data density and is preferred for labeling small components in manufacturing and electronics where physical space is limited.

Can a 2D barcode be read if it is damaged?

QR codes and Data Matrix codes both include error correction that allows them to be read even if part of the barcode is obscured, scratched, or dirty. QR codes can tolerate up to 30% damage while remaining readable. In industrial environments, selecting the right label material is important: a barcode printed on a durable polyester or anodized metal substrate will survive far longer than a standard paper label.

Do you need special hardware to scan 2D barcodes in a maintenance context?

No. Any smartphone or tablet with a camera can read QR codes and most 2D barcode formats using the built-in camera app or a CMMS mobile app. Dedicated barcode scanners offer faster scanning and better performance in low-light or dirty environments, but they are not required to get started.

The Bottom Line

2D barcodes are a simple but high-impact tool in a maintenance program. The ability to scan an asset label and immediately access its full record eliminates the data entry friction that keeps technicians from updating the CMMS consistently. When data entry is fast and accurate, the historical record that supports better maintenance decisions gets built automatically.

The investment is low: a label printer, a suitable label material, and a CMMS with barcode support. The payoff is a maintenance team that spends less time looking up information and more time doing maintenance.

Related terms