Engineering tools · TDS Convert
SGTIN to GTIN Converter (TDS Convert)
Convert SGTIN RFID EPC hex to GTIN, serial number, GS1 Digital Link, and other EPC TDS fields. Based on GS1 EPC Tag Data Standard (TDS) with automatic scheme detection.
Auto-Detect Decoder
Paste any EPC hex value and we'll automatically detect the scheme and decode all fields
EPC Encoder
Generate EPC hex codes from GTIN, serial numbers, and other identifiers
EPC Scheme Reference
| Scheme | Header | Bits | Description | GS1 Key |
|---|---|---|---|---|
| GDTI-96 | 0x2C | 96 | Global Document Type Identifier | GDTI |
| GSRN-96 | 0x2D | 96 | Global Service Relation Number | GSRN |
| SGTIN-96 | 0x30 | 96 | Serialized Global Trade Item Number | GTIN + Serial |
| SSCC-96 | 0x31 | 96 | Serial Shipping Container Code | SSCC |
| SGLN-96 | 0x32 | 96 | Global Location Number with Extension | GLN + Extension |
| GRAI-96 | 0x33 | 96 | Global Returnable Asset Identifier | GRAI |
| GIAI-96 | 0x34 | 96 | Global Individual Asset Identifier | GIAI |
| SGTIN-198 | 0x36 | 198 | SGTIN with alphanumeric serial | GTIN + Serial |
Developer Code Snippets
Copy-paste ready implementations for multi-scheme EPC encoding/decoding
1// TDS 2.x Multi-Scheme EPC Decoder (TypeScript)
2import { decodeEpc, detectEpcScheme, encodeSgtin96 } from './tds-epc-utils';
3
4// Auto-detect and decode any EPC
5const hex = "3076215F0C5D974000000001";
6const result = decodeEpc(hex);
7
8console.log(`Scheme: ${result.schemeName}`);
9console.log(`GTIN-14: ${'gtin14' in result ? result.gtin14 : 'N/A'}`);
10console.log(`Serial: ${'serial' in result ? result.serial : 'N/A'}`);
11console.log(`Digital Link: ${result.digitalLinkUri}`);
12
13// Encode SGTIN-96
14const encoded = encodeSgtin96("8935363958373", "12345", 3);
15console.log(`Encoded: ${encoded}`);Frequently Asked Questions
- We support SGTIN-96/198 (products), SSCC-96 (shipping containers), SGLN-96/195 (locations), GRAI-96/170 (returnable assets), GIAI-96/202 (individual assets), GDTI-96/174 (documents), GSRN-96 (service relations), and ADI-var (aerospace).
- Each EPC scheme has a unique header byte (first 8 bits). We analyze this header to automatically determine the correct scheme and apply the appropriate decoding logic - no manual selection needed.
- GS1 Digital Links are web URIs that encode GS1 identifiers (like GTINs) in a standardized URL format. They enable smart devices to access product information, IoT integration, and support the upcoming Digital Product Passport (DPP) requirements.
- The partition determines how 44 bits are split between company prefix and item reference. Each partition value (0-6) represents a different split, enabling flexibility for companies with varying prefix lengths.
- Yes! The code snippets are designed for production use. They include the full partition table, check digit calculation, and proper bit manipulation for accurate EPC encoding and decoding.