What is a 2D barcode?
A 2D barcode is a machine-readable symbol that encodes data in patterns across two dimensions, using shapes such as squares, hexagons or dots. This two-dimensional structure can carry more data in a smaller physical area than a typical 1D barcode.
A brief overview:
- GS1 includes QR Code and GS1 DataMatrix among the 2D barcode types used within its system.
- Depending on the symbology and syntax, a 2D barcode can carry a GTIN plus information such as an expiry date or serial number.
- Maximum data capacity depends on the barcode type, symbol size and encoding method.
- A reader decodes the symbol. Scanning does not itself verify print quality or create a complete traceability process.
What is the difference between a 2D barcode and a 1D barcode?
The main distinction is that a 2D barcode represents information through patterns spread across two dimensions. These patterns use squares, hexagons, dots and other shapes. This structure allows the symbol to carry more data per unit area while remaining physically smaller than a 1D barcode.
What data can a 2D barcode encode?
The data a 2D barcode can carry depends on the symbology and the syntax used to structure the encoded information.
Encoded product and traceability data
QR Code and GS1 DataMatrix can carry a Global Trade Item Number, or GTIN, together with information such as an expiry date or serial number. The exact data available depends on the barcode type and the syntax being used.
Maximum capacities for QR Code and Data Matrix
QR Code supports a maximum of 7,089 numeric or 4,296 alphanumeric characters.
For Data Matrix, the base maximum is 3,116 numeric or 2,335 alphanumeric characters. GS1 DataMatrix requires a Function 1 symbol character in its first position, reducing its maximum capacity to 3,114 numeric or 2,334 alphanumeric characters.
These are technical maximums rather than a universal capacity for every 2D barcode. Actual capacity depends on factors such as symbol size, data type and encoding.
When you need a 2D barcode. This format becomes relevant when you need to carry more encoded data in a compact area or include a GTIN alongside information such as an expiry date or serial number. The selected barcode type and syntax should suit the application and reading environment.
If the 2D code is being printed on a label, the selected industrial label printer also needs to support the required symbol size, print resolution and production environment.
How is a 2D barcode read?
Reading a 2D barcode means capturing the symbol and decoding the information stored within it. A barcode reader or scanner performs that function, while formal code verification and the wider traceability process remain separate considerations.
On production lines, barcode readers can form part of wider identification systems that also incorporate vision or RFID where the application requires those separate functions.
Machine-readable code reading
Barcode readers and scanners capture machine-readable codes and convert the encoded information into data that can be used by the connected system.
On an automated production line, a fixed mount barcode scanner can provide hands-free code capture where products pass a defined reading point.
Boundaries of scanning, verification and traceability
Scanning and formal code verification are different activities. Successfully reading a code does not automatically confirm its print quality or establish a complete traceability process.
Vision inspection, RFID, traceability and serialisation should also remain separate concepts. A barcode reader obtains encoded information, while these other functions cover areas such as visual checks, radio-based identification, connected records or unique identity management.
What is the difference between a 2D barcode and a Data Matrix code?
A 2D barcode is a broad category covering several symbologies, while Data Matrix is one specific matrix form within that category.
Category and specific-form distinction
Data Matrix is a matrix 2D code, so it belongs within the wider 2D barcode category. The terms are not interchangeable: 2D barcode describes the broader group, while Data Matrix identifies a particular symbology.
GS1 encoding context
Data Matrix is the underlying symbology. GS1 DataMatrix is its GS1 implementation and uses GS1 element string syntax, including the required Function 1 symbol character.
What are GS1 2D barcode standards?
GS1 standards cover five 2D barcode types currently used across different industries. These do not represent one universal symbology.
GS1 2D barcode forms
QR Code and GS1 DataMatrix are two widely recognised examples. Both belong within the broader family of 2D barcodes, but they have different structures, syntax options and application contexts.
Syntax used by the two forms
GS1 DataMatrix uses GS1 element string syntax. QR Code with GS1 Digital Link uses GS1 Digital Link URI syntax.
The GS1 2D barcode guide covers GS1 Sunrise 2027 and 2D codes from a manufacturing perspective.
ALS Identify barcode readers for 2D barcode reading
For production lines that need to read 2D barcodes, ALS Identify supplies barcode readers for machine-readable code reading. Reader selection should remain separate from formal code verification and the design of the wider traceability process.
Contact ALS Identify to discuss your application and barcode reading requirements.