Skip to content
Technology / GS1 identifiersLast edited 5 December 2026

GS1 Identifiers: GTIN, SSCC, GLN, GIAI, GRAI and Application Identifiers

From aidc.wiki, the free AIDC field guide

GS1 identifiers are the numbers that barcodes and RFID tags carry: one for each product, each shipping unit, each place, and each asset. A company licenses a prefix from GS1, then builds every number from that prefix, so no two companies can issue the same one. The barcode or tag is only the container; these numbers are what trading partners’ systems actually match on.

GS1 issues each member a GS1 Company Prefix, “a unique string of four to twelve digits used to issue GS1 identification keys”[1]. Every key is that prefix, plus a reference the company assigns, plus (for numeric keys) a check digit. A longer prefix leaves fewer digits for references, so it covers fewer items.

Key Identifies Length and format Application Identifier
GTIN A trade item: anything priced, ordered or invoiced 8, 12, 13 or 14 digits (01)
SSCC One logistic unit: a specific pallet, case or parcel 18 digits (00)
GLN A party or location 13 digits (414) for a physical location
GIAI One individual asset Up to 30 alphanumeric characters (8004)
GRAI A type of returnable asset, optionally one specific unit 13 digits plus an optional serial of up to 16 characters (8003)

Sources for the table: definitions from GS1’s GTIN (“priced, ordered or invoiced at any point in the supply chain”), SSCC, GLN and GIAI pages; lengths and AI formats from the GS1 General Specifications. Under AI (8003), a leading “0” that is not part of the GRAI goes in front of it[2].

  • GTIN-12 is carried in a UPC-A barcode and GTIN-13 in an EAN-13[3]. GTIN-8 is for packs too small for EAN-13 and is “individually assigned by GS1 Member Organisations on request”[2].
  • GTIN-14 identifies packaging levels. Indicator digits 1 to 8 mark up to eight levels of packaging above the base item, and indicator 9 is reserved for variable-measure items[4].
  • In a 14-digit field, shorter GTINs get leading zeros, and “the presence or lack of these leading zeroes does not change the GTIN”[4]. 614141000005 and 00614141000005 are the same GTIN.

GS1 uses one check digit method for all fixed-length numeric keys, including GTIN, GLN, SSCC and GRAI[5]. Starting from the digit just left of the check digit and moving left, multiply each digit alternately by 3 and 1. Add the results, then subtract the sum from the nearest equal or higher multiple of ten[6].

Worked example with GS1’s sample GTIN-13 950600013435_[7]:

Digit 9 5 0 6 0 0 0 1 3 4 3 5
Weight 1 3 1 3 1 3 1 3 1 3 1 3
Product 9 15 0 18 0 0 0 3 3 12 3 15

The sum is 78; the next multiple of ten is 80, so the check digit is 2 and the GTIN is 9506000134352. By the arithmetic, the check catches any single wrong digit but not every swap of adjacent digits: swapping a 0 and a 5 leaves it unchanged.

An Application Identifier (AI) is a short prefix that says what the data after it means. GS1 describes AIs as “prefixes used in barcodes and EPC/RFID-tags to define the meaning and format of data attributes”[8]. The common ones, with formats from the GS1 General Specifications, section 3:

AI Meaning Format
(00) SSCC 18 digits
(01) GTIN 14 digits
(10) Batch or lot number Up to 20 characters, variable
(11) Production date YYMMDD
(17) Expiration date YYMMDD
(21) Serial number Up to 20 characters, variable
(414) GLN of a physical location 13 digits

A GS1-128 or GS1 DataMatrix can chain several element strings, for example (01)09506000134352(17)281231(10)A123(21)6789. Variable-length fields such as (10) and (21) need an FNC1 separator if another field follows[9]. The parentheses “are not a part of the GS1 Application Identifier and are only used to aid readability”[4].

GS1 Digital Link writes GS1 keys as a web address. GS1 says the identifiers can still be “decoded by scanning software and passed to the host system without any need for an online connection,” while also being “connected to online information.” The current URI syntax is 1.7.0, from August 2026[10]. The serialized GTIN above becomes https://id.gs1.org/01/09506000134352/21/6789[11]. GS1 says Digital Link is not encoded in 2D barcodes for healthcare, where GS1 DataMatrix with element strings stays the norm[10].

GS1 US licenses prefixes by capacity, the number of items to identify. Published prices are $250 to start and $50 a year for 10 items, $750 and $150 for 100, $2,500 and $500 for 1,000, $6,500 and $1,300 for 10,000, and $10,500 and $2,100 for 100,000[12]. A single GS1 US GTIN costs $30 with no renewal, but it can’t be used for pharmaceuticals, variable-measure products, mixed cases or coupons[13]. Pharmaceutical manufacturers and repackagers may license a prefix that incorporates their FDA NDC labeler code, listed at $2,100 initial and $2,100 annual. Product data stays linked to the company only “as long as you renew your Membership every year”[13].

Key Usual barcode EPC scheme on a RAIN tag EPC header
GTIN (no serial) UPC-A, EAN-13, ITF-14 None: the tag encodings need a serial None
GTIN + serial (21) GS1 DataMatrix, GS1-128 SGTIN-96 or SGTIN-198 0x30 or 0x36
SSCC GS1-128 on the logistic label SSCC-96 0x31
GLN (+ extension) GS1-128 SGLN-96 0x32
GRAI Any AI-capable symbol (GS1-128, GS1 DataMatrix, GS1 QR Code) GRAI-96 0x33
GIAI Any AI-capable symbol GIAI-96 0x34

EPC headers are from TDS 2.3, section 14.2. GS1 lists GS1 DataBar Expanded, GS1-128, GS1 DataMatrix and GS1 QR Code as the symbols that carry AI element strings[4]. The EPC is the RFID form of the same key. TDS gives an EPC binary encoding only to GS1 keys that denote “an individual physical object”; class-level keys such as a plain GTIN get a URI form but no tag encoding[14]. For logistic units, “the SSCC is the only GS1 key that SHALL be used as the identifier,” and a GTIN plus serial number “SHALL NOT replace the SSCC”[4].

SGTIN-96 can only carry numeric serials with no leading zeros, from 0 to 274,877,906,943 (below 2^38). Alphanumeric serials of up to 20 characters need SGTIN-198[15]. The bit layout is on the RFID page.

  • Serials that won’t fit SGTIN-96. A lot-style serial such as A00123 can go in a barcode’s AI (21) but not in a 96-bit EPC[16]. Decide on serial formats before you buy 96-bit tags.
  • Padding mismatches. A system that stores GTIN-12 and GTIN-14 as different strings will report the same product as two items.
  • Using a GTIN where an SSCC belongs. GS1 makes the SSCC the only identifier for a logistic unit, so a pallet label without one breaks the rule a receiver’s system is built on[4].
  • Outgrowing a prefix. Count packaging levels too, since each GTIN-14 uses a number.
  1. Need to sell through retail? License a GS1 Company Prefix sized to your item count times your packaging levels.
  2. Ship pallets or cases to partners who receive by scan? Add SSCCs on a GS1-128 logistic label.
  3. Track your own equipment? Use GIAI for one-off assets and GRAI for pools of returnable containers.
  4. Serializing for a regulation or RFID? Choose a numeric serial under 2^38 if you want SGTIN-96 tags. Otherwise plan for SGTIN-198 and larger EPC memory.
  1. ^ GS1 General Specifications 26.0, 1.2.3.3 · GS1 General Specifications, Release 26.0 (January 2026)
  2. a b GS1 General Specifications, Release 26.0 (January 2026)
  3. ^ GS1 General Specifications, 2.1.3 · GS1 General Specifications, Release 26.0 (January 2026)
  4. a b c d e f GS1 General Specifications · GS1 General Specifications, Release 26.0 (January 2026)
  5. ^ GS1 General Specifications, 7.9.1 · GS1 General Specifications, Release 26.0 (January 2026)
  6. ^ GS1, check digit calculation · GS1, How to calculate a check digit manually
  7. ^ GS1 EPC Tag Data Standard 2.3, Annex E · GS1 EPC Tag Data Standard, Release 2.3 (October 2025)
  8. ^ GS1 Application Identifiers · GS1 Application Identifiers reference
  9. ^ GS1 General Specifications, section 3 · GS1 General Specifications, Release 26.0 (January 2026)
  10. a b GS1 Digital Link · gs1.org
  11. ^ GS1 EPC Tag Data Standard 2.3, Table 14-17 · GS1 EPC Tag Data Standard, Release 2.3 (October 2025)
  12. ^ GS1 US, get started guide · GS1 US, Get started guide and prefix pricing
  13. a b GS1 US, Get started guide and prefix pricing
  14. ^ TDS 2.3, 4.3 · GS1 EPC Tag Data Standard, Release 2.3 (October 2025)
  15. ^ TDS 2.3, 14.6.1 · GS1 EPC Tag Data Standard, Release 2.3 (October 2025)
  16. ^ TDS 2.3 · GS1 EPC Tag Data Standard, Release 2.3 (October 2025)