Skip to main content
QRSenBuilt for business
Core Concepts

What Is a 2D Barcode?

A 2D barcode stores data in a two-dimensional grid of squares or dots instead of a single row of lines, which lets it hold far more information and be read from any angle. QR codes are the most familiar type, but Data Matrix and Aztec codes are also 2D barcodes, built for different use cases.

Where a 1D barcode only carries information along one line, a 2D barcode uses both dimensions of a square grid, with rows and columns of small modules that can each be dark or light. That extra dimension means capacity grows with the area of the code rather than just its length, so a small 2D barcode can hold dramatically more data than a 1D barcode of a similar physical size. Most 2D formats also build in error correction, letting a code stay scannable even with some damage or obstruction.

QR is the most recognized 2D barcode by far, built for general-purpose use and read natively by essentially every smartphone camera. Data Matrix is common in electronics and medical device marking, where components are tiny and the code needs to be legible at a very small physical size. Aztec shows up heavily in transit tickets and airline boarding passes, largely because its design doesn't require the blank margin that QR does, which matters on cramped ticket printouts. Each format made different tradeoffs for the environment it was designed to work in.

A major practical benefit of any 2D format is omnidirectional reading. A camera or imager can decode a 2D barcode held sideways, upside down, or at an angle, because built-in finder markers tell the scanning software how to orient the grid before reading it. A 1D barcode, by contrast, generally needs a fairly level, direct pass across the lines to read correctly.

QR became the dominant consumer-facing 2D format for a specific reason beyond its technical design: it's an open standard with no license fee attached, and it's supported natively in nearly every phone's camera app without any extra software. Data Matrix and Aztec remain common, but mostly in narrower professional contexts, industrial marking and ticketing infrastructure, where their specific tradeoffs matter more than universal public recognizability.

For most everyday purposes — a business linking to a website, a menu, or contact details — there's rarely a reason to consider anything other than QR specifically, since its universal camera support outweighs any narrow technical advantage a format like Data Matrix or Aztec might offer in a specialized industrial context. Reach for those alternatives only when a specific professional workflow already calls for them by name.

Frequently asked questions

A QR code is one specific type of 2D barcode, the most common one, but the terms aren't interchangeable. 2D barcode is the umbrella category, QR code is a particular format within it, alongside Data Matrix, Aztec, and a handful of others.
Because a 1D barcode only encodes information along one axis, its capacity is limited by how long a line of bars can practically be. A 2D barcode uses both axes of a grid, so available data capacity grows with the area of the square rather than just its length, letting a small code hold thousands of characters.
For anything aimed at the general public, QR is almost always the right choice, since virtually every phone camera reads it natively without a special app. Data Matrix and Aztec exist for narrower professional contexts, like marking tiny components or printing on cramped ticket stock, where their specific design tradeoffs matter more than universal recognizability.