GS1-128
GS1-128 is a linear barcode standard that encodes product and logistics data using GS1 application identifiers, such as GTIN, lot, expiry date, serial number and SSCC. It is printed on cases and pallet labels so a receiver can capture several fields in one scan instead of typing them.
Free during open beta. No card. No sales call.
How GS1-128 application identifiers work
A GS1-128 barcode is a string of fields. Each field starts with an application identifier (AI), a two to four digit prefix that says what follows and how long it is. The human-readable line under the barcode shows AIs in parentheses to make it easier to read, but the parentheses are not encoded.
For example, a case of olive oil might carry (01)10629000000123(17)261130(10)LOT-0826. One scan tells the receiver the case GTIN, an expiry date of 30 November 2026 and lot LOT-0826.
Common application identifiers
- (00) SSCC: the 18-digit serial number of a pallet or carton. See SSCC.
- (01) GTIN: the 14-digit trade item number of the product or case.
- (10) Batch or lot: up to 20 characters.
- (17) Expiry date: YYMMDD. A day of 00 means the last day of the month.
- (21) Serial number: up to 20 characters.
- (37) Count: the number of trade items in a logistics unit.
- (310n) Net weight in kilograms, where n is the number of decimal places.
Fixed vs variable-length fields
Some AIs have a fixed length, like GTIN at 14 digits and expiry at 6. Others, like lot and serial, are variable. When a variable-length field is followed by another field, the barcode inserts a function character (FNC1) as a separator so the scanner knows where the lot ends. Good label design puts fixed-length fields first and one variable-length field last, which keeps the barcode shorter.
When scanning into software through a keyboard-wedge scanner, the scanner must be set to transmit that separator, usually as the ASCII group separator character. If it is stripped, the software can't split the lot from the serial.
GS1-128 vs Code 128
GS1-128 is built on the Code 128 symbology but starts with an FNC1 character that marks it as GS1 data. A plain Code 128 barcode that happens to contain 01... is not GS1-128, and a parser won't treat it as a GTIN. Internal labels such as locations and license plates usually use plain Code 128.
How NextStock handles GS1-128
NextStock parses GS1-128 and GS1 DataMatrix barcodes at receiving, pulling GTIN, lot, expiry and serial out of a single scan so receivers don't retype them. For outbound freight, it prints GS1 SSCC pallet labels, which are GS1-128 barcodes with AI (00). See receiving and putaway and lot and expiry tracking.
Part of the NextStock warehouse glossary. Browse the full glossary