Skip to content

GS1-128 Label: Application Identifiers, Lot and Dates

How a GS1-128 label carries a GTIN, lot and dates: the application identifiers, the YYMMDD date rule, 48 characters, and why the lot goes last.

By Koa Sterling. Product specialist at TaroStack and small business owner. Yes, I am a real human, and I actually sit in front of a computer and write these articles. Reviewed December 2, 2026 · 6 min read

A GS1-128 label carries more than the product number. It's a Code 128 barcode with application identifiers, the two-to-four-digit codes in brackets under the bars that say what each field is: (01) for the GTIN, (17) for a use-by or expiry date, (15) for a best-before date, (10) for the lot. A distributor's receiving team scans one barcode and gets the item, the lot and the date. GS1 Sweden's page gives the limits: 48 data characters in one barcode, and 165 mm long at most, light margins included. GS1's application identifier pages give each field's format: a GTIN is 14 digits, a date is six as YYMMDD, and a lot is up to 20 characters and needs a GTIN beside it. Below are the identifiers a food maker uses, the order they go in, and a sheet that builds the text under a label's bars and checks it. I read GS1's pages on 2026-12-02.

The short version

  • GS1-128 is Code 128 with application identifiers, the codes in brackets that name each field.
  • (01) GTIN, 14 digits. (17) use-by or expiry, (15) best before, (11) production date: YYMMDD.
  • (10) lot: up to 20 characters, and it needs a GTIN in the same barcode.
  • At most 48 data characters and 165 mm long, light margins included.
  • Put the lot last: a field of variable length at the end needs no separator.
  • (00) SSCC identifies a pallet or other shipping unit on a logistics label.
  • TaroStack prints lot labels with (01) GTIN, (17) use-by and (10) lot. More below.

The application identifiers a food maker uses

From GS1's application identifier pages:

AI What it holds Format Needs a separator if not last
(00) SSCC, the number for a pallet or other shipping unit 18 digits No
(01) GTIN, the item or case number 14 digits No
(10) Batch or lot number Up to 20 characters Yes
(11) Production date YYMMDD No
(13) Packaging date YYMMDD No
(15) Best before date YYMMDD No
(17) Expiration (use-by) date YYMMDD No

A lot, best-before or use-by date has to travel with a GTIN: GS1 lists (01) among each one's mandatory associations. A UPC or EAN goes into (01) with zeros in front to make 14 digits; a case's own number is its GTIN-14.

The order

Fixed-length fields go first and the lot goes last. GS1 Sweden's page says a variable-length field such as the lot "should be placed last in the barcode", where it needs no separator (FNC1) to mark its end. A lot in the middle needs one, and the barcode gets longer. So a case label reads:

(01)10614141000019(17)270315(10)BM261203

That's the GTIN, a use-by date of 15 March 2027, and lot BM261203: 34 characters of the 48.

Digits, letters and spaces

GS1 Sweden recommends digits: they take less room in GS1-128 than letters. A lot code can hold letters and some punctuation, but GS1's pattern for (10) has no space in it, so "BM 261203" isn't a valid lot. How to create lot numbers covers a format that scans.

Under the bars

The characters printed under the barcode are the same fields with the identifiers in brackets. GS1 Sweden says they must be at least 3 mm high and readable. A pallet label uses (00) and an SSCC instead, in the GS1 Logistics Label: pallet label template covers that one. For a case with no lot or date to scan, ITF-14 carries the GTIN alone.

An example: the meatball cases

A made-up Utah maker of frozen bison meatballs sold 10 lb cases to distributors. A distributor asked for a GS1-128 label on every case with the GTIN, use-by date and lot, so receiving could scan all three. The maker ran its labels through the sheet:

Case GTIN-14 Use-by Lot Text under the bars Characters First problem
Bison meatballs, 10 lb 10614141000019 2027-03-15 BM261203 (01)10614141000019(17)270315(10)BM261203 34 Nothing
Bison meatballs, 10 lb 10614141000019 2027-03-16 BM 261204 (01)10614141000019(17)270316(10)BM 261204 35 The lot has a space
Bison meatballs, 10 lb 10614141000018 2027-03-17 BM261205 (01)10614141000018(17)270317(10)BM261205 34 The GTIN's check digit doesn't match
Bison meatballs, 10 lb 10614141000019 2027-03-18 BISONMEATBALLS-2612-06 (01)10614141000019(17)270318(10)BISONMEATBALLS-2612-06 48 The lot is over 20 characters

The space had come from typing the lot by hand, and the wrong check digit from copying the GTIN. The maker moved both onto labels printed from its lot records.

Get the sheet

Download the GS1-128 label builder sheet. One row for each label: the GTIN-14, a use-by date, a best-before date and the lot. The sheet checks the GTIN's check digit, builds the text printed under the bars with the identifiers in brackets and the lot last, counts the data characters against 48, and names the first problem. Four made-up rows are 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 sheet builds and checks the text. It doesn't draw the barcode, and it can't grade print quality: label software draws it and a barcode verifier grades it.

How TaroStack does it

TaroStack prints lot labels with a GS1-128 barcode carrying (01) GTIN, (17) use-by and (10) lot when the item has a 14-digit GTIN, and the lot code alone otherwise, with a ZPL file for Zebra printers. The lot and date come from the lot's own record, so nobody types them twice.

Scanning a supplier's GS1-128 case label at receiving fills in its lot and use-by date, and reads a best-before too. Every lot is traced from the supplier's lot to the customers that got it, and a full recall runs with a single click: every affected lot still in stock is held, and each customer gets a notice of their own from your mailbox.

The job Label software alone In TaroStack
The lot and date on a case label Typed in for each print run From the lot's record
A supplier's lot at receiving Copied by hand Read from their GS1-128 label
Which customers got a lot Invoices, by hand One report

TaroStack doesn't issue GTINs or SSCCs: those come from GS1.

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.

Questions people also ask

What is a GS1-128 label?

A label with a GS1-128 barcode: Code 128 with GS1 application identifiers, so one barcode can carry a GTIN with a lot number and dates, or an SSCC on a pallet.

What are the application identifiers for lot and expiry date?

(10) is the batch or lot number, up to 20 characters. (17) is the expiration or use-by date and (15) the best-before date, both as YYMMDD. Each needs a GTIN, (01), in the same barcode.

How many characters can a GS1-128 barcode hold?

GS1 Sweden's page gives 48 data characters in one barcode, and a maximum length of 165 mm including the light margins.

Why does the lot number go last in a GS1-128 barcode?

The lot has no fixed length. Placed last, it needs no FNC1 separator to mark its end, which keeps the barcode shorter.

Sources

  1. GS1 Sweden, Use GS1-128 · read December 2, 2026
  2. GS1, Application Identifier (01) GTIN · read December 2, 2026
  3. GS1, Application Identifier (10) Batch or lot number · read December 2, 2026
  4. GS1, Application Identifier (17) Expiration date · read December 2, 2026
  5. GS1, Application Identifier (15) Best before date · read December 2, 2026
  6. GS1, Application Identifier (00) SSCC · read December 2, 2026

We use AI to help with the research for these articles. Every one is read, checked against its sources and edited by Koa before it's published. Spot a mistake? Tell us and we'll fix it and say so. How we write these.

Let’s get your stack in order.

Get TaroStack

Sign up now for your free 14 day trial. No credit card required.