Free GS1 SSCC, GRAI, GIAI & SGLN EPC Calculator

Encode or decode 96-bit SSCC-96 (shipping pallets & cases), GRAI-96 (returnable totes, kegs & rental tools), GIAI-96 (fixed IT & industrial assets) and SGLN-96 (warehouse rack & dock locations) into 24-character RAIN RFID Bank 01 hex, GS1 element strings with Mod-10 check digits, EPC URIs and batch CSV files. Need retail trade-item SGTIN-96 (30h)? Use our GS1 SGTIN-96 EPC Encoder.

Updated

Mode

Sets Partition P (0–6) automatically.

SSCC uses 0, 2 (Case) or 6 (Unit Load); others use 0.

First digit of the 18-digit SSCC.

Up to (16 − Prefix digits); shorter numbers left-pad with 0.

Load official GS1 TDS test vector:

Batch CSV export: consecutive range

Generates consecutive rows starting from the key above (incrementing SSCC Serial Reference, GRAI Serial, GIAI Asset Reference or SGLN Extension), up to 10,000 tags per CSV.

Encoded RAIN RFID Bank 01 output

Valid SSCC-96: (00)106141412345678908 → 3174257BF4499602D2000000.

96-bit EPC hex (Bank 01 from bit 20h · PC = 3000h)

3174257BF4499602D2000000

GS1 element string (barcode / human-readable)
(00)106141412345678908
EPC pure identity URI (EPCIS / WMS)
urn:epc:id:sscc:0614141.1234567890
EPC tag URI (includes filter & 96-bit scheme)
urn:epc:tag:sscc-96:3.0614141.1234567890

SSCC-96 (Header 31h · Partition 5 · Bank 01 PC = 3000h) · Typical tag: Printed or blank UHF shipping / pallet labels.

96-bit field-by-field breakdown

Field Bits Binary Decoded value & rule
Calculating 96-bit GS1 fields…

Ordering UHF pallet labels, returnable-tote tags, on-metal asset tags or rack labels?

Proud Tek manufactures printed and blank UHF shipping & location labels, dry and wet UHF inlays and on-metal and rugged custom UHF tags in Shenzhen, and can pre-encode your SSCC, GRAI, GIAI or SGLN allocation with a matching GS1-128 or DataMatrix barcode (see Dry Inlay vs Wet Inlay vs RFID Label).

Standard blank samples are free; custom sizes, printed barcodes or pre-encoded samples carry a setup fee confirmed in the quotation.

GS1 TDS 2.3 partition tables: SSCC-96, GRAI-96, GIAI-96 & SGLN-96

Every partitioned 96-bit GS1 EPC starts with an 8-bit scheme header (31h–34h), a 3-bit filter and a 3-bit partition value P (0–6) determined by the length L (6–12 digits) of your licensed GS1 Company Prefix (EPC Tag Data Standard Release 2.3, §14.6.2–§14.6.5):

1. SSCC-96 (Header 31h, Table 14-6) — 58 bits + 24 reserved zero bits

Partition PPrefix digits (L)Prefix bits (M)Ext + Serial Ref digitsExt + Serial Ref bits (N)
012405 (1 ext + 4 serial)18
111376 (1 ext + 5 serial)21
210347 (1 ext + 6 serial)24
39308 (1 ext + 7 serial)28
48279 (1 ext + 8 serial)31
572410 (1 ext + 9 serial)34
662011 (1 ext + 10 serial)38

2. GRAI-96 (Header 33h, Table 14-19) — 44 bits + 38-bit Serial

Partition PPrefix digits (L)Prefix bits (M)Asset Type digits (K)Asset Type bits (N)
0124004
1113717
21034210
3930314
4827417
5724520
6620624

3. GIAI-96 (Header 34h, Table 14-22) — 82 bits total (Prefix + Individual Asset Ref)

Partition PPrefix digits (L)Prefix bits (M)Asset Ref bits (N)Max decimal digits
0124042Up to 13 digits (< 242)
1113745Up to 14 digits (< 245)
2103448Up to 15 digits (< 248)
393052Up to 16 digits (< 252)
482755Up to 17 digits (< 255)
572458Up to 18 digits (< 258)
662062Up to 19 digits (< 262)

4. SGLN-96 (Header 32h, Table 14-9) — 41 bits + 41-bit Extension

Partition PPrefix digits (L)Prefix bits (M)Location Ref digits (K)Location Ref bits (N)
0124001
1113714
2103427
3930311
4827414
5724517
6620621

Worked GS1 specification vectors (7-digit prefix 0614141, filter 3)

  • SSCC-96: 3174257BF4499602D2000000
  • GRAI-96: 3374257BF40C0E400000162E
  • GIAI-96: 3474257BF40000000000162E
  • SGLN-96: 3274257BF46072000000162E

Questions about SSCC-96, GRAI-96, GIAI-96 & SGLN-96 encoding

When should we encode SSCC-96 vs SGTIN-96 vs GRAI-96 vs GIAI-96 vs SGLN-96?

Use SGTIN-96 (header 30h, in our separate SGTIN-96 EPC Encoder) for individual retail or trade items identified by a GTIN. Use SSCC-96 (31h) on shipping cartons, mixed cases and pallets matched to an Advance Ship Notice (ASN / DESADV). Use GRAI-96 (33h) on reusable transport items such as plastic totes, roll cages, beer kegs and rental tool pools that cycle between sites. Use GIAI-96 (34h) on fixed company assets such as IT laptops, forklifts, machinery and calibrated tools. Use SGLN-96 (32h) on fixed warehouse rack beams, shelf bins and dock doors.

Why does an SSCC-96 hex string always end with six zeros (000000)?

An 18-digit SSCC needs only 14 header/filter/partition bits plus 58 bits for the GS1 Company Prefix, Extension Digit and Serial Reference (72 bits in total). Under GS1 EPC Tag Data Standard §14.6.2 (Table 14-7), the remaining 24 bits (bits 72–95, six hex characters) are unallocated reserved padding and must be set to zero so the complete EPC aligns cleanly to 96 bits (six 16-bit Gen2 words, PC = 3000h).

What if our GRAI serial, GIAI asset number or SGLN extension contains letters or leading zeros?

All 96-bit GS1 EPC schemes encode serial and asset-reference fields as unsigned binary integers, which permit digits 0–9 only and forbid leading zeros (except single digit 0). Alphanumeric strings or significant leading zeros require the longer binary schemes in GS1 TDS 2.3 — GRAI-170 (up to 16 chars), GIAI-202 (up to 24 chars) or SGLN-195 (up to 20 chars) — and a high-memory RAIN RFID IC with ≥ 208–496 bits of EPC memory such as Impinj M780, NXP UCODE Nxm or Alien Higgs-9.

How does SGLN-96 distinguish a base 13-digit GLN from a GLN with an AI (254) sub-location extension?

Under GS1 TDS 2.3 §6.3.3 and §14.6.3, setting the 41-bit Extension field to integer 0 (written .0 at the end of urn:epc:id:sgln:...) is reserved to represent the base 13-digit physical GLN (414) with no AI (254) extension. Any integer from 1 to 2,199,023,255,551 encodes a numeric AI (254) extension such as a specific bin slot or shelf level.

Does this calculator upload or store our GS1 Company Prefix, pallet SSCCs or asset numbers?

No. Every check-digit calculation, binary partition split and CSV export runs locally in your browser with zero network requests and zero browser storage. Clicking Copy or Download CSV acts locally on your device, and the optional procurement brief omits all entered GS1 prefixes, SSCCs, GLNs, asset IDs and EPC hex strings.

WhatsApp