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 type | Allowed data | Best for |
|---|---|---|
| Data Matrix | Any text / bytes | Electronics parts, small items |
| Data Matrix Rectangular | Any text | Narrow labels |
| Data Matrix Rectangular Extension (DMRE) | Any text | Very narrow strips |
| PDF417 | Any text / bytes | Boarding passes, IDs, shipping |
| Compact PDF417 (Truncated) | Any text | Space-saving PDF417 |
| MicroPDF417 | Any text (short) | Small items |
| Aztec Code | Any text / bytes | Train & airline tickets |
| Aztec Compact | Any text (short) | Small tickets |
| Aztec Runes | Number 0-255 | Machine-readable markers |
| Micro QR Code | Short text/digits | Tiny parts, PCBs |
| Rectangular Micro QR (rMQR) | Text | Narrow labels, cables, tubes |
| MaxiCode | Text (mode 2-6) | UPS parcel sorting |
| Han Xin Code | Text incl. Chinese | China market |
| DotCode | Text | High-speed industrial printing (cigarettes) |
| Code One | Text | Industrial / healthcare legacy |
| Ultracode (color) | Text | Color 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
Choose a barcode type
Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.
Enter data & customise
Type your data — we check it live and add check digits. Adjust size, font and colors.
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.
