A GTIN (Global Trade Item Number, GS1 Application Identifier 01, 14 digits) names a product: in GS1's words, a GTIN "by itself identifies a class of trade item", every jar or bottle of it alike. An SGTIN (Serialized GTIN) is that GTIN plus a serial number (AI 21, up to 20 characters), and it names one item: one particular candle, not the product. GS1 says only a GTIN plus a serial number makes an Electronic Product Code (EPC), the identifier an RFID tag carries, so the SGTIN is what goes on an RFID tag for a product. Between the two sits the lot: a GTIN plus a batch or lot number (AI 10) names one batch. Below: the three side by side, the forms an SGTIN is written in, SGTIN-96 and its serial rules, and a serial log that catches a serial used twice. I read GS1's pages and ran GS1's encoder on 2026-12-03.
The short version
- GTIN: the product, 14 digits, AI 01. Every unit of it carries the same one.
- GTIN plus lot (AI 10): one batch of the product.
- SGTIN: the GTIN plus a serial number (AI 21, up to 20 characters): one item.
- An RFID tag for a product carries an SGTIN; GS1 says a GTIN alone isn't an EPC.
- SGTIN-96 tags take only a numeric serial with no leading zeros, up to 274,877,906,943.
- A serial is used once for each GTIN, since an EPC names one physical object.
- TaroStack works at the lot: GTIN, use-by and lot on a GS1-128 label. More below.
GTIN, lot and SGTIN side by side
The three, with GS1's example GTIN, 09521234123453:
| GTIN | GTIN and lot | SGTIN | |
|---|---|---|---|
| What it names | The product | One batch of the product | One item |
| GS1 Application Identifiers | (01) | (01) and (10) | (01) and (21) |
| Length | 14 digits | Lot up to 20 characters | Serial up to 20 characters |
| Example | (01)09521234123453 | (01)09521234123453(10)L-1102 | (01)09521234123453(21)400 |
| Carried in | A UPC or EAN barcode, or as a GTIN-14 on a case | A GS1-128 or GS1 DataMatrix barcode | An RFID tag, or a GS1-128, GS1 DataMatrix or Digital Link with (21) |
GS1's reference pages say a serial number (AI 21) and a lot (AI 10) are each used with another key, a GTIN among them: neither stands alone. How a GTIN-14 is built for a case is in GTIN-14, and the GTIN's other lengths in GTIN vs EAN.
The forms an SGTIN is written in
GS1's encoder FAQ describes four forms of an EPC, each for a different job, and GS1's encoder also gives the Digital Link. GS1's example GTIN with serial 400, through GS1's TDS/TDT 2.x encoder:
| Form | Used for | GS1's example, serial 400 |
|---|---|---|
| GS1 element string | Barcodes, and documents and databases built for barcode data | (01)09521234123453(21)400 |
| GS1 Digital Link | A web address, such as in a QR code | https://id.gs1.org/01/09521234123453/21/400 |
| EPC pure identity URI | Business systems and their records of events | urn:epc:id:sgtin:9521234.012345.400 |
| EPC tag URI | RFID software, with the tag's control information | urn:epc:tag:sgtin-96:0.9521234.012345.400 |
| EPC binary | The tag's memory, shown in hexadecimal | 30164521480C0E4000000190 |
How to read the pure identity URI: 9521234 is the GS1 Company Prefix, 012345 is the GTIN's first digit (0) moved in front of the item reference (12345), the GTIN's check digit (3) is dropped, and 400 is the serial. That's why the encoder asks how many digits the company prefix has: GS1 says the other forms keep the prefix apart, and if you issued the GTIN, you know the length. In the tag URI, the 0 before the prefix is the filter value, which GS1 explains helps a reader pick one pallet tag out of the 2,401 tags on a pallet of 100 cases of 24 items. It isn't part of the item's identity.
SGTIN-96 and SGTIN-198
GS1's FAQ: an SGTIN's serial can be up to 20 letters and digits, but in the 96-bit encoding the serial must be all numeric, with no leading zeros, and within a range. The 96-bit choice exists because, until recently, 96 bits was the largest memory on an RFID tag; the larger encoding, SGTIN-198, has none of those limits. In GS1's encoder:
| Serial | SGTIN-96? |
|---|---|
| 400 | Yes |
| 274877906943 | Yes, the largest that fits in 96 bits |
| 274877906944 | No: it needs 97 bits |
| A0400 | No: only SGTIN-198, or the newer SGTIN+ forms |
GS1's FAQ rules out a leading zero, so 0400 is a no too. So when a buyer asks for SGTIN-96, number each GTIN's items 1, 2, 3 and on, with no zeros in front and no letters.
One serial, once
GS1 says an EPC identifies one physical object, and every physical object can have a unique EPC. Two items carrying the same GTIN and serial are two objects with one identity, so a serial is used once for each GTIN. The same serial on two different GTINs is two different SGTINs. A tag reprinted after a jam, with the serial it already used, is where a repeat creeps in.
An example: the candles
A made-up maker of soy candles and reed diffusers in Asheville was asked by a gift shop chain for an RFID tag on every candle and diffuser, encoded as SGTIN-96, with no serial used twice. Their first week's tags, through the sheet:
| Product | GTIN | Serial | Fits SGTIN-96? | Check |
|---|---|---|---|---|
| Soy candle, cedar | 09521234123453 | 400 | Yes | Serial used twice for this GTIN |
| Soy candle, cedar | 09521234123453 | 401 | Yes | OK |
| Soy candle, cedar | 09521234123453 | 400 | Yes | Serial used twice for this GTIN |
| Reed diffuser | 09521234123460 | 0007 | No: use SGTIN-198 | OK |
| Reed diffuser | 09521234123460 | RD-0008 | No: use SGTIN-198 | OK |
| Candle tin | 09521234123478 | 1 | Yes | GTIN check digit is wrong |
A jammed tag had been reprinted as 400, the diffusers' serials had a leading zero and letters, and the candle tin's GTIN had been typed with a wrong last digit: its check digit is 7. The maker restarted the diffusers at 1, fixed the tin's GTIN, and gave the reprinted candle 402. The lot stayed on each row, since that's what a recall would ask for: see what is lot tracking. More on tags against barcodes is in RFID vs barcode.
Get the sheet
Download the SGTIN serial number log. One row for each tagged item: the date, the product, its GTIN, the serial and the lot. You type your GS1 Company Prefix's length once, on the Settings sheet. The sheet writes each item's GS1 Digital Link and EPC pure identity URI, says whether the serial fits SGTIN-96, and flags a GTIN that isn't 14 digits or has the wrong check digit, a serial over 20 characters, and a serial used twice for the same GTIN. A made-up week of candles is filled in. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.
Where this stops working
The log keeps serials unique and says which fit a 96-bit tag. It doesn't encode or print the tags, which is the tag printer's software, and it holds one row for every item, which grows fast. It knows the lot only if someone types it, and it can't say which customer got serial 401: a recall asks that of the lot.
How TaroStack does it
TaroStack doesn't encode RFID tags or keep serial numbers. It works at the lot, the level between a GTIN and an SGTIN.
A lot label carries the item's GTIN as (01), the use-by date as (17) and the lot as (10), in a GS1-128 barcode, when the item has a 14-digit GTIN. Scanning a supplier's GS1-128 case label at receiving fills in its lot and use-by date. TaroStack doesn't issue barcodes or GTINs: those come from GS1.
Each delivery comes in as a lot from a named supplier, with the supplier's lot code and its dates. Each recipe lists its ingredients, and each batch records which lots it used, automatically. One report walks any lot to the batches it went into and the customers who got them.
| The job | Label software and a sheet | In TaroStack |
|---|---|---|
| The GTIN and lot on a case label | Typed into the label software | (01), (17) and (10) on the lot label |
| A supplier's lot at receiving | Copied off the case by hand | Scanned from its GS1-128 label |
| Which batches used a lot | Production notes | Lots recorded on each batch |
| Who got a lot | The orders, one by one | One report, lot to customer |
Stock, lots and delivery notes are on every plan, from $9.99 a month. The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.
