Back to blog

How to Create GS1 DataMatrix Codes

Dec 1, 2026

Enter supported GS1 fields and compare the encoded result with the data your scanner receives.

How to Create GS1 DataMatrix Codes

Open the Data Matrix generator and choose GS1 for structured product data. For an internal value such as PART-0091, use Standard. Ask the system that will receive the code which format and fields it expects.

Enter the application identifiers

Start with the 14-digit GTIN in the (01) field. Add the field values exactly as they appear in your product records. The tool supports these optional fields.

  • (10) Batch or lot number
  • (11) Production date
  • (15) Best-before date
  • (17) Expiry date
  • (21) Serial number

The date fields use YYMMDD. For example, November 30, 2028 is 281130. Enter only the values in those fields. The field labels and parentheses show which identifier applies to each value.

GS1 DataMatrix tool showing six structured example fields

Check the separator and readout

GS1 DataMatrix begins with FNC1. Some values, such as a lot number, vary in length. A separator after a variable-length field lets the scanner tell where the next field begins. Your scanner or receiving software may show the separator as a GS control character or omit it from the visible text. Parentheses in the readable display do not become encoded characters.

Test the printed symbol

Choose the label dimensions and printer settings. Print at actual size and keep the space around the symbol clear. Scan it using the reader and software that will handle the product data. Compare the GTIN, lot, dates and serial against your input. If an element runs into the next, review the original structure and the scanner's GS1 configuration.

Does the same symbol work in every supply chain? Ask the recipient for its required identification key, fields and printed quality. A successful digital decode establishes that the file contains the expected data. The physical scan confirms what your setup reads.

GS1 DataMatrix guideline

Create a GS1 DataMatrix