A lot code is an identifier that connects a group of products to its production and traceability records. To specify it for packaging, define the lot, choose a readable location on the finished pack, and check that the marking survives the handling it will encounter.
Approve the code as part of the finished package: its characters must match the intended production group, remain accessible after forming and closing, and stay legible through the specified distribution and use conditions. A crisp mark at the printer is only the starting point. Use the content table and acceptance checks below to turn those requirements into an instruction that production, quality and packaging teams can share.
- Content: the approved identifier resolves to the right product and lot.
- Placement: the complete code is visible at the required reading position.
- Durability: the identifier remains readable after relevant contact and exposure.
What should the lot number format contain?
Define the production group first, then choose a lot number format that identifies it unambiguously in your records. The FDA’s Traceability Lot Code guidance describes a code that uniquely identifies a traceability lot within the source’s records and connects it to other traceability information. That food-traceability model illustrates the essential relationship: the printed identifier must lead to the intended records.
Decide which information belongs in the visible string and which belongs in the associated record. A compact assigned identifier can provide the lookup; printing every production detail is unnecessary when the record supplies it reliably.
| Specification item | Decision to record | Approval check |
|---|---|---|
| Lot boundary | Conditions that start and end a lot | Production can identify when a new code is needed |
| Printed identifier | Exact string, permitted characters, separators and letter case | Printed characters match the approved message |
| Production fields | Date, shift or line fields used by your lot rule | Each field has a documented meaning |
| Product association | Product identity used together with the lot code | Lookup returns the intended product and production group |
| Record connection | Where the code resolves to production and traceability details | Quality can retrieve the required record from a finished pack |
| Changeover and rollover | Who approves changes and what triggers them | New product, lot or shift changes follow the agreed rule |
The Canadian Food Inspection Agency’s What to consider when selecting a lot code gives production day, shift and line as possible lot-defining conditions. Its day-and-shift example, 20200131s2, represents 31 January 2020 and shift s2. Use the meaning assigned by the producer when interpreting a code; the same arrangement of characters can have a different meaning in another system.
Keep lot identity and date meaning clear
A lot identifies a production group; a best-before date communicates a date-related product condition. CFIA guidance allows a date to serve both purposes when it identifies the lot and meets the applicable date-label requirements. In the package layout and production instruction, make each field’s purpose explicit so a date is not mistaken for the complete lot identifier.
For machine-readable data, GS1 Ireland’s Application Identifiers reference separates these meanings: AI (10) is the batch/lot field, allowing 1–20 alphanumeric characters, while AI (15) identifies best-before data. That character limit belongs to the GS1 field. Check the selected data specification when transferring the approved lot string into a barcode.
Where should the lot code go?
Choose the location on a formed, filled and closed pack. A clear rectangle on flat artwork can become a fold, a curved surface or a covered area after packaging.
Mark the intended face, orientation and print area on a package drawing, then compare it with the physical pack. Keep the message clear of seams, creases, overlabels and areas that are hidden during normal reading. Rotate curved packs through the expected viewing positions; check whether glare or a change in background makes characters difficult to distinguish.
For Canadian food labels, CFIA discusses top, bottom or side placement and emphasizes prominence, contrast and readability under customary purchase and use conditions. It gives at least 1.6 mm character height as a best practice. Treat that as Canadian food-label guidance; approve your actual character size at the required viewing distance and under the applicable product and market rules.
Record human viewing distance separately from camera or scanner working distance. Human recognition, optical character recognition and barcode decoding use different reading setups. If an operator can read the pack at a bench but the installed camera cannot return the correct data, the machine-reading requirement remains unmet.
How durable must the lot code be?
Specify durability against the package’s actual journey: early conveyor contact, packing, transport, storage and use. Record the relevant exposure and the condition in which the code must still be read.
Check the first contact after printing
Locate the first belt, guide, neighbouring pack or packing operation that can touch the marked area. Measure the elapsed time from marking to that contact. For a steady conveyor, the available travel time is:
Time before contact [s] = travel distance to contact [m] ÷ conveyor speed [m/s]
The marked surface needs to reach the required handling resistance before that contact occurs. Use the actual elapsed time for indexing or variable-speed motion. If a code smears at the first guide, review the contact location, available time and marking/surface combination together.
Drying, adhesion and resistance to later rubbing are separate observations. A mark can look dry before its resistance to the next contact is adequate. Record the actual substrate, coating, surface condition, marking process and elapsed time for each check; use the substrate adhesion and handling trial guide to organize those observations.
Match conditioning to distribution and use
Include moisture or condensation where the package encounters it, temperature changes where relevant, and rubbing from adjacent packs or handling surfaces. Product spills also belong in the specification when they are a realistic exposure. State the sequence: rubbing a dry pack and rubbing a wet pack are different checks.
ASTM D5264-98(2019) describes comparative laboratory abrasion testing for printed materials on flat substrates, including labels and cartons. Its published scope and significance connect abrasion damage with loss of legibility during shipment, storage, handling and use. Agree the test method and acceptance criterion before comparing samples; use an appropriate method for the actual package geometry.
Keep the material, exposure, elapsed time and reading conditions with the result. Photograph or retain the marked sample before and after the agreed exposure. A comparison is useful when another person can identify what changed and repeat the same check.
What should the finished-pack check prove?
The acceptance record should prove correct identity and readable output at each relevant stage. Start with an approved message and retained reference pack, then use the same expected string for the handling and downstream reading checks.
| Check | Conditions to specify | Evidence for acceptance |
|---|---|---|
| Content | Approved lot string, product and lookup rule | Printed identifier matches the intended lot and resolves to its records |
| Position | Finished face, orientation, print area, background and viewing setup | Every required character remains accessible and distinguishable after closure |
| First contact | Actual marked surface, elapsed time and contact event | Code remains legible after the first relevant handling step |
| Distribution and use | Relevant rubbing, moisture, temperature and exposure sequence | Identifier remains readable after the agreed conditioning |
| Machine reading, where used | Expected data and installed reading conditions | Downstream system returns the correct required data |
Define who can release a pack, how failed packs are held, and what change requires another approval. Recheck when a change affects the marking surface, code position, message or handling conditions. Keep the acceptance record with the approved layout and production instruction so the next changeover starts from the same requirements.
Use the batch coding machine inspection guide for the OCR, vision and barcode-verification handoff. With the message, location and durability requirements defined, compare packaging coding machines against the actual package and line. Bring the substrate or finished sample, line speed, downstream reading distance and handling exposures into that discussion.



