QR Code for Food Product Batch Coding: A Complete Guide for Food Manufacturers (2026)
July 8, 2026

QR Code for Food Product Batch Coding: A Complete Guide for Food Manufacturers (2026)

A practical, illustrated guide to putting QR codes on food packaging alongside your batch code. Learn what to encode (GTIN, batch/lot number, MFG date, expiry, MRP), how QR codes speed up recalls and fight counterfeits, how shoppers verify authenticity with one scan, plus a real example label, the mistakes to avoid, and how TrueGTIN generates and manages food product QR codes for free.

Turn over almost any packet of biscuits, bottle of sauce, or carton of juice and you will find a small printed code: something like MFG 08/26 • EXP 07/27 • LOT F26A17. That is the batch code — the single most important string on the pack for food safety. But on its own it is just ink: a human has to read it, type it, and cross-check it by hand. Add a QR code next to it and that same information becomes instantly machine-readable, verifiable by any shopper with a phone, and linked to a live record you control. This guide shows food manufacturers exactly how to do that: what to encode, why it matters, and how to get it right the first time.

What Is Batch Coding for Food Products?

A batch code (also called a lot number) is a unique identifier given to a group of food products made together — same recipe, same raw materials, same line, same shift. Every packet in that group shares the code, so if anything goes wrong with one, you can trace it back to the exact production run and pull only that batch. Alongside it, food labels carry the manufacturing date, a use-by / best-before (expiry) date, and often the MRP and GTIN (the barcode number). For the fundamentals of building good lot numbers, see our complete guide to batch coding.

In most markets this is not optional. Food safety rules — India's FSSAI labelling regulations, the EU's Regulation (EU) No 1169/2011, and the US FDA / FSMA traceability rules — all require a lot identifier and clear date marking so that a contaminated or mislabelled batch can be identified and recalled. The batch code is how a recall stays surgical instead of wiping out your entire product line.

Figure 1 — What a food batch code block actually tells you

MFG : 08 / 2026
EXP : 07 / 2027
LOT : F26A17
MRP : ₹120.00

Four facts, printed as plain text. Useful — but a human has to read and interpret every one.

Why Food Manufacturers Should Add a QR Code Alongside the Batch Code

The printed batch code is for humans. A QR code is for machines and phones — and it can carry the exact same information (plus a lot more) in a form that is instantly scannable, verifiable, and connected to a live database. You are not replacing the batch code; you are giving it a digital twin.

Figure 2 — Printed batch code vs. QR code

Printed batch code

  • Read by the human eye
  • Must be typed to look up
  • Easy to fake or reprint
  • Fixed — no live updates
  • Holds only a few characters

QR code alongside it

  • Scanned by any smartphone
  • One tap opens a verify page
  • Each pack can be unique & tamper-evident
  • Links to a live record you control
  • Holds GTIN + batch + dates + a web link

Wondering how a QR differs from the striped barcode you already print? Our QR code vs barcode comparison breaks it down. The short version: the 1D barcode answers only "what product is this?", while a QR code can answer what, which batch, when it expires, and is it genuine — all in a square a shopper can scan.

What Information Should the QR Code Encode?

A well-built food QR should carry the same identifiers your regulator and your recall process rely on. At a minimum, encode these five:

📦

GTIN

The product barcode number

🏭

Batch / Lot no.

Which production run

📅

MFG date

When it was made

Expiry / Best before

Until when it is safe

💰

MRP

Price (where required)

The professional way to encode these is with GS1 Application Identifiers (AIs) — short numeric prefixes that label each field so any scanner in the world reads it the same way: (01) for GTIN, (11) for production date, (17) for expiry, (10) for batch/lot. Best of all, GS1 now lets you wrap this inside a plain web link — a GS1 Digital Link — so the very same QR both carries the structured data and opens a page in a shopper's browser.

Figure 3 — How the data is packed into one QR (GS1 Digital Link)

https://id.truegtin.com/01/08901234567890/10/F26A17?17=270731

01 08901234567890 GTIN — the global product number
10 F26A17 Batch / lot number
17 270731 Expiry in YYMMDD → 2027-07-31

One QR, two jobs: a scanner reads the structured GS1 data, while a shopper's phone simply opens the link and sees a friendly verification page. Learn more in our GS1 Digital Link guide.

The Benefits: Food Safety, Faster Recalls, and Counterfeit Prevention

🦽

Food safety & traceability

Every scan is logged to a batch. If a supplier's ingredient is flagged, you know instantly which finished batches used it and where they shipped.

⚠️

Faster, surgical recalls

Recall exactly one lot instead of the whole SKU. A QR-driven recall can be scoped and communicated in hours, not weeks — protecting customers and margins.

🛡️

Counterfeit prevention

Give each pack a unique serialized QR. A code that has already been scanned dozens of times, or that does not exist in your system, is an instant red flag for a fake.

Figure 4 — Recall only the affected batch, not the whole product

F26A15
F26A16
F26A17
F26A18
F26A19
F26A20

The QR ties each packet to its lot. Pull F26A17 from shelves — the other five batches keep selling.

See how QR traceability accelerates the whole process in our product recall management guide.

How Consumers Verify Authenticity in One Scan

The magic of a food QR is that your customer becomes part of your safety net. No app to download, no account to create — they point their phone camera at the pack and tap the link. Here is the whole journey:

Figure 5 — The consumer verification flow

📱

1. Scan

Open the phone camera, point at the QR on the pack.

🔗

2. Open

Tap the link — the verify page loads in the browser.

3. Confirm

See product, batch, MFG & expiry — and a Genuine badge.

✅ Genuine product

Product: Organic Mango Juice 1L
Batch: F26A17
Manufactured: Aug 2026
Best before: Jul 2027
First scan: verified ✓

Because the page is live, you can also warn a shopper if a pack is expired, recalled, or shows the tell-tale signs of a cloned code (the same serial scanned in ten different cities). For a consumer-side walkthrough, point customers to our guide on how to verify product authenticity.

Example: A Real Food Label with a QR Code and Batch Code

Here is how the batch code and QR sit together on a finished pack. The printed text stays exactly where regulators (and older scanners) expect it; the QR carries the same data digitally and adds the verify link.

Figure 6 — Example food label: batch code + QR code together

ORGANIC MANGO JUICE

No added sugar • 1 Litre

GTIN 8901234567890
MFG  08 / 2026
EXP  07 / 2027
LOT  F26A17
MRP  ₹120.00

Scan to verify & trace

Text for the eye and old scanners; QR for the phone and the database. Same batch, two channels.

Common Mistakes to Avoid

  • Dropping the printed batch code. The QR does not replace the human-readable lot number and dates — regulators still require them on the pack. Keep both.
  • One static QR for the whole product. If every pack shares an identical code, it cannot tell you the batch and cannot detect clones. Encode the batch (and ideally a unique serial) so the QR is meaningful.
  • Encoding a bare URL with no standard data. A random short link works until you change vendors. Use a GS1 Digital Link so the GTIN, batch and expiry travel inside the code in a standard, portable format.
  • An invalid GTIN. A wrong check digit poisons every scan and every marketplace listing. Confirm it first with our check digit calculator.
  • Printing the QR too small or with no quiet zone. On food packs, aim for at least 15–20 mm and leave clear white space around it. Ink bleed on flexible film and curved bottles is the top reason a QR fails to scan — always test on the real substrate.
  • Wrong or ambiguous date format. Inside GS1 data, dates are strictly YYMMDD. Do not invent formats; keep the on-pack human date clear too (e.g. "Best before Jul 2027").

How TrueGTIN Helps You Generate and Manage Food Product QR Codes

TrueGTIN is built for exactly this workflow. You do not need a developer or expensive serialization software to put a proper, traceable QR on your food packaging:

  • Validate your GTIN and generate print-ready barcodes for free with our barcode generator and GTIN validator.
  • Build GS1 Digital Link QR codes that pack GTIN, batch/lot, MFG and expiry into one scannable square that opens a branded verification page.
  • Generate unique, serialized QR codes per pack for anti-counterfeit protection, then export them as a CSV.
  • Print variable data directly — batch code plus QR — from your phone to a handheld inkjet printer, no computer required. See our step-by-step printing guide.
  • Manage batches and recalls from one dashboard: see scan activity, flag a bad lot, and give customers a live "genuine or recalled" answer.

Frequently Asked Questions

Do I still need the printed batch code if I add a QR?

Yes. Food regulations require a human-readable lot number and date marking on the pack. The QR is an addition that makes that same data machine-readable and verifiable — it is not a legal substitute for the printed text.

What is the best size for a QR code on food packaging?

As a rule of thumb, print it at least 15–20 mm square with a clear quiet zone around it, and test on the actual material. Small, glossy, or curved surfaces reduce reliability, so err on the larger side and verify with a few different phones.

Can a normal smartphone scan a food product QR code?

Yes — unlike the tiny GS1 DataMatrix used on medicines, QR codes are read natively by virtually every modern phone camera with no app required. That is exactly why QR is the right choice for consumer-facing food verification.

How does a QR code actually stop counterfeiting?

By giving each pack a unique serialized code tied to your database. Counterfeiters can copy a picture of a QR, but when the same serial is scanned from many locations, or a serial appears that you never issued, your verification page can flag it as suspect. Read more in our brand protection guide.

Is TrueGTIN free for food manufacturers?

The core tools — GTIN validation, barcode and QR generation, and check digit calculation — are free to use. Serialized traceability and batch management scale with your volume. Start with the free tools and add what you need.

Put a Traceable QR on Every Food Batch — Free

TrueGTIN lets you validate your GTIN, generate GS1 QR codes with batch, MFG and expiry built in, and manage recalls from one dashboard — right from your phone.