No, canning pesto at home isn’t safe; freeze pesto instead for long-term storage and lower botulism risk.
That jar of bright green pesto tastes like summer in a spoon. When jars and lids sit on the counter, the next thought often pops up: can i can pesto? The idea of rows of pesto on a shelf feels tidy and thrifty, yet food safety rules tell a different story.
This guide lays out why home-canned pesto is unsafe, what science says about herbs in oil, and which storage methods keep flavor without risking botulism. You’ll see clear storage timelines, step-by-step freezing tips, and ways to enjoy pesto year-round with confidence.
Why Pesto And Canning Do Not Mix
Pesto is an uncooked mix of fresh basil, garlic, nuts, cheese, salt, and plenty of oil. Every part of that list leans toward low acidity and high fat. That mix in a sealed jar at room temperature gives the bacteria that cause botulism exactly what they need.
Clostridium botulinum grows where there is no air, in low-acid food, and at room or pantry temperatures. Standard basil pesto checks every box. The oil keeps air away, the herbs and garlic come from soil where spores may live, and the pH sits well above the safe cutoff of 4.6.
Food safety agencies point out that herbs in oil and pesto must not be stored at room temperature in sealed jars. The National Center for Home Food Preservation states that there are no home canning recommendations for pesto; instead, pesto should stay in the fridge for a short time or go straight to the freezer.
The CDC botulism guidance for home-prepared foods also urges cold storage for mixtures of garlic or herbs in oil and quick use. These sources form the backbone of the advice in this article.
Pesto Storage Methods Overview
Home cooks have several safe ways to keep pesto on hand without canning. Some methods work for short bursts, and others stretch a batch across many months. This first table gives a quick comparison before the later sections walk through each option in detail.
| Storage Method | Typical Storage Time | Storage Temperature |
|---|---|---|
| Fresh homemade pesto in fridge | 3–4 days | Refrigerator (below 40°F / 4°C) |
| Homemade pesto frozen in small jars | 6–12 months | Freezer (0°F / -18°C or colder) |
| Homemade pesto frozen in ice cube trays | 6–12 months | Freezer |
| Store-bought shelf-stable pesto, unopened | Best-by date from maker | Room temperature pantry |
| Store-bought pesto after opening | Up to 1–2 weeks, per label | Refrigerator |
| Homemade dried basil “pesto” seasoning mix | 6–12 months | Cool, dry cupboard |
| Home-canned pesto in jars | Not safe; do not store | Room temperature storage is unsafe |
With that bird’s-eye view in place, the rest of the article explains why some choices are safe and why home canning belongs in the “no” column.
Can I Can Pesto?
The direct answer is no. Tested and approved canning recipes exist for tomatoes, vegetables, meats, fruits, broths, and more. None of the main food safety bodies publish a process for canned pesto. When authorities say, “there are no tested canning processes for this food,” the safe choice is to skip canning altogether.
The reason goes beyond missing instructions. Pesto brings together several risk factors that make safe research harder. Basil and garlic come from soil and may carry spores. Oil blocks air. Cheese and nuts add protein and fat. High fat can shield spores from heat during processing, so even pressure canning does not guarantee a safe result.
Online forums sometimes share stories from people who say they canned pesto and felt fine after eating it. Personal stories do not change food science. Botulism toxin has no smell, taste, or visible clue. A single jar that fails can cause life-threatening illness.
Every time someone searches “can i can pesto?” and lands on an answer that waves away botulism, the risk grows. Treat “no tested canning process” as a firm stop sign, not a gap to fill with home experiments.
Canning Pesto At Home: Why The Answer Stays No
Some home preservers wonder if changing the recipe might make canning safe. Ideas include adding vinegar or lemon juice, skipping the cheese, or packing pesto under a layer of oil to “seal” the surface. These tweaks do not fix the core safety issue.
Acid does lower pH, yet pesto recipes vary a lot from kitchen to kitchen. Without lab testing of a specific formula, no one can say with confidence that every jar stays below pH 4.6 through its full shelf life. A little extra basil, more nuts, or less acid on a busy day could push a jar back into the danger range.
Leaving out cheese reduces dairy content but does not change the fact that herbs and garlic in oil form a low-acid, low-oxygen, moist mix. Those are classic conditions for botulism. A clear oil layer on top does not keep spores from growing in the pesto beneath.
A better framing is this: home canning has limits. Some foods just do not match up with those limits. Pesto sits in that group, along with butter in jars, bread in jars, and many other low-acid, high-fat spreads. Freezing covers the long-term storage goal without stretching canning beyond what the science can support.
Safe Short-Term Storage In The Fridge
While canning pesto is off the table, you can still keep a batch in the fridge for a short window. Food safety specialists advise treating pesto like other herb-and-oil mixes: cold storage and quick use.
Fresh pesto mixes should go into clean containers as soon as possible. Cover the surface with a thin layer of oil to slow browning, then seal with a tight lid. Store the container near the coldest part of the fridge, not in the door where temperatures swing more during daily use.
Plan to eat refrigerated pesto within three or four days. That timeline lines up with guidance for herbs and garlic in oil from food safety agencies. If you reach day four and still have pesto left, move the rest to the freezer rather than pushing the fridge window longer.
Store-bought pesto in jars comes with its own label directions. Commercial producers may acidify or process the product in ways that work for shelf storage before opening. Once opened, though, even store pesto belongs back in the fridge and used within the time listed on the jar.
Freezing Pesto For Long-Term Storage
Freezing is the go-to method for anyone with basil on the counter and a batch of fresh pesto in the blender. Frozen pesto keeps its flavor, skips the color and texture loss that long boiling can cause, and lines up with every major safety guideline.
Here is a simple freezing method that works in home kitchens:
Step-By-Step Pesto Freezing Method
- Prepare your pesto recipe, tasting and adjusting salt while it is still in the bowl.
- Decide on portion size: small jars for pasta dinners, or ice cube trays for spoonfuls that drop into soups and sauces.
- For jars, leave a little headspace at the top to allow for slight expansion in the freezer.
- For cube trays, spoon pesto in, smooth the top, and place a sheet of plastic wrap over the tray to limit contact with air.
- Freeze until solid. For cubes, pop them out and store them in labeled freezer bags or containers.
- Label every container with the contents and date. Aim to use frozen pesto within 6 to 12 months for the best flavor.
- When you need pesto, move a portion from the freezer to the fridge to thaw, or stir a frozen cube straight into warm pasta or soup.
This method keeps prep simple and fits into busy cooking routines. You gain speed on weeknights without sacrificing safety.
Common Pesto Preservation Myths
Home cooks share many tips, and some stay in circulation long after specialists flag them as unsafe. Pesto sits at the center of several myths around oil, canning jars, and long-term storage. This next table lines up frequent claims with the reality from food safety science.
| Myth | Reality | Safer Choice |
|---|---|---|
| “A thick oil layer on top keeps pesto safe on the shelf.” | Oil removes air but does not make low-acid food safe from botulism. | Store pesto in the fridge short term or freeze it. |
| “Pressure canning pesto kills every risk.” | High fat and low acid mean spores may survive, and no tested process exists. | Skip canning pesto and rely on freezing instead. |
| “Adding a splash of lemon juice makes pesto safe to can.” | Small recipe changes can leave pH above the safe limit. | Use lemon for flavor, not as a safety fix. |
| “If the jar looks and smells fine, it must be safe.” | Botulism toxin has no smell, taste, or visible sign. | Follow tested methods rather than guessing from appearance. |
| “I canned pesto last year and nobody got sick, so my method works.” | Past luck does not guarantee safety in the next batch. | Retire risky methods and switch to freezing. |
| “Store-bought pesto jars prove that home canning is fine.” | Factories use lab testing, carefully balanced recipes, and strict controls. | Enjoy store jars as labeled; freeze homemade pesto instead. |
| “I can just re-boil any suspect pesto before eating.” | Boiling may not destroy all toxin and can spread it through steam. | When in doubt, throw the jar away unopened. |
What To Do If You See Home-Canned Pesto
Now and then, a friend or market stall might offer home-canned pesto. The jar may look charming, with a hand-written label and a neat metal lid. Food safety guidance stays firm here: do not eat home-canned pesto, no matter how nice the jar appears.
If you already have jars of pesto that someone canned, treat them as unsafe. Do not open them to taste or smell. Seal the jars in a bag and discard them in the trash. Wash any surface that touched leaked pesto with hot, soapy water.
When you want to share pesto as a gift, pick a safer path. Freeze small jars, label them with “keep frozen” directions, and hand them over in an insulated bag. Friends still enjoy homegrown basil flavor, and you stay within well-tested safety advice.
Safe Ways To Enjoy Pesto Year-Round
The goal behind the question “can i can pesto?” is clear: stretching a short basil season across the whole year. Canning cannot fill that role, yet you still have several good options that line up with food science.
Freeze full batches for pasta nights, or freeze cubes for easy seasoning. Stir thawed pesto into mayonnaise for sandwiches, blend it into salad dressings, or spread a thin layer over pizza dough. Each use draws from a freezer stash that never sat at room temperature in a sealed jar.
For shelf storage without oil, dry basil leaves or make a dry “green herb mix” with basil, parsley, and garlic powder. Later, whisk the dry mix with oil and a little cheese right before serving. Flavor stays flexible, and no jars of low-acid herbs in oil sit on a shelf for months.
The direct answer to this canning question stays steady: no for canning, yes for freezing. When you follow that line, you keep rich basil flavor on the table while keeping your kitchen in step with clear, science-based food safety rules.

