CodeBox Hub
FREE

GS1-128: One Barcode, Several Data Fields

How GS1-128 packs GTIN, batch, dates and SSCC into one Code 128 symbol: the Application Identifier table, parsing rules, and what to print on a carton.

# GS1-128: One Barcode, Several Data Fields

GS1-128 is the GS1 profile of Code 128: the same symbol and the same geometry, but the payload is organised as Application Identifiers (AIs), so one strip can carry a product code, a batch number, a date and a pallet serial at the same time. It is the code you find on corrugated cartons, pallet labels and carrier paperwork, while the retail point of sale still runs on the single-number EAN-13.

Older documentation calls the same symbology EAN-128 or UCC-128. Those were the European and North American names; when UCC and EAN International merged into GS1, the two names collapsed into GS1-128. If a legacy spec sheet says EAN-128, print GS1-128 and nothing changes in your scanner settings.

What the Symbol Carries

A GS1-128 symbol begins with the non-data character FNC1 in the first position. That character is what tells a reader "the payload is a chain of GS1 Application Identifiers", as defined in ISO/IEC 15418 and maintained in the GS1 General Specifications. Everything after it is a repeating pattern: an AI, then its value. Fixed-length AIs need no separator. Variable-length fields are terminated by another FNC1 or by the end of the symbol, which is why truncating a payload silently loses every field that follows it.

AIFieldFormatExample
00Serial Shipping Container Code (SSCC)18 digits, fixed00376123450000001239
01GTIN of the trade item14 digits, fixed0104012345678903
10Batch or lot numberup to 20 characters10L4F21
11Date of productionYYMMDD11260115
15Best before dateYYMMDD15260731
17Expiration dateYYMMDD17260731
30Number of units containedup to 8 digits3096
410Ship-to party (GLN)8 digits, fixed41054123450

The values above are illustrative. A real GTIN and a real SSCC both start with a GS1 Company Prefix that your company licenses from its local GS1 member organisation, and both end with a modulo-10 check digit — the same 3-1 weighting used on the EAN-13 check digit, extended over the full 14- or 18-digit string. The GTIN guide covers how the prefix, the reference and the check digit fit together.

The SSCC is the field that makes a pallet addressable as one object. It is always 18 digits in a fixed order: extension digit, GS1 Company Prefix, serial reference, check digit. Because the extension digit is part of the SSCC and not part of the company prefix, one prefix yields ten times as many pallet numbers as it does for other identifiers.

Print rules are the Code 128 rules: narrowest element at 0.33 mm or wider, a quiet zone at least 10 modules wide on each side, and a mandatory mod-103 check symbol that the generator adds for you. On corrugated board the barcode also needs room to survive the substrate, so most logistics specs ask for a taller symbol than a retail label would need.

GS1-128, Code 128 and EAN-13 Side by Side

PropertyGS1-128Code 128EAN-13
Governing documentGS1 General Specifications, ISO/IEC 15417 and 15418ISO/IEC 15417ISO/IEC 15420
Payload meaningApplication Identifier plus valuefree stringone GTIN
Fields per symbolseveraloneone
Checkmod-103 symbol, plus mod-10 inside GTIN and SSCCmod-103 symbolbuilt-in mod-10
GS1 Company Prefix requiredyes, for meaningful identifiersnoyes
Typical placecarton, pallet, shipping unitinternal IDs, lab tickets, invoicesretail shelf

Plain Code 128 is still the right tool when the data is an internal reference that never leaves your four walls: no licence, no AI grammar, shorter symbol. GS1-128 becomes necessary the moment a trading partner has to parse what you printed. For choosing between symbologies at the label level, EAN-13 versus Code 128 and the symbology overview work through the trade-offs; for print size and layout, the label maker handles the human-readable line next to the bars.

FAQ

Is GS1-128 the same thing as Code 128?

The symbol is identical. GS1-128 is Code 128 whose payload starts with FNC1 and is then read as Application Identifiers, so a GS1-128 label is a set of data fields rather than one opaque string.

What happened to EAN-128 and UCC-128?

They were regional names for the same symbology. After UCC and EAN International merged into GS1, both names were replaced by GS1-128, and the specifications were folded into the GS1 General Specifications.

What is an Application Identifier?

A short numeric prefix, two to four digits, that declares what the following value means and how long it may be. AI 01 introduces a GTIN, AI 17 an expiration date, AI 10 a batch number. The full list lives in the GS1 General Specifications and is searchable in the GS1 Application Identifier browser.

How do I read a GS1-128 barcode?

Any Code 128-capable reader picks up the raw string. Parsing it means walking the string two to four characters at a time, matching each AI, then taking the declared number of characters or reading to the next FNC1. Most WMS and retail systems do this automatically when the symbology is set to GS1-128.

Do I need to register with GS1 to print one?

To print a symbol that a partner can trust, yes: the GTIN and SSCC inside it are built on a GS1 Company Prefix you license. For internal-only labels you can use plain Code 128 with any reference you like and skip the licence.

How is the SSCC check digit calculated?

Same modulo-10 algorithm as every GS1 identifier: weight the digits from the right with alternating 3 and 1, sum, take the smallest number that rounds the sum up to a multiple of 10. It is calculated over all 17 preceding digits, including the extension digit.

Should cartons use GS1-128 or a 2D code?

Cartons normally carry GS1-128 because laser scanners and existing dock readers handle it without a camera. On the item itself, a Data Matrix or QR code stores the same fields in far less space, and QR codes for logistics explains where teams combine the two.

Can I generate a GS1-128 barcode online?

Yes: encode the concatenated AI and value string in the Code 128 generator, which adds the mod-103 check symbol. FNC1 positions are handled by tools that offer a GS1-128 mode; where they do not, print the AI string as plain Code 128 and keep it for internal use. For the number itself, start from the barcode generator and pick the symbology your receiver expects.

Keep reading

Contact us