# GS1-128 vs GS1 DataMatrix vs GS1 Digital Link QR Comparison
> Compare GS1-128, GS1 DataMatrix, and GS1 Digital Link QR symbologies and how each encodes the same Application Identifiers.

- **Canonical URL:** https://stanzaapi.com/tools/gs1-decoder/ai/gs1-128-vs-datamatrix-vs-qr
- **Governing Standard:** GS1 General Specifications & AI Syntax (GS1 Global Standards Architecture)
- **Latency:** <1ms Edge
- **Privacy:** In-memory execution only (zero data stored or logged)

## Technical Overview & Governing Rules
GS1-128 is a 1D Code 128 symbology that carries Application Identifiers with FNC1 separators; it is common in logistics but limited in data capacity.

GS1 DataMatrix is a 2D matrix symbology that packs GTIN, lot, expiry, and serial into a small square, which is why FDA DSCSA and UDI regulations require it on pharmaceutical and medical device packaging.

GS1 Digital Link QR encodes the same AIs as a web URI (https://id.example.com/01/.../21/...), enabling smartphones and POS scanners to resolve product data online, the target of the Sunrise 2027 retail transition.

## Specification Matrix
| Symbology | Dimensions | Typical Use | FNC1 Handling | Sunrise 2027 Ready |
| --- | --- | --- | --- | --- |
| GS1-128 | 1D (linear) | Logistics labels, cartons | FNC1 between variable-length AIs | No |
| GS1 DataMatrix | 2D (matrix) | Pharma DSCSA, UDI, small items | FNC1 / ASCII 29 in encoded stream | Partial |
| GS1 Digital Link QR | 2D (QR) | Retail POS, consumer engagement | AIs encoded as URI path and query | Yes |

## Standard JSON Response Model
```json
{
  "symbology": "GS1 DataMatrix",
  "decoded": {
    "10": "LOT123",
    "17": "260831",
    "21": "SN9988",
    "01": "00012345678905"
  }
}
```

## Frequently Asked Questions & Edge Cases
### Q: Which GS1 symbology is required for FDA DSCSA?
**A:** FDA DSCSA requires a 2D DataMatrix carrying the four product identifiers (GTIN, serial number, lot, and expiration date) on prescription drug packages, which GS1 DataMatrix encodes in the smallest footprint.

### Q: Is GS1 Digital Link the same data as GS1-128?
**A:** Yes. GS1 Digital Link QR carries the same Application Identifiers as GS1-128 or DataMatrix, but expresses them as a web URI so a smartphone can resolve product information without a proprietary scanner.
