This article is compiled in accordance with the GS1 Digital Link v1.2 international standard, the national standard GB/T 33993-2024 QR Codes for Commodities, and the ISO/IEC 16022 DataMatrix symbology specification. It distinguishes two encoding formats: conventional GS1 element string DataMatrix and GS1 Digital Link DataMatrix. It fully sorts out URI layering rules, compliance examples, device adaptation differences and industry implementation plans, and can be directly applied to the development of label printing systems for pharmaceuticals, industrial manufacturing, precision small parts and warehousing logistics.
Preface
There are two mainstream 2D barcodes under the GS1 system: QR Code and DataMatrix. Both can carry GS1 Digital Link URIs, yet they differ significantly in encoding characteristics, applicable scenarios and compatibility with scanning devices.
Boasting ultra-small printing dimensions, high error correction capability, and resistance to high temperatures and abrasion, DataMatrix is the preferred carrier for pharmaceuticals, medical devices, electronic components, small-unit packaging labels and pallet logistics labels. Meanwhile, the unified URI standard of GS1 Digital Link enables “one code for dual purposes”, allowing DataMatrix to support both B-end industrial supply chain scanning and C-end digital traceability services.
This article corrects a common industry misunderstanding: conventional FNC1 element string DataMatrix and URI-based Digital Link DataMatrix are two independent encoding systems with incompatible path parameter rules. It also provides fully compliant encoding examples applicable to all business scenarios.
1. Two Standard Formats of GS1 DataMatrix
GS1 DataMatrix refers to ECC200 DataMatrix codes complying with the global GS1 coding system, divided into conventional GS1 element string DataMatrix (offline industrial scanning only) and GS1 Digital Link DataMatrix (Digital Link standard carrier). The two formats are completely separate in encoded content, device compatibility and business capabilities.
1.1 Conventional GS1 Element String DataMatrix (Exclusive for Offline Industrial Use)
- Encoding Rules: The hidden control character FNC1 is placed at the start of the code, followed by a concatenated sequence of Application Identifier (AI) element strings. It has no webpage URL structure and cannot redirect to web pages; its symbology identifier is
]d2. - Device Compatibility: Industrial scanners, fixed production line readers, pharmaceutical traceability terminals and warehousing PDAs can automatically parse GTIN, batch numbers, serial numbers and expiry dates. Native cameras on ordinary mobile phones only output plain text strings and cannot automatically open web pages; dedicated scanning applications are required to parse structured data.
- Core Limitations: It cannot support digital consumer-facing services and acts solely within closed supply chain workflows, with no capacity to display online information to end consumers.
- Compliant Element String Example (Valid Check Digit):
Raw business data: AI01 GTIN (06900000000007), AI10 Batch Number (LOT202607), AI17 Expiry Date (271231), AI21 Unique Serial Number (SN000123)
Content stored inside the code (hidden FNC1 as separator):[FNC1]010690000000000710LOT2026071727123121SN000123
Human-readable printed text:(01)06900000000007(10)LOT202607(17)271231(21)SN000123
1.2 GS1 Digital Link DataMatrix (New Digital Link Standard for Dual Industrial & Consumer Scenarios)
A unified 2D barcode format promoted globally by GS1 and compliant with the URL-based QR Code specification GB/T 33993-2024 in China. It encodes standardized Digital Link URIs to deliver ultra-small-size dual-purpose codes, filling the size gap of QR Codes for narrow packaging, high-temperature labels and precision electronic components.
- B-end Industrial Equipment: Professional scanners automatically extract the primary identifier and qualifier AIs embedded in the URL path. The parsing logic matches that of GS1-128 linear barcodes, enabling seamless integration with ERP, WMS, pharmaceutical GSP traceability systems and production line quality inspection equipment. Its symbology identifier is
]d1. - C-end Mobile Devices: Native phone cameras can read full URIs and redirect to parsing servers to retrieve electronic product labels, traceability records and compliance disclosures. Caveat: Native cameras on older/low-end Android devices struggle to read miniaturized DataMatrix; dedicated scanning apps are recommended for improved recognition.
- Core Layering Framework: Built on the GS1 AI JSON-LD specification, it strictly differentiates primary keys, key qualifiers and generic attribute query parameters to avoid parsing errors caused by misplacement of AIs within URL paths.
2. Core URI Layering Rules for GS1 AI JSON-LD (Compatible with DataMatrix)
These layering rules are identical for Digital Link QR Codes and DataMatrix. No URI syntax modifications are required for DataMatrix encoding; only printing parameters need adjustment to accommodate smaller dimensions and higher error correction levels.
2.1 Classification Definition for Three AI Data Types
| Category | JSON-LD Tag | URI Placement | Common Corresponding AIs | Mandatory Restrictions |
|---|---|---|---|---|
| Primary Key | gs1DigitalLinkPrimaryKey: true | First path segment of URI | 01 (GTIN), 00 (SSCC), 414 (GLN), 8003 (GRAI) | Positioned at the front of the URL; only one primary key permitted, serving as the unique root ID of an entity |
| Key Qualifier | gs1DigitalLinkQualifiers array | Subsequent path segments formatted as /AI/Value | 10 (Batch Number), 21 (Item Serial Number), 22 (Product Variant) | Refines unique item identity; must be placed in URL paths, never in query parameters |
| Generic Attribute | No dedicated tag | Query string after ? formatted as ?AI=Value | 17 (Expiry Date), 11 (Production Date), 3103 (Net Weight) | Supplementary descriptive data only; strictly prohibited from path segments to prevent parsing failures |
2.2 Mandatory URI Syntax Specifications (Digital Link v1.2 Standard)
- The deprecated legacy
/gs1/intermediate path prefix is eliminated; all compliant Digital Link URIs for DataMatrix must exclude this segment. - Unified standard base URI structure:
https://[resolver-domain]/[Primary-AI]/[Primary-AI-Value]/[Qualifier-AI1]/[Qualifier-Value1]/[Qualifier-AI2]/[Qualifier-Value2]?[Attribute-AI]=[Value]&[Attribute-AI2]=[Value2]
- Path segments may only contain primary keys and associated qualifier AIs; expiry dates, production dates and other descriptive attributes must be placed within the query string.
- AI value formatting matches conventional GS1 element string rules: GTIN-14 must be a full 14-digit sequence with a valid check digit.
- For DataMatrix URI encoding, ECC200 high error correction grades are prioritized. Square symbols are recommended for compact labels, while rectangular DataMatrix suits elongated label formats.
3. Fully Compliant Standard GS1 Digital Link DataMatrix URI Examples
Unified baseline business dataset (valid check digits, consistent with QR Code examples for seamless symbology switching):
- Primary Key AI01 GTIN: 06900000000007
- Qualifier AI10 Production Batch: LOT202607
- Qualifier AI21 Unique Item Serial Number: SN000123
- Generic Attribute AI17 Expiry Date: 271231 (YYMMDD format, query string only)
- Extended Attribute AI11 Production Date: 260115
Example 1: Official Domestic Public Resolver Domain (id.gs1cn.org, General for Chinese Domestic Goods)
Full compliant URL (Primary Key + Dual Qualifiers + Dual Attribute Parameters, directly encodable into DataMatrix):
https://id.gs1cn.org/01/06900000000007/10/LOT202607/21/SN000123?17=271231&11=260115
Compliance Layer Validation:
/01/06900000000007: AI01 primary key placed at the foremost path segment with a standard 14-digit GTIN./10/LOT202607and/21/SN000123: Batch numbers and serial numbers as qualifiers embedded within URL path segments.?17=271231&11=260115: Expiry and production dates as supplementary attributes stored in the query string, separate from path segments.
Example 2: Basic Single Item (GTIN Only, No Batch/Serial/Extended Attributes – Ideal for Miniature Labels)
Corresponding element string: (01)06900000000007
https://id.gs1cn.org/01/06900000000007
Applicable Scenarios: Tablet blister packs, micro electronic components, miniature cosmetic sample packaging with compact footprint.
Example 3: Product with Batch Qualifier and Dual Supplementary Attributes
Corresponding element string: (01)06900000000007(10)LOT202607
https://id.gs1cn.org/01/06900000000007/10/LOT202607?17=271231&11=260115
Applicable Scenarios: Bottled pharmaceuticals, implantable medical device inner packaging, miniature daily chemical products.
Example 4: Private Enterprise Resolver Domain (Privately Deployed for Pharmaceuticals & Industrial Manufacturers)
Custom enterprise resolver domain: id.gtin.xin
https://id.gtin.xin/01/06900000000007/10/LOT202607/21/SN000123?17=271231&11=260115
Example 5: Global International Public Resolver Domain (id.gs1.org, for Cross-Border Pharmaceuticals & Industrial Goods)
https://id.gs1.org/01/06900000000007/10/LOT202607/21/SN000123?17=271231
Example 6: Logistics Pallet Primary Key SSCC (Standalone AI00 Primary Key for Warehouse Pallet DataMatrix)
SSCC code: 123456789012345675, no qualifiers or supplementary attributes
https://id.gs1cn.org/00/123456789012345675
4. Complete Workflow of GS1 Digital Link DataMatrix
4.1 Encoding & Printing Stage
Label printing software (medical device coding systems, industrial production line marking equipment) imports full structured AI datasets and generates compliant URLs following Digital Link URI layering rules. URIs are encoded into ECC200 DataMatrix codes and printed on miniature labels, blister packs, component casings and pallet shipping documents. A single code replaces linear barcodes and marketing QR Codes simultaneously, cutting packaging printing costs.
Advantages Over QR Codes: For identical data volumes, symbol dimensions shrink by 30%–50%; compatible with high-temperature hot stamping, laser engraving, metal etching and other specialized marking processes.
4.2 Two Categories of Terminal Scanning & Parsing Logic
4.2.1 B-end Professional Industrial Scanning Equipment (Pharmaceutical Production Lines, Warehousing, Hospital Pharmacies, Quality Inspection Stations)
Fixed production line readers and handheld DPM scanners identify the URI embedded in DataMatrix, automatically splitting structured primary keys (01) and qualifiers (10/21) from path segments. Offline operation supports warehouse receiving, unit-level traceability, pharmacy reconciliation and pallet inventory counting, delivering full backward compatibility with existing GS1 linear barcode supply chain ecosystems.
4.2.2 C-end Consumer Mobile Phone Scanning
Mobile native cameras read complete URIs and send HTTP requests to designated resolver servers, which intelligently distribute differentiated content to visitors. Dedicated scanning apps are recommended for enhanced recognition of ultra-small, high-density printed DataMatrix symbols.
4.3 Intelligent Routing by Resolver Servers (Core Value of Digital Link)
Static printed/engraved DataMatrix codes remain permanently unchanged, yet backend resolver routing logic can be updated dynamically without packaging redesign. Customized content is distributed to different visitor categories:
- General Consumers: Drug leaflets, allergen information, traceability records, anti-counterfeit verification.
- Drug Regulatory & Market Supervision Authorities: Drug registration certificates, production quality inspection reports, product recall notifications.
- Medical Institutions & Distributors: Batch circulation records, inventory management, GSP traceability ledgers.
- Overseas Cross-Border Clients: Multilingual compliance pages aligned with EU Digital Product Passport (DPP) and pharmaceutical export regulations.
5. Key Industry Implementation Scenarios for GS1 Digital Link DataMatrix
Leveraging ultra-miniature dimensions, robust error tolerance, high-temperature resistance and support for Direct Part Marking (DPM), Digital Link DataMatrix is primarily deployed in heavily regulated industries with constrained marking surfaces:
5.1 Pharmaceuticals & Medical Devices (Globally Mandated Symbology)
The sole 2D barcode recognized worldwide by pharmaceutical GSP, FDA and EU drug traceability frameworks, implementing one-item-one-code via SGTIN (01 GTIN + 21 Serial Number). Digital Link DataMatrix is laser-engraved onto tablet blister packs, vials and miniature implantable device surfaces.
- Offline structured data parsing by pharmacy scanners for supply chain workflows.
- Patient mobile scanning for access to drug registration credentials, adverse reaction disclosures and recall alerts.
- Full cross-border end-to-end traceability compliance for pharmaceutical exports.
5.2 Electronic Components, Precision Industrial Parts & EU Digital Product Passports
Laser marking of Digital Link DataMatrix on microchips, hardware fittings and batteries enables instant access to carbon footprint data, material composition, recycling protocols and maintenance records, complying with the EU ESPR environmental regulations and mandatory Digital Product Passport requirements. DataMatrix is the only viable symbology for miniature workpieces where QR Code printing is unfeasible.
5.3 Warehousing Logistics, Reusable Packaging & Pallet Asset Traceability
AI00 SSCC pallets and GRAI reusable tote containers adopt Digital Link DataMatrix; compact shipping labels store full pallet inventory details, receiving GLNs and circulation logs. Superior error correction delivers more stable scanning than QR Codes in high-abrasion warehouse environments.
5.4 Cosmetic Samples, Miniature Fast-Moving Consumer Goods & Capsule Foods
Micro-sized Digital Link Digital Link codes printed on capsules, miniature skincare samples and single-serve food packaging balance packaging aesthetics with one-code traceability and electronic label compliance under GB/T 33993-2024 URL QR Code standards.
6. Core Comparative Analysis: GS1 Digital Link DataMatrix vs GS1 Digital Link QR Code
| Comparison Dimension | GS1 Digital Link DataMatrix | GS1 Digital Link QR Code |
|---|---|---|
| Minimum Printable Size | Ultra-compact; nearly 50% smaller than QR Code for equivalent data volume | Larger footprint on packaging |
| Native Mobile Camera Compatibility | Poor recognition for micro-sized variants; dedicated scanning apps recommended | Recognizable by all mobile native cameras, consumer-friendly |
| Industrial Special Marking Processes | Supports laser engraving, metal etching, high-temperature hot stamping and DPM direct part marking | Limited to paper/laminated labels; incompatible with high-temperature engraving |
| Error Correction & Damage Resistance | Four-tier ECC200 error correction; stable scanning despite oil stains, creases and partial occlusion | Configurable error correction grades; prone to scanning failure under extensive surface damage |
| Mandatory Industry Standards | Globally specified symbology for pharmaceuticals, medical devices and industrial components | Preferred symbology for retail fast-moving consumer goods targeting mass consumers |
| Maximum Data Capacity | 3,116 numeric digits, 2,335 alphanumeric characters | 7,089 numeric digits, supports longer URIs and rich text payloads |
| National Standard Alignment | Compliant with GB/T 41208 and compatible with GB/T 33993-2024 URL QR Code standard | Compliant with GB/T 18284, prioritized for retail applications |
7. Five Core Advantages of GS1 Digital Link DataMatrix
- Adaptability for Ultra-Compact Marking Surfaces
For identical GS1 Digital Link URI payloads, DataMatrix symbols occupy far less space than QR Codes, resolving industry bottlenecks of limited marking area on drug blister packs, micro-components and sample packaging. Square and rectangular symbol shapes support all irregular label formats. - Cross-Industry Industrial Compatibility & Regulatory Compliance Backing
The sole globally recognized 2D barcode for pharmaceuticals, medical devices and industrial component traceability. It simultaneously satisfies domestic GB/T 33993-2024, EU DPP, GSP, FDA and multi-national regulatory mandates, with a single code fulfilling supply chain oversight and consumer digital disclosure requirements. - Dynamic Digital Services Powered by Static Barcodes
Printed or engraved DataMatrix codes remain fixed for the product lifecycle, yet backend resolver servers can dynamically update redirect pages, refresh traceability data and switch multilingual content without packaging redesign, drastically reducing revision costs for pharmaceutical and industrial product lines. - Superior Damage Resistance & Multi-Material Marking Compatibility
The ECC200 Reed-Solomon high error correction algorithm ensures reliable scanning even with oil contamination, wrinkling, partial abrasion and high-temperature exposure. Compatible with laser engraving, etching, hot stamping and adhesive label printing across metal, plastic, aluminum foil and paper substrates. - Globally Unified Interoperable GS1 Standard
Identical underlying URI syntax as Digital Link QR Codes, enabling cross-border interoperability across 150+ national GS1 member organizations. Enterprises may freely switch between DataMatrix and QR Code carriers based on packaging dimensions without backend resolver system overhauls.
8. Critical Implementation Guidelines & Common Pitfall Avoidance
- Avoid Mixing Two Encoding Formats Simultaneously
Do not print conventional FNC1 element string DataMatrix and Digital Link URI DataMatrix on the same product packaging; this triggers parsing conflicts across scanning devices. Select one standard format exclusively. - Strict Separation of Path vs Query Parameter AIs
Batch numbers, serial numbers and other qualifiers must be embedded within URL paths. Expiry dates, production dates and other descriptive attributes are restricted to query strings. Placing attribute AIs in path segments causes industrial scanner parsing failures. - Recognition Optimization for Micro-Sized Codes
For DataMatrix printed smaller than 8mm, deploy dedicated scanning applications, increase print resolution and expand quiet zone margins to mitigate native mobile camera recognition failures. - Mandatory Maximum Error Correction Grade for Pharmaceutical Applications
Select the highest ECC200 error correction grade for vials, blister packs and other circulation-prone packaging prone to abrasion, guaranteeing consistent scanning performance throughout warehouse and pharmacy workflows.
