GS1 Data Matrix Generator
Create GS1 Data Matrix codes for supply chain and healthcare with Application Identifiers.
GS1 Application Identifiers format: (AI)value
Need a different barcode type? Browse all generators
What is a GS1 Data Matrix?
GS1 Data Matrix is a two-dimensional barcode that combines the compact size and error correction of Data Matrix with GS1 Application Identifiers (AIs) for standardized data encoding. It's widely used in healthcare, pharmaceuticals, and supply chain management where space is limited but high data capacity is required. GS1 Data Matrix is particularly popular for small item marking and unit-level traceability.
GS1 Data Matrix uses a FNC1 character in the first symbol position to signal that the encoded data follows GS1 Application Identifier syntax. This lets a single compact symbol carry multiple linked data fields — a product's GTIN, expiry date, batch number, and serial number can all be encoded together. Because Data Matrix symbols can be printed as small as 2x2 mm using direct part marking, GS1 Data Matrix has become the preferred format for pharmaceutical unit-dose packaging and small medical devices where label space is extremely limited.
GS1 Data Matrix combines the compact size of standard Data Matrix codes with GS1 Application Identifiers for standardized data encoding. For linear GS1 barcodes, see GS1-128.
Want to learn more about GS1 Data Matrix? Read our complete guide to GS1 Data Matrix for pharmaceutical serialization, medical device labeling, and regulatory compliance.
How to Use This Generator
Creating a GS1 Data Matrix code requires understanding GS1 Application Identifiers:
- Enter your data using GS1 Application Identifier format, e.g., (01)00614141000012(17)250630, where (01) is GTIN and (17) is expiration date
- Click 'Generate Barcode' to create your GS1 Data Matrix code
- Adjust size and appearance in advanced options (optional)
- Download your code as SVG, PNG (multiple resolutions), or PDF
Technical Specifications
Key technical details for GS1 Data Matrix:
| Data Capacity | Up to 2,335 alphanumeric or 3,116 numeric characters (same as standard Data Matrix) |
| Character Set | Full ASCII and extended ASCII; data structured using GS1 Application Identifiers with FNC1 prefix |
| Symbol Size | 10x10 to 144x144 modules (square) or 8x18 to 16x48 (rectangular); can be as small as 2x2 mm |
| Check Digit | Not applicable — error detection and correction handled by Reed-Solomon codewords |
| Error Correction | Reed-Solomon error correction — recovers data even with up to 25% symbol damage |
| Standard | ISO/IEC 16022 (Data Matrix) with GS1 General Specifications for AI encoding |
Common Use Cases
GS1 Data Matrix codes are essential for:
- Pharmaceutical packaging for drug traceability and anti-counterfeiting (serialization)
- Medical devices and surgical instruments for unit-level tracking
- Electronics and small parts marking in manufacturing and supply chain
- Food traceability labels encoding GTIN, batch, and use-by dates on individual packages
- Direct part marking on aerospace and automotive components for lifetime traceability
Tips & Best Practices
Get the most out of your GS1 Data Matrix codes:
- Always start your data string with the FNC1 character (our generator inserts it automatically) — without it, scanners won't recognize the GS1 AI structure.
- Place fixed-length AIs like (01) GTIN and (17) expiry date first, followed by variable-length AIs. This minimizes the need for FNC1 separator characters and keeps the symbol compact.
- For pharmaceutical compliance, encode at minimum AI (01) GTIN, (17) expiry, (10) batch, and (21) serial number — check your market's specific regulatory requirements.
- Verify your GS1 Data Matrix with a barcode verifier (not just a scanner) before going to production. Verification grades per ISO/IEC 15415 ensure the symbol meets supply chain quality thresholds.
Test Your Barcode
After generating your GS1 Data Matrix code, verify it scans correctly and contains the right Application Identifier data before printing on product packaging. Use our free barcode scanner to test your codes instantly - simply scan with your camera or upload an image to ensure compliance with GS1 standards. Test your barcode with our free scanner.
Frequently Asked Questions
What is the difference between GS1 Data Matrix and regular Data Matrix?
A GS1 Data Matrix is a standard Data Matrix symbol that follows GS1 encoding rules. The key difference is a FNC1 character in the first position, which tells scanners the data uses GS1 Application Identifiers (AIs) like GTIN, expiry date, and batch number. A regular Data Matrix can hold any freeform text. If your supply chain or regulatory system requires structured product data, you need the GS1 variant.
Is GS1 Data Matrix required for pharmaceuticals?
In many markets, yes. The EU Falsified Medicines Directive (FMD) and the US Drug Supply Chain Security Act (DSCSA) both require serialized product identification on drug packaging, and GS1 Data Matrix is the standard format for encoding the required GTIN, serial number, batch/lot, and expiry date. Similar regulations exist in countries like Brazil, South Korea, and Saudi Arabia.
What Application Identifiers are used in GS1 Data Matrix?
The most common AIs are (01) for GTIN (product identifier), (17) for expiration date, (10) for batch or lot number, and (21) for serial number. Other frequently used AIs include (11) for production date, (30) for variable count, and (240) for additional item identification. Our free generator accepts AI syntax directly — just enter the parenthesized codes with their values.
What is the GS1 Sunrise 2027 initiative?
GS1 Sunrise 2027 is an industry-wide transition that allows 2D barcodes — including GS1 Data Matrix and GS1 QR Code — to be used at retail point-of-sale alongside traditional 1D barcodes like EAN-13 and UPC-A. By the end of 2027, retailers worldwide are expected to accept 2D codes at checkout, enabling richer product data, traceability, and consumer engagement from a single symbol.
Is this GS1 Data Matrix generator free?
Yes, fully free with no registration, no watermarks, and no usage limits. Create as many GS1 Data Matrix codes as you need and download them as SVG, PNG, or PDF. All encoding runs in your browser — your product data is never sent to any server.
Related Barcode Formats
Data Matrix Barcode Generator
Create compact Data Matrix codes for small items, electronics, and documents.
GS1-128 Barcode Generator (EAN-128)
Create GS1-128 barcodes for supply chain with Application Identifiers.
GS1 QR Code Generator
Create GS1 QR codes for product traceability and consumer engagement.