GS1 QR codes for egg brands: FSMA 204 and lot recalls
Shell eggs are on FDA's Food Traceability List, and Salmonella recalls ask shoppers to find a plant number and a Julian date on the carton. This guide covers the federal rules for egg cartons and lots, and shows how to put the lot in a QR code so a recall reaches only the cartons that need it.
DLCode · Updated · 8 min read
How egg recalls find the bad cartons
Egg recalls are announced by plant number and pack date. In June 2025, a California egg company recalled 1,700,000 dozen brown cage-free and organic eggs because they could be contaminated with Salmonella. The notice FDA posted told shoppers to look for plant code P-6562 or CA5330 with a Julian date between 32 and 126, printed on the carton.
The eggs had gone to stores in nine states under many store and brand labels, with sell-by dates from March into June. Each shopper had to find two small codes on a carton in the fridge and compare them with a list.
A QR code that carries the same lot does that matching for the shopper. One scan tells them whether their carton is in the recall.
A recall that reaches every carton with your name on it costs you trust with shoppers who were never at risk. A recall by lot reaches only the cartons that need it.
Shell eggs under FSMA 204
Shell eggs are on FDA's Food Traceability List. FDA defines a shell egg as the egg of the domesticated chicken, and the entry includes products, fresh or frozen, that contain raw, unpasteurized eggs as ingredients.
The rule in 21 CFR Part 1, Subpart S does not apply to shell egg producers with fewer than 3,000 laying hens at a particular farm, for the shell eggs they produce at that farm (21 CFR 1.1305).
Under 21 CFR 1.1320, you must assign a traceability lot code when you initially pack a raw agricultural commodity or transform a food. You must not set a new traceability lot code when you only ship the food.
When FDA needs the records to address an outbreak or a recall, you must make them available within 24 hours of the request, or within a reasonable time FDA agrees to. For the key data elements you keep, 21 CFR 1.1455 asks for an electronic sortable spreadsheet.
FDA proposed moving the compliance date from January 20, 2026 to July 20, 2028. Congress then directed FDA not to enforce the rule before that date, and FDA says it intends to comply. Cartons and lot records take months to set up, and a Salmonella recall will not wait for 2028. For the full rule, see Lot-level traceability and recalls under FSMA 204.
FDA's egg safety rule
21 CFR Part 118 covers shell egg producers with 3,000 or more laying hens at a farm that do not sell all of their eggs directly to consumers and that produce shell eggs for the table market.
Covered producers must have a written Salmonella Enteritidis (SE) prevention plan for each farm. Under 21 CFR 118.4(e), eggs must be held and transported at or below 45 °F ambient temperature beginning 36 hours after time of lay.
The rule requires SE testing of the environment and, when a test is positive, testing of the eggs. Records required by the rule must be kept for 1 year after the flock they cover is taken permanently out of production (21 CFR 118.10).
Covered producers must also register each farm with FDA within 30 days of becoming an egg producer (21 CFR 118.11).
Stores have their own rule. Under 21 CFR 115.50, shell eggs held for retail distribution must be stored and displayed at an ambient temperature not greater than 45 °F.
What the carton must say
Under 21 CFR 101.17(h), every carton of shell eggs that has not been processed to destroy all viable Salmonella must carry this statement:
SAFE HANDLING INSTRUCTIONS: To prevent illness from bacteria: keep eggs refrigerated, cook eggs until yolks are firm, and cook foods containing eggs thoroughly.The words "SAFE HANDLING INSTRUCTIONS" must be in bold type, and the statement must be set off in a box by hairlines. It goes on the principal display panel, the information panel or the inside of the lid. If it is inside the lid, the words "Keep Refrigerated" must appear on the principal display panel or information panel.
If your cartons carry the USDA grade shield, 7 CFR 56.36 requires the plant number of the official plant, preceded by the letter "P", on each carton. Under 7 CFR 56.37, the eggs must also carry a lot number, which is the consecutive day of the year on which they were packed, such as 132 for May 12 in a common year.
The USDA Egg-Grading Manual sets the date rules for graded cartons:
| Date on the carton | Rule for USDA graded eggs |
|---|---|
| Pack date | Required. The consecutive day of the year the eggs were packed into the carton. |
| Plant number | Required. The official plant number, preceded by "P". |
| Expiration date, such as "EXP" or "Sell by" | Optional. No more than 30 days from the pack date, including the date of pack. |
| Quality date, such as "Use by" or "Best before" | Optional. No more than 45 days from the pack date, including the date of pack. |
These are the same codes a recall names. When your QR code carries them, the shopper never has to read them.
How a GS1 Digital Link QR code fits
A GS1 Digital Link QR code is a web address that contains your GTIN. GS1 Application Identifier 10 is the batch or lot number, and Application Identifier 17 is the expiration date. DLCode puts the lot in the path after /10/ and the expiry in the query after ?17= in YYMMDD form.
For eggs, a lot that joins your plant number and the Julian pack date works well. A carton packed on day 318 of 2026 at plant P-1234, with an expiration date 30 days from pack, gets this code:
https://qr.yourbrand.com/01/00850012345671/10/P1234-318?17=261213The same code holds your GTIN, so a checkout scanner that reads 2D barcodes can ring it up. Keep printing the plant number and pack date as you do today. The QR code carries them for the shopper's phone.
Each carton size and pack type has its own GTIN, so a dozen large brown and an 18-count large brown are two products. If you need GTINs, see How to get a GTIN.
Use your own domain, such as qr.yourbrand.com, in the code. The address printed on the carton then belongs to your brand, and you can change where it sends scans at any time with no reprint. See Use your own domain for GS1 QR codes.
Send everyday scans where they help you sell: your farm story, your hen welfare page, recipes, or a store locator. On a paid pack or the trial, add a link limited to one lot, so a scan of P1234-318 can open the page for that pack day.
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 is written to the product's recall history.
Egg cartons carry short dates, so the expiry in the code makes a date recall simple. An expiry-date recall needs the date in the code or a saved expiry on the lot record.
Pair the scan notice with the notices your recall plan already sends to FDA and your stores. For the full steps, see How to tell customers which batch is recalled.
Printing a code for each pack day
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 cartons and labels: 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}, so each pack day prints its own code.
- Automated files: request GET /api/v1/products/{gtin}/qr.svg?lot=P1234-318&expiry=2026-12-13 with your API key. PDF and EPS are also available.
Lot codes can be up to 20 characters from the GS1 character set. Use the same plant number and Julian date that you print on the carton.
The 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. Export your lots as a CSV with FSMA 204 key data element column names when FDA asks for a sortable spreadsheet.
Sunrise 2027
GS1 US describes Sunrise 2027 as a global move from 1D UPC barcodes to 2D barcodes such as QR codes, with retailers making sure their point-of-sale systems can read them. Carton stock you order today can still be in use then. The QR code you add for recalls can be the same GS1 Digital Link code that those registers read. See Sunrise 2027 for sizes and placement.
What it costs
Each GTIN counts as one product in DLCode.
| 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 carton size and pack type you sell, and confirm each has its own GTIN from GS1.
- Pick one lot format that joins your plant number and Julian pack date, such as P1234-318.
- Check that your pack records tie each pack day to the farm and flock it came from, so the lot in the code matches your FSMA 204 records.
- Connect a domain you control, such as qr.yourbrand.com, before you print.
- Add the QR code to your next carton or label run, next to the safe handling statement or your UPC, 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 QR codes on food labels: what is allowed.
Have a one-scan answer for every carton
Set up one product, put the pack day in the code, and have a recall ready before you ever need it.
- Each pack day gets its own QR code with your plant number and Julian date inside.
- Shoppers learn in one scan whether their carton is in a recall.
- The same code carries your GTIN for checkout scanners that read 2D barcodes.
- Recall listed lots, or every lot that expires on or before a date.
- Export lots with FSMA 204 key data element column names.
- 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 carton run today. Start free or See pricing.
Sources
- Food Traceability List · U.S. Food and Drug Administration
- FSMA Final Rule on Requirements for Additional Traceability Records for Certain Foods · U.S. Food and Drug Administration
- 21 CFR 1.1305: Exemptions from the traceability rule · eCFR
- 21 CFR 1.1320: When must I assign traceability lot codes · eCFR
- 21 CFR 1.1455: Record maintenance and availability · eCFR
- 21 CFR Part 118: Production, storage, and transportation of shell eggs · eCFR
- 21 CFR 115.50: Refrigeration of shell eggs held for retail distribution · eCFR
- 21 CFR 101.17: Food labeling warning, notice, and safe handling statements · eCFR
- 7 CFR Part 56: Voluntary grading of shell eggs · eCFR
- Egg-Grading Manual, Agricultural Handbook Number 75 · USDA Agricultural Marketing Service
- August Egg Company Recalls Shell Eggs Because of Possible Health Risk · U.S. Food and Drug Administration
- 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.