MaraPack Services logo
Menu

What Is a Lot Code? Lot, Date and Batch Codes Explained for Manufacturers

What is a lot code? It is the identifier a plant prints on a product so that, if something goes wrong, it can say exactly which production run the product came from. A date code says when. Together they let a packer find a problem and tell a customer which cases to pull.

This page is for the people who put those codes on packs: plant managers, quality and packaging engineers. If you are trying to decode a code on a bottle of perfume or a jar of skincare, this is not that page; what follows is the plant floor meaning.

If you need to print codes on cases or packs and want a second opinion on the equipment, book an equipment audit and we will look at the pack, the speed and the data source.


What is a lot code?

A lot code is a number or alphanumeric string that identifies one production run, a lot, of a product. It is chosen by the manufacturer, printed on the pack or case, and recorded in the plant's records, so that every unit from that run can be traced forward to customers and back to the ingredients.

The word "lot" simply means a defined quantity made under the same conditions. A plant decides how big that is: a shift, a line run, a day, a harvested block of fruit. The smaller the lot, the narrower a recall can be, which is why lot design is a business decision as much as a coding one.

There is no single mandated format. The code only has to be unique within your own records and stay the same as the product moves through the supply chain. Some customers and industry bodies specify a format, and we cover those below.


What is the difference between a lot code, a batch code and a date code?

A lot code and a batch code mean the same thing in most plants: the identifier of one production run. A date code is the date printed on the pack, such as a best before, use by, packed on or expiry date. Many plants combine a date and a lot in one printed line.

The terms vary by industry. Food and produce packers say lot, pharmaceutical and chemical plants often say batch, and the two are interchangeable on a plant floor. Date codes come in several kinds:

The U.S. Department of Agriculture covers product dating, including closed dating, on its Food Product Dating page; read it for the current wording. The plant floor purpose of a closed code is tracking: it lets a manufacturer rotate stock and locate product in a recall.


What goes into a lot code?

A lot code usually combines a few elements: the plant or line, the date or day of the year, and a sequence or shift. The code should be unique, short enough to print legibly at line speed, and built so that one lot never spans a date boundary the recall would need to separate.

Common ingredients, which a plant mixes to suit itself:

Two points from industry guidance are worth checking before you design a format. The GS1 lot number carried in a GS1-128 barcode is the batch or lot field identified as AI (10), and it has a maximum length and a restricted character set, so confirm both in the current GS1 specification. And the Produce Traceability Initiative (PTI) publishes guidance on how to scope a lot and how to handle a lot that crosses a date boundary. Our PTI guide sets out the lot code rules that catch packers out.

Keep the format plain, so a night shift operator can type it correctly.


What do regulators and retailers expect from a lot code?

Expectations come from three places: FDA's Food Traceability Rule for certain foods, retailers such as Walmart that require lot and date data from suppliers, and industry standards such as GS1. None of them is a general law that every product must carry a printed lot code, so check which apply to you.

FDA. The FDA Food Traceability Rule requires firms handling foods on the Food Traceability List to assign and record traceability lot codes. FDA's rule page defines a traceability lot code as a descriptor, often alphanumeric, used to uniquely identify a traceability lot within the records of the firm that assigned it. The same page reports that FDA proposed extending the compliance date by 30 months to July 20, 2028, and that Congress directed FDA not to enforce the rule before that date. Whether the code must appear on the label or packaging is a question for FDA's rule and your regulatory team; PTI discusses it in its FSMA 204 Implementation Guidance. The rule covers listed foods only, and many common fruits are not on the list, so confirm yours.

Date labels. The USDA's Food Product Dating page is the starting point for federal dating rules, and we do not paraphrase it here. A date on your pack may also be required by a customer, a state or a contract, so ask.

Retailers. Walmart's supplier food traceability page says it expects food suppliers to share lot or batch codes, date codes and the source where the lot or batch code was generated. It also says pallets containing food must be labeled with an SSCC-18 barcode, cases containing food with barcodes that can transmit traceability data, such as GS1-128, and that products on the FDA list were expected to meet those requirements by August 1, 2025. Other retailers set their own rules, and their supplier manual governs.

Industry standards. GS1 US's case code labeling guidance is the reference for the GS1-128 case label. Our guide to GS1-128 and SSCC pallet labels explains the barcode side.

We are an equipment supplier, not a regulator and not your legal advisor. Your quality or regulatory team and your customer's supplier manual decide what is required.


How are lot codes and date codes printed on cases and packs?

Lot and date codes are printed directly onto the pack by an inline coder, or onto a label that is applied to the pack. The main direct methods are thermal inkjet, continuous inkjet, thermal transfer overprinting on film and hot foil. The right one depends on the surface, the speed and how far the printhead can sit from the product.

Whichever you use, three things decide whether the code is still readable an hour later: the substrate (which decides the ink), how consistently the pack is presented to the head, and a reliable trigger. Test on your actual pack.


Should you print the code directly or apply a label?

Print the code directly when the only variable data is a date, lot, batch or shift and the surface takes a clean mark. Apply a label when the data includes a barcode that must scan to a stated grade, when the surface will not take a good mark, or when a customer specification requires a label.

The deciding question is who reads the code. A person or a plant scanner reading a date and lot is well served by a direct code. A retailer's receiving scanner reading a GS1-128 case barcode is a different job, and GS1 US's case code guidance states that white labels are proven to work best, with direct printing onto corrugate having been known to cause readability issues. That is why produce case labels and pallet labels usually come from a print and apply system. Our print and apply labeling systems cover that route, and the PTI labeling systems page covers the produce case label.

Many plants end up with both: a coder on the retail pack and a labeler on the case.


How do you keep the lot code accurate on a running line?

A lot code is accurate when the printer changes at the right moment and every pack carries the lot it was made in. That depends on where the data comes from, how the change is made and who checks it, so decide those three things before choosing equipment.

Where we can help is the equipment: which coder, which ink, where it mounts, and how the trigger and data connect. We cannot tell you what your regulator wants, only what the equipment can do.


Frequently asked questions

What is a lot code on food packaging? It is the identifier a manufacturer assigns to one production run and prints on the pack, so the run can be traced if a problem is found. It is unique within the manufacturer's records and has no single mandated format.

What is the difference between a lot number and a batch number? In most plants none. Lot and batch both identify one production run. Food and produce packers tend to say lot, and pharmaceutical and chemical plants tend to say batch. Use whichever your customers and regulators use.

What is a date code? A date code is a printed date such as a packed on, best before, use by or expiry date. A coded date is a manufacturer's code that stands for a production date and time, used for tracking and stock rotation.

Does every product need a lot code? Not by a single universal rule. FDA's traceability rule requires traceability lot codes for foods on its list. Retailers and customers often ask for lot and date data, so check your customer's requirements.

Is a date required on food packaging? Federal dating rules are covered on USDA's Food Product Dating page, which we do not paraphrase. Customers, states and contracts may also require one, so confirm before you decide.

How long can a GS1 lot number be? The batch or lot field in a GS1-128 barcode is identified as AI (10). Check its maximum length and permitted characters in the current GS1 specification; our PTI guide covers the produce case label rules.

Can a thermal inkjet printer print a lot code? Yes. Thermal inkjet is widely used for dates and lot codes on cases, cartons, trays and bags that can be presented a few millimeters from the printhead. Barcodes held to a stated grade are usually safer on a printed label.

What if I run continuous inkjet today? A working, maintained continuous inkjet printer is not a problem to solve. If it is costing more than it should, our CIJ printer replacement guide covers when to switch and when to keep it.

Can you help specify the coder? Yes. We look at the pack, the substrate, the speed and the data source, and tell you which coder or label route suits, including when the answer is a technology we do not sell.


Get the code onto the pack and keep it readable

Knowing what a lot code should say is the easy half. The harder half is a mark that survives the line, the cold room and the pallet. We will walk the line with you, look at the substrate and the data source, and tell you whether you need a coder, a label or both. Request an equipment audit, or call 253-709-5566.

Walk the line with us before pack season

We look at your labeling and coding stations on site, find the weak points, and tell you what to fix, rebuild or replace. Wherever you are in the US, tell us your state and we will route you to the right people.