Free tool
EPC encoder and decoder
Paste the 24 hex characters a reader shows and see the GTIN, serial and filter inside. Or type a GTIN or SSCC and get the hex a printer should write.
Take a tag apart
How it works
What you’re looking at
A UHF tag answers a reader with the contents of its EPC bank, usually 96 bits. On their own they’re a number. GS1’s Tag Data Standard says how to lay them out so that anyone’s reader can turn them back into a GTIN or an SSCC, the same keys that are already in the barcodes.
For a trade item (SGTIN-96) the layout is: an 8-bit header that names the scheme, a 3-bit filter that says what kind of thing the tag is on, a 3-bit partition that says how the next 44 bits are shared between the company prefix and the item reference, and a 38-bit serial. The item reference carries the GTIN’s indicator digit in front. The check digit isn’t stored; it’s worked out again on the way back.
For a pallet or shipping case (SSCC-96) the shape is the same, with the 58 bits after the partition shared between the company prefix and the serial reference, and 24 bits left zero.
The one thing the bits can’t tell you
How long your company prefix is. 0614141 followed by 12345 could be a 7-digit prefix and a 5-digit item, or a 6-digit prefix and a 6-digit item. The partition value records which, so the encoder needs it from you; it’s on your GS1 licence. Get it wrong and the hex is wrong in a way that still decodes to a valid-looking number, which is the worst kind of wrong.
What the tool doesn’t do
It takes SGTIN-96 and SSCC-96 apart in full. The other 96-bit schemes (GRAI for returnable assets, GIAI for individual assets, SGLN for locations, GDTI, GSRN) it names from the header and stops. SGTIN-198, which carries an alphanumeric serial in 198 bits, isn’t here either.
It doesn’t talk to a tag. The hex comes from your reader’s software; the result goes to your printer’s encoding profile. For how an EPC fits a wider traceability setup, see RFID manufacturer? You really should know about GS1 / EPC standards.
Where the layouts come from
The GS1 EPC Tag Data Standard, release 2.3 (October 2025): the header values (table 14-1), the SGTIN and SSCC partition tables (section 14.6; table 14-16 for SGTIN) and the filter values (10-1 and 10-2). The sums are checked against the examples in the standard’s appendix E.3: urn:epc:tag:sgtin-96:3.95060001343.05.123456789 is 3066C4409047E140075BCD15, and urn:epc:tag:sscc-96:0.952012.03456789123 is 311BA1B300CE0A6A83000000. They also agree with the older worked examples urn:epc:tag:sgtin-96:3.0614141.812345.6789 (3074257BF7194E4000001A85) and urn:epc:tag:sscc-96:3.0614141.1234567890 (3174257BF4499602D2000000).