GS1-128

InboundGlossary
Definition

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

Frequently asked questions

Short, direct answers to the questions warehouse teams ask most.

What is the difference between GS1-128 and a UPC or EAN?

A UPC or EAN carries one thing, the product's GTIN, and is designed for checkout. GS1-128 is designed for logistics and can carry the GTIN plus lot, expiry, serial, weight or an SSCC in one barcode. Retail units usually carry a UPC or EAN, while cases and pallets carry GS1-128 so warehouses can capture traceability data on receipt.

Why does my scanner read a GS1-128 barcode as one long number?

The scanner is probably not transmitting the FNC1 marker or the group separator between variable fields, so the software receives one undivided string. Check your scanner's configuration guide for a GS1 or AIM identifier setting and for group separator transmission. Test with a label that has a lot followed by another field.

Your next warehouse move starts here.

Create your own workspace for free, or explore a stocked demo without an account.

Start freeTry the live demo — no signupFree during open beta. No card needed.