Barcode Types

Can a Barcode Tell You the Expiration Date or Lot Number?

Learn when a barcode can carry an expiration date or lot number, and how to check the package and the source of a lookup result.

Share
Table of contents

Sometimes. A standard retail UPC or EAN typically identifies the product; it does not itself contain the expiration date of your particular package. Other barcodes, including GS1 DataMatrix and GS1-128, can carry an expiration date or lot number alongside a product identifier when those fields are included. A barcode’s shape alone does not tell you which data is present. [1]

Start with the date printed on the package. If a scanner or app shows a date, find out whether it decoded that date from the symbol, read printed text, or looked it up in a separate record. Confirm that the information refers to your specific package or lot before relying on it.

Three places a date can come from

What you see Where the information comes from What to check
Data decoded from a barcode A field actually encoded in that symbol Which field is it, and does it identify the right product and lot?
A date printed on the package Text placed on the physical item or its packaging Read the label and check what the date is called.
A date shown after a lookup A database or a record associated with a scan Ask who supplied it, how it was matched to this lot, and when it was updated.

An app can identify a product from a UPC and still need a date entered separately or obtained from another source. A product-level match alone does not establish the date of an individual package. A barcode scan also does not establish that a product is authentic, has been stored correctly, or is safe to use.

What can be encoded?

GS1 defines Application Identifiers (AIs) that label the meaning of data in compatible barcode formats. These are three useful fields: [2][3][4]

AI shown in human-readable text Meaning Example data format
(10) Batch or lot number Variable-length text
(15) Best-before date YYMMDD
(17) Expiration date YYMMDD

A lot number identifies a batch; it is not automatically a date. A best-before date and an expiration date are different data fields. For example, GS1’s retail guideline illustrates a GS1 DataMatrix containing (17)271231 and (10)7654321D: in that example, the first field denotes an expiration date of December 31, 2027, and the second denotes the lot. The fields shown here are an excerpt of GS1’s illustrative data, not a barcode we generated or scanned. [5]

A GS1-aware scanner or application may display the fields in a different format from the text above. Parentheses help people read the AIs; do not assume that every raw scanner output will display them. If the result is unclear, use the system’s documentation or ask the organization responsible for the label. Avoid guessing field boundaries from an unparsed string.

How to check your item

  1. Inspect the physical package. Look for a date and its label, such as “EXP” or “best before,” and a separate lot or batch marking. Packaging layouts vary; if the mark is missing or illegible, don’t invent one.
  2. Identify what was scanned. A normal UPC/EAN scan may provide only a product identifier. If the package also has a GS1 DataMatrix or another data-rich symbol, use a compatible reader and check which fields are actually returned. [1]
  3. Match the record to the item. Compare the product and lot on the package with the decoded fields or the supplier’s record. A product name from a general catalog is useful identification, but it does not by itself match a batch-specific date.
  4. Resolve disagreement before relying on it. If the printed date, decoded data, and database differ, keep the item separate and ask the manufacturer, supplier, or responsible inventory team to verify the lot and the source of each value. Don’t silently choose the latest or earliest date.
  5. Keep the source with your record. If you track stock, record the date type, lot, where the value came from, and when it was checked. This makes a later correction easier to trace.

Does the date prove the item is safe?

No barcode or date alone proves that an item was stored and handled safely. Date labels also have different meanings. For example, USDA explains that a “best if used by” date on the foods it discusses concerns best flavor or quality; storage and handling matter, and infant formula has a specific exception. Follow the manufacturer’s instructions and the relevant official guidance for the product in question. [6]

References

[1] GS1. Which barcodes are used to represent GTINs? https://support.gs1.org/support/solutions/articles/43000734104-which-barcodes-are-used-to-represent-gtins-

[2] GS1. GS1 Application Identifier 10: Batch or lot number. https://ref.gs1.org/ai/10

[3] GS1. GS1 Application Identifier 15: Best before date. https://ref.gs1.org/ai/15

[4] GS1. GS1 Application Identifier 17: Expiration date. https://ref.gs1.org/ai/17

[5] GS1. 2D Barcodes at Retail Point-of-Sale Implementation Guideline, examples of GS1 DataMatrix data. https://ref.gs1.org/guidelines/2d-in-retail/1.0.0/

[6] USDA Food Safety and Inspection Service. Can I keep meat or poultry that has a use by date in my refrigerator until the use by date? https://ask.fsis.usda.gov/article/Can-I-keep-meat-or-poultry-that-has-a-use-by-date-in-my-refrigerator-until-the-use-by-date