1D vs 2D Barcode Scanners

1D vs. 2D barcode scanners: barcode types, how scanning works, and how to choose

A 1D barcode is a row of lines of varying width that holds a dozen to a few dozen characters; a 2D barcode is a grid of dots that can hold thousands of characters in a small area and recover data even when partly damaged. Scanners fall into two groups accordingly: CCD and laser scanners read only 1D barcodes, while 2D imagers read 1D, 2D, and phone screens. This article covers how the two barcode types differ, common symbologies, three reading principles, and how factories and warehouses should choose.

Summary: how do 1D and 2D barcode scanners differ?

The difference is "which barcodes they can read." 1D scanners (CCD or laser) read only 1D barcodes made of a row of lines, such as EAN-13 on retail products or Code 128 used in logistics and factories. 2D scanners capture the whole barcode with an image sensor and decode it, so they can read 1D, 2D (QR Code, Data Matrix), and on-screen barcodes. If your site has any 2D barcodes, needs to read phone screens, or may switch to 2D codes in future, choose a 2D scanner; if you only read printed 1D barcodes on a tight budget, a 1D scanner is enough.

1D vs. 2D barcode comparison table

1D vs. 2D barcodes
Item1D barcode2D barcode
AppearanceLines of varying widthDot grid or stacked bars
Data capacityDozens of charactersThousands (QR: 7,089 digits)
Area neededLonger with more dataMuch smaller
Damage toleranceFails if lines breakError correction
OrientationMust alignAny angle
SymbologiesEAN-13, UPC, Code 128, Code 39QR Code, Data Matrix, PDF417
ScannersCCD, laser, 2D imager2D imager only

Compiled by DEYly from Wikipedia: QR code, Wikipedia: Data Matrix, Wikipedia: Code 128, Wikipedia: PDF417.

Common barcodes in factories

EAN-13 / UPC: barcodes on retail products, digits only, fixed length. Code 128: encodes letters, digits, and symbols at variable length, common on logistics labels, part numbers, and work orders (Wikipedia: Code 128). Code 39: supports only uppercase letters, digits, and a few symbols; still used in legacy systems and some industrial labels.

QR Code: the most common 2D code, with four error correction levels (L, M, Q, H) that can recover data with up to about 30% damage (Wikipedia: QR code). Data Matrix: a square dot matrix that packs a lot of data into a very small area, common for marking small items such as electronic components and medical devices (Wikipedia: Data Matrix). PDF417: stacked rows of short bars, common on IDs and transport documents (Wikipedia: PDF417).

How CCD, laser and 2D imagers read

  1. CCD (linear imager)

    A row of light sensors "sees" the whole line at once. No moving parts, durable, suited to close-range reading near the barcode. Reads only 1D barcodes.

  2. Laser

    A laser beam sweeps back and forth across the barcode, giving longer reading range and handling wide barcodes and distant shelves well. Reads only 1D barcodes and generally can't read phone screens.

  3. 2D imager

    Captures the whole area like a camera and decodes it. Reads 1D and 2D at any angle, including barcodes on phone screens. The most common choice for new deployments today.

1D or 2D barcode scanner? How to choose

Three questions decide it:

  1. Any 2D codes on site?

    If there's any 2D code (QR Code, Data Matrix), or you need to read barcodes on phones or tablets, a 2D imager is the only option.

  2. Moving to 2D later?

    Customer and supplier labels increasingly include 2D codes. Equipment lasts years, so even if everything is 1D today, it's worth going straight to 2D to avoid buying again later.

  3. Distance and environment

    For 1D only: choose CCD for close range and environments where scanners get dropped often; choose laser to read distant shelves or wide barcodes.

Handheld scanners, handheld terminals, and fixed-mount readers all come in 1D and 2D models; see the model tables for barcode scanners, handheld terminals (PDA), and fixed-mount barcode scanners.

Notes for factories and fabs

Barcodes in factories come from many sources: supplier incoming labels, in-house part numbers and work orders, and shipping carton labels, often a mix of 1D and 2D, with Data Matrix increasingly used on small parts. In this case, a 2D imager covers everything with one device.

Be sure to distinguish printed or labeled barcodes from marks engraved directly on parts (DPM). Data Matrix codes laser-etched or dot-peened directly onto metal, glass, or wafers have low contrast and reflective surfaces; ordinary 2D scanners may not read them, so dedicated DPM readers need to be evaluated separately.

FAQ

What's the difference between 1D and 2D barcode scanners?

1D scanners (CCD or laser) read only 1D barcodes made of a row of lines; 2D scanners capture the barcode with an image sensor and decode it, reading 1D, 2D (QR Code, Data Matrix), and on-screen barcodes.

Can a 2D scanner read 1D barcodes?

Yes. 2D imagers read both 1D and 2D barcodes; 1D scanners, however, can't read 2D barcodes.

Are "2D codes" and "2D barcodes" the same?

Yes. 2D codes, 2D barcodes, and 2D symbols all refer to matrix or stacked barcodes; QR Code is the most common, and others include Data Matrix and PDF417.

Can a 1D scanner read barcodes on phones?

Laser scanners generally can't read phone screens; to read barcodes or QR codes on phones, choose a 2D imager.

CCD or laser: how to choose?

Both read only 1D barcodes. CCD has no moving parts and is durable, suited to close-range reading; laser reads from farther away, suited to distant shelves or wide barcodes.

Can ordinary scanners read codes engraved on metal or wafers?

Not necessarily. Directly engraved DPM marks have low contrast and reflective surfaces; ordinary 2D scanners may not read them, so dedicated DPM readers need to be evaluated separately.

Ask us

Can't find the answer? Ask us directly

Tell us what you're facing. DEYly's engineering and market teams will help assess it and give you initial recommendations.