Skip to content
GUIDE · CODES

How to read GTIN, lot and expiry in a GS1 code

What (01), (10) and (17) mean in the code on a box, how to read the expiry date and what to do with day “00”.

Content updated on November 9, 2026 · English version published on November 9, 2026 · Written by the Trazo team

Many products that reach a warehouse —food, beverages, cosmetics, consumer goods, cleaning products— carry a GS1-128 code (the long barcode) or a GS1 DataMatrix (the little square of dots). Inside that code there are usually three pieces of data you care about: which product it is, which lot it comes from and when it expires. This guide explains how they are written, so you can read them by eye when you need to.

Everything below is based on the GS1 General Specifications (release 26.0, January 2026) and the official list of GS1 Application Identifiers. Codes are assigned by the GS1 member organization in each country; in Argentina, that is GS1 Argentina (site in Spanish).

Application identifiers

A GS1 code isn't a single loose number: it's a string of data, and each piece of data starts with an application identifier (AI) of two or more digits that says what comes next. In the text printed under the code, the AI appears in parentheses.

AIWhat it isFormat
(01)GTIN: the product code14 digits, fixed length
(10)Batch or lot numberUp to 20 alphanumeric characters, variable length
(17)Expiry date6 digits: YYMMDD (year, month, day)

An example, piece by piece

Say the text under the barcode on a box reads:

(01)07791234567898(17)261130(10)AB1234

The data in this example is made up to explain the format; it doesn't belong to any real product.

The day “00” trap

Sometimes the expiry date reads something like (17)270600. There is no day zero: according to GS1, when the day doesn't need to be given, it's filled in with two zeros and read as the last day of that month, taking leap years into account. So 270600 is June 30, 2027 and 280200 is February 29, 2028.

One detail worth knowing: the GS1 specifications state that, from January 1, 2025, in some sectors the day must not be given as “00” but as the actual day (for example, 31). You'll still come across boxes with “00” produced before then, so your system has to understand both forms.

And another: the year comes with two digits. GS1 defines a rule for working out the century that allows dates up to 49 years in the past and 50 years in the future; in practice, “26” means 2026.

Why the lot usually goes last

The GTIN and the expiry date have a fixed length: the reader knows where they end. The lot doesn't: it can be 1 to 20 characters long. When a variable-length field isn't the last one in the code, GS1 requires an invisible separator (the FNC1 character, or “GS”) to mark where it ends. That's why many manufacturers put the lot last: it saves them the separator.

If the lot is in the middle, the printed text still shows it in parentheses, but what the scanner sends to the computer includes that separator. A system that doesn't understand it can glue the lot to the next field and give you a lot that doesn't exist.

GS1-128 and DataMatrix carry the same data

GS1-128 is a linear barcode; GS1 DataMatrix is a two-dimensional code that fits in a much smaller space. What changes is how it's drawn, not the data: both use the same application identifiers. When a scanner reads them, it also usually adds a technical prefix that identifies the symbology, such as ]C1 for GS1-128 or ]d2 for GS1 DataMatrix. That prefix isn't part of the product data and has to be dropped before reading the fields.

Common mistakes when reading it by hand

How Trazo reads it

In Trazo you scan the box with your phone camera or a handheld scanner, and the system recognizes the GTIN, the lot and the expiry date in GS1-128 and DataMatrix codes: it drops the symbology prefix, honors the separator after variable-length fields and reads day “00” as the end of the month. The lot goes into stock with its expiry date, without typing, and is sorted so that whatever expires first ships first (what FEFO is).

Frequently asked questions

What do (01), (10) and (17) mean in a barcode?

They are GS1 application identifiers. (01) gives the product's GTIN, (10) the batch or lot number and (17) the expiry date in YYMMDD format.

What does an expiry date with day 00 mean?

According to GS1, day 00 is read as the last day of the month given. For example, 270600 is June 30, 2027. In some sectors, GS1 states that the actual day must be given from January 1, 2025.

Does a DataMatrix carry different data from a linear barcode?

Not necessarily. GS1-128 and GS1 DataMatrix use the same application identifiers; what changes is the shape of the symbol, not the structure of the data.

Scan the box and you're done

Trazo reads GS1-128, DataMatrix and Trazo's own QR codes with your phone camera or a handheld scanner, and the lot goes in with its expiry date.