2D Barcodes

The two-dimensional symbologies: QR Code, Datamatrix, Aztec, PDF417 and Han Xin, each with its input range, a PHP example and the rendered symbol.

Two-dimensional symbologies, which carry more data in less space than a linear symbol and recover from damage through error correction. Each page gives the accepted input, the parameters that change the symbol, and a worked example of each variant.

13 Formats

FormatType tokenDescription
QR CodeQRCODEQR-CODE
Micro QR CodeMICROQRMicro QR Code (ISO/IEC 18004)
DatamatrixDATAMATRIXDATAMATRIX (ISO/IEC 16022)
Data Matrix Rectangular ExtensionDMREData Matrix Rectangular Extension (ISO/IEC 21471)
Aztec CodeAZTECAZTEC Code (ISO/IEC 24778:2008)
Aztec RuneAZTECRUNEAZTEC Rune (ISO/IEC 24778:2008 Annex A)
PDF417PDF417PDF417 (ISO/IEC 15438:2006)
Compact PDF417PDF417CCompact PDF417 - truncated (ISO/IEC 15438:2006)
Han Xin CodeHANXINHan Xin Code (GB/T 21049, ISO/IEC 20830)
HIBC in QR CodeHIBCQRHIBC in QR-CODE (ANSI/HIBC 2.6 and ANSI/HIBC 1.3)
HIBC in DatamatrixHIBCDMHIBC in DATAMATRIX (ANSI/HIBC 2.6 and ANSI/HIBC 1.3)
HIBC in Aztec CodeHIBCAZHIBC in AZTEC Code (ANSI/HIBC 2.6 and ANSI/HIBC 1.3)
Square Raw ModeSRAW2D RAW MODE (comma-separated rows of 01 strings)

See Also