batchcoding.com.au

Batch coding: lot codes, date marks and how products are coded

Every packaged food carries a small printed code. This guide explains what a lot code is, what the Food Standards Code requires, the difference between use-by and best-before, the records that make a recall fast, and the machines that print the codes.

An industrial inkjet coder printing a small code onto bottle caps on a moving conveyor

This is a free, non-commercial reference page. It is general information only, not legal or compliance advice, and it does not rank or recommend any business or equipment. Check current requirements with the official websites linked below.

Anatomy of a printed code (example only)

  1. BEST BEFORE 14 MAR 27Date mark Use-by for safety, best-before for quality
  2. L6312 A2Lot code Here: day 312 of 2026, line A, shift 2
  3. 08:42 0417Time and sequence Optional, but speeds up a trace

A made-up example. Each business sets its own lot code format; what the law requires is that the code identifies the premises and the lot, as set out in Standard 1.2.2 of the Food Standards Code.

Lot codes

What a batch code is

A batch or lot code identifies a group of products made together. If there's a problem, the code lets a business trace and recall only the affected batch.

The Food Standards Code defines a lot as food prepared or packaged under essentially the same conditions, and lot identification as a number or other information that identifies the premises where the food was prepared or packed and the lot it belongs to. Lot identification is one of the food identification requirements in Standard 1.2.2, with limited exceptions such as individual portions of ice cream.

Date marks

Use-by dates

FSANZ says foods with a use-by date shouldn't be eaten or sold after that date, because they could pose a health risk.

A hand pointing to the lid of a yoghurt tub, where date marks are often printed, beside a foil snack pack
Use-by is about safety; best-before is about quality.

Best-before dates

Food past its best-before date might not be at its best but is still safe to eat, according to FSANZ. Best-before dates aren't required for food with a shelf life of two years or more.

Exemptions

FSANZ notes packaged fruit and vegetables don't need either date if the packaging doesn't obscure their quality. Date marking is set out in Standard 1.2.5 of the Food Standards Code.

Traceability and recalls

FSANZ describes traceability as being able to track food through all stages of production, processing and distribution, which makes recalls easier and quicker. It says food manufacturers, wholesalers and importers must have a food recall system in place. Its checklist of records to keep includes:

Keep records

Link each batch code to production records, including ingredients, date, line and shift, so a trace or recall is fast.

A quality assurance worker in a hairnet checking the printed code on a carton with a tablet
A code is only useful if it links back to your production records.

Coding methods

Coding methods

Common methods include continuous inkjet coders for high-speed lines and curved surfaces, thermal transfer overprinters for flexible film packaging, and laser coders that mark without ink.

A laser coding head marking a code onto flexible snack packaging on a production line
Laser coders mark without ink.

For more on thermal transfer overprinters, see the related guide at thermaltransferprinter.com.au.

Readable and permanent

Codes must stay legible through handling, chilling and transport. Test the code on your actual packaging under real conditions.

Barcodes

Retail barcodes are a separate thing from batch codes. In Australia, barcode numbers are licensed through GS1 Australia: you become a member and pay an annual licence fee, and the number of barcodes you can get depends on your turnover.

Before you decide

Use-by or best-before?
Use-by is about safety; best-before is about quality.
Is the shelf life two years or more?
A best-before date may not be needed.
Does your code identify the premises and the lot?
That's what lot identification means under Standard 1.2.2.
Which coding method suits your pack?
Inkjet, thermal transfer or laser.
Does the code survive handling?
Test on real packaging, through chilling and transport.
Can you trace a batch fast?
Link each code to supplier, production and customer records.

Common questions

What's the difference between use-by and best-before?

FSANZ says use-by dates are about safety, so food past its use-by date shouldn't be eaten or sold. Best-before dates are about quality: the food might not be at its best, but it's still safe to eat.

Does all food need a best-before date?

No. FSANZ says products with a shelf life of two years or more, like canned goods, don't need one.

What is a batch code?

A code identifying a group of products made together, used for tracing and recalls. The Food Standards Code calls it lot identification: information that identifies the premises where the food was prepared or packed, and the lot.

Who needs a food recall system?

FSANZ says food manufacturers, wholesalers and importers must have a food recall system in place.

What machines print batch codes?

Continuous inkjet coders, thermal transfer overprinters and laser coders are the common types.

Official sources

About this page

batchcoding.com.au is a plain reference on batch coding and date marking, published by Radiant Life Distributors Pty Ltd, Adelaide. It does not sell products or services. Businesses wanting a correction can use the contact link below.