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”.
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.
| AI | What it is | Format |
|---|---|---|
(01) | GTIN: the product code | 14 digits, fixed length |
(10) | Batch or lot number | Up to 20 alphanumeric characters, variable length |
(17) | Expiry date | 6 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
(01)07791234567898→ the product's GTIN is 07791234567898. It's always 14 digits; if the original code had 13 (an EAN-13 retail barcode), it's padded with a leading zero. The last digit is a check digit, calculated from the other 13.(17)261130→ it expires on November 30, 2026. Read it in pairs: 26 is the year, 11 the month, 30 the day.(10)AB1234→ the lot is 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
- Reading the expiry date as day/month/year. It's the other way round: year, month, day.
- Entering the whole barcode as if it were the GTIN. The GTIN is only the 14 digits that follow (01).
- Mistaking other AIs for the expiry date:
(11)is the production date and(15)is the best-before date. - Forgetting the serial number
(21)when there is one: for products traced unit by unit, it identifies each unit.
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.