QRCodeChamp Logo
File Sharing

2D Barcode Generator

Matrix and stacked 2D codes: Data Matrix, PDF417, Aztec, Micro QR, MaxiCode and more.

Data Matrix

23 characters
Valid Data MatrixAllowed: Any text / bytes
1% of capacity used

Live preview

Data Matrix barcode for https://qrcodechamp.com
Download format

2D barcodes store data in a grid or in stacked rows, so they hold far more than a linear barcode in less space. They have built-in error correction, so a scratched or partly covered code can often still be read. You need a 2D imaging scanner or a scanner app to read them.

Choose Data Matrix for small parts and labels, PDF417 for IDs and documents with lots of text, and Aztec Code for tickets shown on phone screens. Micro QR and rectangular Micro QR suit very small or narrow spots. For niche types such as MaxiCode or DotCode, follow the rules of the system that reads them.

16 barcode types in 2D Codes

Which 2D Codes barcode should I use?

Barcode typeAllowed dataBest for
Data MatrixAny text / bytesElectronics parts, small items
Data Matrix RectangularAny textNarrow labels
Data Matrix Rectangular Extension (DMRE)Any textVery narrow strips
PDF417Any text / bytesBoarding passes, IDs, shipping
Compact PDF417 (Truncated)Any textSpace-saving PDF417
MicroPDF417Any text (short)Small items
Aztec CodeAny text / bytesTrain & airline tickets
Aztec CompactAny text (short)Small tickets
Aztec RunesNumber 0-255Machine-readable markers
Micro QR CodeShort text/digitsTiny parts, PCBs
Rectangular Micro QR (rMQR)TextNarrow labels, cables, tubes
MaxiCodeText (mode 2-6)UPS parcel sorting
Han Xin CodeText incl. ChineseChina market
DotCodeTextHigh-speed industrial printing (cigarettes)
Code OneTextIndustrial / healthcare legacy
Ultracode (color)TextColor 2D experiments

Matrix Codes vs Stacked 2D Codes

2D codes fall into two shapes. Matrix codes such as Data Matrix, Aztec, Micro QR, Han Xin, Code One and DotCode place data in a grid of cells or dots with finder patterns the reader locks onto. PDF417 and its variants are stacked: many rows of bar-and-space codewords with row indicators at each side.

Most use Reed-Solomon error correction, so a code with some damage can still be read. You trade capacity for protection: a higher error correction level makes the symbol larger for the same data.

Standards Behind Each 2D Barcode

  • Data Matrix (ECC 200): ISO/IEC 16022; the rectangular extension sizes (DMRE) are in ISO/IEC 21471
  • PDF417: ISO/IEC 15438; MicroPDF417: ISO/IEC 24728
  • Aztec Code: ISO/IEC 24778, with Compact Aztec and single-byte Aztec Runes
  • Micro QR: part of ISO/IEC 18004; Rectangular Micro QR (rMQR): ISO/IEC 23941
  • MaxiCode: ISO/IEC 16023, a fixed-size hexagonal code used for parcel sorting
  • Han Xin: a Chinese national standard designed to encode Chinese characters efficiently

Picking the Right 2D Symbology for the Job

Data Matrix is the usual choice for direct part marking and small labels; square sizes run from 10 × 10 to 144 × 144 cells, and the largest holds up to 3,116 digits. PDF417 suits long text on documents and is common on driving licenses and boarding passes. Aztec needs no quiet zone because its finder is a central bullseye, which helps on tickets shown on phone screens.

Micro QR has a single finder pattern and holds up to 35 digits, good for tiny parts. MaxiCode is used on parcel labels for automated sorting. DotCode was built for fast inkjet printing on production lines, where printed dots may not touch.

Size and Quiet Zone for 2D Codes

Quiet zones differ by symbology: Data Matrix needs one module, PDF417 two, Micro QR two and full QR Code four, while Aztec needs none. Cell size is the main limit on how small you can go; QRCodeChamp flags 2D modules below 0.25 mm as a scanning risk and offers PNG at up to 600 DPI or vector SVG, EPS and PDF for sharp edges.

Keep cells square when you resize, and print dark on light unless you know your reader supports reversed codes.

Common Mistakes with 2D Barcodes

  • Assuming a laser scanner can read matrix codes; Data Matrix, Aztec and QR need an image-based scanner or camera
  • Choosing a rare type such as Code One, Ultracode or Han Xin without confirming the receiving scanner supports it
  • Packing so much data into a small area that each cell is too small to print cleanly
  • Using plain Data Matrix where a customer expects GS1 DataMatrix with Application Identifiers
  • Using Aztec Runes for anything other than a single value from 0 to 255

How to Create a Barcode in 3 Steps

STEP : 1

Choose a barcode type

Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.

STEP : 2

Enter data & customise

Type your data — we check it live and add check digits. Adjust size, font and colors.

STEP : 3

Download or print

Get PNG, JPG, SVG, PDF or EPS, or print a full sheet of labels in one click.

Why Use QRCodeChamp Barcode Generator

125+ barcode types

Linear, 2D, GS1, postal, healthcare and payment codes.

Live validation

Friendly errors with one-click fixes and automatic check digits.

Print-ready PDF

Exact mm sizes, label sheets (Avery, A4, 4×6 thermal).

Bulk barcodes

Paste a list or generate number sequences.

Choose the Type of Barcode You Need

Not sure which barcode to use? Start with what you need it for — we’ll pick the right type.

2D Codes FAQs

Data Matrix is more compact for short data and needs only a one-module quiet zone, so it is preferred for small parts and industrial labels. QR Code is more familiar to consumers and is read by every phone camera app.

A large PDF417 symbol can hold over a kilobyte of data, roughly 1,850 text characters, at low error correction. In practice, error correction and label size reduce that a lot.

Many phone scanner apps read all three. The built-in camera app on most phones focuses on QR codes, so a dedicated scanner app is safer for other 2D types.

Micro QR has one finder pattern instead of three and a smaller quiet zone, so it fits tiny spaces, but it holds much less data and fewer phone apps support it.

MaxiCode is a fixed-size hexagonal code made for high-speed parcel sorting. It holds address and service data and is printed on shipping labels by carriers that require it.