What Is a GS1 DataMatrix Barcode?
GS1 DataMatrix is a Data Matrix code that holds GS1 data, such as a product’s GTIN, expiry date, batch and serial number. It is used for medicine serialization and medical device labeling (UDI), and more and more on food and retail packs. Pharmacies and hospitals scan it to trace products.
It starts with a special FNC1 character, so scanners know the data follows GS1 rules. The data uses Application Identifiers, for example (01) GTIN, (17) expiry date, (10) batch and (21) serial number. The brackets only appear in the text printed next to the code; they are not encoded.
What Data Can GS1 DataMatrix Hold?
GS1 Application Identifiers in brackets, for example (01)03453120000011(17)261125(10)ABCD1234, up to 1,556 bytes. We add or check the GTIN check digit and check that dates use the YYMMDD format.
Recommended Size
Leave a quiet zone of at least one module on every side. Most healthcare rules also ask for the key data in human-readable text next to the code, so plan space for it on the label.
FNC1 and the Group Separator in GS1 DataMatrix
Two kinds of FNC1 matter. The first one, at the very start, marks the symbol as GS1. Later ones end each variable-length field, such as a batch in (10), so the scanner knows where the next AI begins. Scanners usually pass those later separators on as the ASCII group separator character (GS, decimal 29).
A common mistake is typing a literal GS character into a plain Data Matrix. That is not the same as FNC1 and produces a non-compliant symbol. Writing the AIs in brackets lets the encoder insert FNC1 correctly.
GS1 DataMatrix in Pharmacy and Medical Device Labeling
Medicine verification schemes and UDI rules typically ask for the GTIN, expiry, batch and serial together. The symbol uses the ECC 200 version of Data Matrix (ISO/IEC 16022), with Reed-Solomon error correction that lets a partly damaged code still scan.
- Square sizes run from 10 x 10 to 144 x 144 modules.
- Scanners report GS1 DataMatrix with the symbology identifier ]d2, which software uses to tell it from plain Data Matrix.
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.
GS1 DataMatrix FAQs
Yes. The GTIN in (01) must come from your GS1 company prefix for products in the supply chain.
Put fixed-length AIs such as (01) and (17) first, and variable-length ones such as (10) and (21) last. This keeps the code smaller.
YYMMDD. For example, (17)261125 means an expiry date of 25 November 2026.
No. Without the GS1 start character, scanners won’t treat the data as GS1, so choose GS1 DataMatrix when GS1 data is required.
Yes, with thermal transfer, inkjet or laser coding on the carton. Check the print quality with a verifier if your customers grade it.
(21) has variable length. Placing it last saves one FNC1 separator, so the code can be smaller.
