IDAutomation.com, Inc. IDAutomation.com, Inc.
GS1 DataMatrix

GS1 DataMatrix in Java

Create GS1 DataMatrix symbols with element strings and FNC1 under ISO/IEC 16022 from Java.

How it works

GS1 DataMatrix is a GS1-compliant form of Data Matrix that supports GS1 application identifiers and FNC1 under ISO/IEC 16022. IDAutomation Data Matrix products can create these symbols.

  • The first FNC1 is non-printable, entered as ~1, and must begin the data
  • Additional FNC1 characters are inserted only after variable-length element strings; put fixed-length strings first
  • Set the encoding mode to ASCII (mode 3 in IDAutomation products) and enable ApplyTilde or ProcessTilde
  • With GS1 emulation the first FNC1 decodes as ]d2 and additional FNC1s as GS (ASCII 29)
GS1 DataMatrix symbol beside element strings with FNC1 separators after variable-length data

In Java

Illustrative data: begin with ~1 and add ~1 after variable-length strings. Check the Java manual for the property names that apply to your package.

DataMatrix dm = new DataMatrix();
dm.setProcessTilde(true);
dm.setDataToEncode("~1" + "0109521101530001" + "17271231" + "10ABC123~1" + "214567");
// FNC1 after the variable-length batch number

Frequently asked questions

Is GS1 DataMatrix the same as Data Matrix?

It is a variant of Data Matrix that uses GS1 element string syntax.

Which Java Data Matrix features apply?

The Java package supports Data Matrix ECC200 including GS1 and ISO/IEC 15434 formats, with UTF-8 and byte array support.

How can I verify the output?

Use the Barcode Data Decoder Verifier App or the ASCII String Decoder to see GS characters.

Learn more at BarcodeFAQ.com

The Internet Barcode FAQ explains GS1 DataMatrix in depth.

BARCODEFAQ