Technology 6 min read

2D Barcodes Explained: QR, Data Matrix, Aztec and PDF417

By Arvind Sharma Published 2026-11-29 Updated 2026-11-29
Arvind Sharma — Founder, QRPress QR Code GeneratorArvind built QRPress to give small businesses free, print-ready QR codes without scan caps, ads, or expiry. He writes guides focused on practical deployment — payments, printing, and shop-level security.

A two-dimensional barcode stores data across a grid instead of in a single row of bars. That allows far more data and, in most symbologies, error correction. QR is the best-known 2D code, but it is not the only one. This guide explains the main families and when each is used.

What Makes a Barcode 2D

A 1D barcode varies bar widths along one axis. A 2D symbol varies modules across both axes, forming a square or rectangular grid. Finder patterns or boundary markers let the reader locate and orient the symbol.

The extra dimension buys capacity and redundancy. Many 2D symbologies can recover data when part of the symbol is damaged.

Imaging cameras read 2D codes; laser line scanners generally cannot. That is why phone cameras can read QR codes and not most retail barcodes.

The Main Families

SymbologyShapeTypical usePhone support
QR CodeSquareLinks, payments, ticketsExcellent
Data MatrixSquareSmall parts, electronics, pharmaLimited
AztecSquare with a central bullseyeBoarding passes, transportLimited
PDF417Stacked rows of barsID cards, boarding passes, logisticsLimited

QR is designed to be readable by phones and has the broadest consumer support. The others are optimised for industrial or document use with dedicated scanners.

Data Matrix and Small Items

Data Matrix is compact for its capacity and is standardised for marking small components. It is widely used in electronics and aerospace, where a code must fit on a tiny part and survive etching or direct marking.

Its reader support on consumer phones is poor compared with QR. Use it when a dedicated scanner will read it, not on a customer-facing poster.

Aztec and PDF417

Aztec codes have a distinctive central square and are used in transport ticketing because they are compact and read well on printed passes.

PDF417 is a stacked linear symbology that can hold a few kilobytes. It appears on identity documents, boarding passes and logistics labels where a machine reads it.

Neither is a good choice for a scan-to-link use case, because phones handle QR natively and may not recognise these formats.

Choosing

For anything a customer scans with a phone, use QR. For industrial marking on very small parts, use Data Matrix. For regulated documents and transport passes, follow the standard the system already uses.

The Data Matrix vs QR guide covers the small-parts decision in more detail.

Frequently Asked Questions

What is a 2D barcode?

A barcode that encodes data across two dimensions, forming a grid. It holds more data than a 1D barcode and often includes error correction.

Is a QR code a 2D barcode?

Yes. QR is the most widely used 2D barcode for consumer applications.

What is Data Matrix used for?

Marking small parts, electronics, medical devices and aerospace components, usually read by dedicated scanners.

Can phone cameras read Data Matrix or PDF417?

Usually not natively. They need a dedicated app or scanner. QR is the format phones support.

Which 2D code should I use for a link?

QR. It has the best phone support and handles URLs, vCards and payment payloads well.

Create Your QR Code Instantly

Create a QR code for a phone-scan use case. Use our secure, no-registration static systems or spin up a dynamic tracker campaign in seconds.

Create QR Code