GS1 QR codes for bakery and bread brands: sesame, allergen recalls and lot codes
Bakery products are one of the five food types FDA names as most often involved in allergen recalls, and sesame joined the major allergen list in 2023. This guide covers the label and lot rules for bread and baked goods, and shows how a QR code with the lot keeps a recall to the one batch with the wrong label.
DLCode · Updated · 8 min read
Why allergens are the recall risk for bakeries
FDA names five food types most often involved in recalls for undeclared allergens. Bakery products are one of them, along with snack foods, candy, dairy products and dressings.
FDA also reports that from September 2009 to September 2014, about one third of the foods reported to its Reportable Food Registry as serious health risks involved undeclared allergens. Milk is the most common cause of allergen recalls.
A bakery works with wheat, eggs, milk, tree nuts, peanuts, soy and sesame, often on the same lines and in the same week. One seeded topping on the wrong bun, or one old bag on a new recipe, puts an undeclared allergen on the shelf.
If your facility is covered by FDA's preventive controls rule and allergens are a hazard that needs a preventive control, 21 CFR 117.135(c)(2) says your allergen controls must protect food from allergen cross-contact. They must also cover labeling of the finished food, so it is not misbranded.
Sesame is now a major allergen
The FASTER Act made sesame the ninth major food allergen in the United States. Since January 1, 2023, sesame must be labeled as an allergen on packaged foods.
The nine major food allergens are milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans and sesame.
FDA says some manufacturers are intentionally adding sesame to products that previously did not contain it, and labeling those products to show it. FDA's sesame page also tells shoppers that there are now food products with small amounts of sesame that did not have it before.
If you changed a recipe to add sesame, every label printed before that change is now wrong for the new product.
FDA says shoppers should check the label every time they buy a food, because ingredients can change at any time. A shopper with a sesame allergy reads your bag closely, and a scan that opens the right page for that batch helps them trust it.
What the allergen label must say
Under FDA rules, the label must name the food source of each major allergen. There are two ways to do it.
- In the ingredient list, with the source in parentheses after the ingredient, such as "lecithin (soy)".
- In a Contains statement placed right after or next to the ingredient list.
For tree nuts, the label must name the type of nut, such as almonds, pecans or walnuts.
FDA says advisory statements such as "may contain" or "produced in a facility that also uses" are not required by law. They should be used only for cross-contact that cannot be avoided, and should not be used as a substitute for current good manufacturing practices.
The allergen declaration stays on the printed label. The QR code adds what a bag or box cannot hold: the lot and a page for that lot, with a recall notice when you need one. See Can I put a QR code on my food label? What US rules allow.
Lot codes and recall plans
For food with a hazard that requires a preventive control, 21 CFR 117.139 requires a written recall plan. The plan must describe how you notify direct consignees and, when needed, the public. It must also describe how you check that the recall worked and how you dispose of the recalled food.
The FDA records rule in 21 CFR 1.345 asks manufacturers to record the lot or code number of food they ship, to the extent this information exists.
Bread and baked goods move fast, and a bakery can run many batches a week. If every bag carries the same code, a recall has to cover every bag. If each batch carries its own lot, a recall covers only that batch.
Use the same lot text on the bag, on the case and in your shipping records. Your stores and your distributor can then match the number you give them in a recall.
Cottage food limits and the move to retail
Many bakeries start under a state cottage food law. Each state sets its own rules. California is one example.
In California, a Class A cottage food operation can sell only directly to consumers. A Class B operation can also sell through permitted third-party retailers, such as shops and cafes. Both sales types are transactions within the state.
| California cottage food class | 2026 gross annual sales limit |
|---|---|
| Class A | $88,878 |
| Class B | $177,756 |
The California Department of Public Health adjusts these limits each year for inflation. An operation that sells more than its limit no longer fits the cottage food definition.
When your bread grows into grocery shelves, store buyers scan a UPC or EAN at the register. The number under that barcode is your GTIN. See How to get a GTIN. Set up lot codes and the QR code at the same time, so your first retail label is the one you keep.
How the lot and best-by date go into the QR code
A GS1 Digital Link QR code is a web address that contains your GTIN. GS1 Application Identifier 10 is the batch or lot number. Application Identifier 17 is the expiration date.
DLCode puts the lot in the path after /10/ and the date in the query after ?17= in YYMMDD form.
https://qr.yourbrand.com/01/00850012345695/10/B1113A?17=261120A lot code can be up to 20 characters from the GS1 character set. Use the same lot text that you print next to the best-by date. Lot codes and dates in the code need a paid pack or the 30-day trial.
If the product has no link, the code opens a hosted product page. That page shows the lot and the best-by date from the code, or from the lot record if you saved one.
Use your own domain, such as qr.yourbrand.com, in the code. You can change where it sends scans at any time with no reprint. See Use your own domain for GS1 QR codes.
Recall one lot from the scan
In DLCode, you can mark a whole product as recalled. You can also mark only listed lots, or every lot that expires on or before a date. Starting a recall needs a paid pack or the trial. Ending a recall works on every plan.
Scans of an affected lot open the hosted page with your recall notice. Scans of other lots keep opening your normal link. The GS1 linkset for the product also reports the recall status, and every change goes into the product's recall history.
An expiry-date recall needs the date in the code or a saved expiry on the lot record.
Your recall plan still covers FDA and your stores. The scan notice reaches the shoppers who scan the loaf or box they already bought. For the full steps, see How to tell customers which batch is recalled.
Printing a code for each batch
Each lot has its own QR code because the lot is part of the address. Lot files need a paid pack or the trial.
- Pre-printed bags and boxes: download the lot's QR code as SVG, PDF, EPS or 600 dpi PNG and send it to your printer.
- Label software such as BarTender or NiceLabel: build the address in the template with the pattern https://{your domain}/01/{GTIN-14}/10/{lot}?17={YYMMDD}.
- Automated files: request GET /api/v1/products/{gtin}/qr.svg?lot=B1113A&expiry=2026-11-20 with your API key. PDF and EPS are also available.
The default QR module is 0.495 mm with a 4-module quiet zone. Label files place the UPC-A, EAN-13 or EAN-8 4 mm to the left of the QR code. See Print specs for a QR code next to your UPC or EAN.
On paid packs and the trial, import a lot CSV of up to 5,000 rows with columns such as gtin, lot, expiry, packed_on and quantity.
Sunrise 2027
GS1 US describes Sunrise 2027 as a global transition from 1D UPC barcodes to 2D barcodes such as QR codes, with retailers making sure their point-of-sale systems can read them. Checkout scanners read the GTIN from the code without contacting DLCode. You keep your UPC and add the QR code next to it, and the bag artwork you approve now is the artwork those registers will read. See Sunrise 2027.
What it costs
Each GTIN counts as one product in DLCode. A bakery with 12 breads and pastries in retail bags fits the 25-product pack.
| Plan | Price | Products | Lot links and lot recalls |
|---|---|---|---|
| Free | $0 | 10 | No |
| 25 products | $249 one time | 25 | Yes |
| 100 products | $499 one time | 100 | Yes |
| 1,000 products | $1,490 one time | 1,000 | Yes |
Each pack covers hosting and unlimited scans through December 31, 2030, with no subscription. After that, hosting is $29 per year. The 30-day trial includes the paid features for up to 25 products, with no card. See pricing.
What to do this month
- List every product that contains sesame today, and every product that shares a line with one.
- Check each label's ingredient list and Contains statement against the current recipe.
- Confirm each retail product has its own GTIN from GS1.
- Give each batch a lot code, and print the same lot text on the bag and the case.
- Connect a domain you control, such as qr.yourbrand.com, before you print.
- Add the QR code to your next bag or label run, then scan a proof with an iPhone and an Android phone.
- Write your recall notice text now, and test a lot recall before you need one.
For other food categories, see DLCode for food brands and GS1 QR codes for snack and bar brands. For California rules, see GS1 QR codes in California.
Keep every allergen recall to one batch
Set up one product, print the lot in its code, and have a recall ready before a wrong label ever reaches a shelf.
- Each batch gets its own QR code with the lot and best-by date.
- Recall listed lots, or every lot that expires on or before a date.
- Scans of other batches keep opening your normal page.
- The same code carries your GTIN for checkout scanners that read 2D barcodes.
- Download lot files as SVG, PDF, EPS or 600 dpi PNG for your bags and boxes.
- Use your own domain so every code carries your brand.
Start free for 10 products, with no card. When you need more, pay once from $249 for 25 products. Hosting and unlimited scans are included through December 31, 2030, with no subscription. New accounts get lot links and recalls free for 30 days on up to 25 products.
Make the code for your next bag run today. Start free or See pricing.
Sources
- Food Allergies · U.S. Food and Drug Administration
- The FASTER Act: Sesame Is the Ninth Major Food Allergen · U.S. Food and Drug Administration
- An Update on Sesame Allergen Labeling on Food Packages · U.S. Food and Drug Administration
- 21 CFR 117.135: Preventive controls · Legal Information Institute, Cornell Law School
- 21 CFR 117.139: Recall plan · Legal Information Institute, Cornell Law School
- 21 CFR 1.345: What information must nontransporters establish and maintain to identify the nontransporter and transporter immediate subsequent recipients of food? · Legal Information Institute, Cornell Law School
- Cottage Food Operation Requirements · California Department of Public Health
- Cottage Food Operation Adjusted Gross Annual Sales Limit · California Department of Public Health
- What is GS1 Sunrise 2027? · GS1 US
- GS1 Digital Link URI syntax · GS1
- GS1 Application Identifier (10): Batch or lot number · GS1
- GS1 Application Identifier (17): Expiration date · GS1
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.