Can you check a product's expiry date from its barcode?
Normal EAN and UPC barcodes do not hold an expiry date. Which barcodes do, such as GS1 DataMatrix on medicines, and how to read them.
No, the standard barcode on most packaging cannot tell you the expiry date. An EAN-13 or UPC-A only holds the product number, which is the same for every unit of that product, whatever its batch or date. Some other barcodes do carry an expiry date: GS1 DataMatrix on medicines, GS1-128 on cartons, and GS1 DataBar Expanded on some fresh food. Those store the date in a field marked (17).
Why EAN and UPC have no date
Every jar of the same product carries the same EAN, whether it was made last week or last year. The code identifies the product type, not the individual unit, so there is nowhere to put a date. The date you need is the one printed in text on the pack, usually near the barcode or on the lid.
Barcodes that do include dates
GS1 barcodes can hold extra data fields called Application Identifiers (AIs). Each starts with a number in brackets:
| AI | Meaning | Format |
|---|---|---|
(01) |
GTIN, the product number | 14 digits |
(10) |
Batch or lot number | Up to 20 characters |
(11) |
Production date | YYMMDD |
(15) |
Best before date | YYMMDD |
(17) |
Expiry date | YYMMDD |
(21) |
Serial number | Up to 20 characters |
For example, (01)09506000134352(17)271231(10)AB123 means: product 09506000134352, expires 31 December 2027, batch AB123.
Where you find them
- Medicines: many countries require a GS1 DataMatrix on medicine packs with the product code, batch, expiry, and a serial number. It is the small square code on the box.
- Medical devices and lab supplies: GS1 DataMatrix or GS1-128.
- Cartons and pallets: GS1-128 labels often include batch and best-before dates.
- Fresh food: some retailers use GS1 DataBar Expanded with weight, price, and date.
How to read the date
- Scan the square DataMatrix or the long GS1-128 code with the barcode scanner in All mode.
- Look for
17(expiry) or15(best before) followed by six digits. - Read them as year, month, day:
271231is 31 December 2027.
If you only see 13 digits and no brackets, you scanned the plain EAN, which has no date.
Do not rely on scanning alone
Always check the printed date. If the printed date and the barcode date differ, ask the seller or pharmacist. To check if a product is genuine, see how to check if a product is original.