The tiny white worms that sometimes crawl out of fresh strawberries are almost always larvae of the spotted-wing drosophila, a small fruit fly that lays its eggs inside ripening berries while they are still on the plant. Getting rid of them depends on whether you are dealing with store-bought fruit you want to clean before eating or a garden infestation you want to prevent at the source. For berries already in your kitchen, a brief soak in salt water drives the larvae out. For growers, a combination of exclusion netting, frequent harvesting, cold storage, traps, and biological controls offers the most reliable long-term defense.
What “Strawberry Worms” Actually Are
The phrase “strawberry worms” conjures images of large caterpillars, but the creatures people typically find are far smaller. They are the larvae of Drosophila suzukii, commonly called the spotted-wing drosophila, or SWD. Unlike most fruit flies, which only lay eggs in fruit that is already damaged or rotting, the spotted-wing drosophila has a serrated egg-laying organ that can puncture the skin of intact, ripe fruit. The female inserts eggs just below the surface of a ripening strawberry, and the larvae develop inside the flesh, feeding on it from within. By the time you bring the berry home, the larvae may be fully developed and ready to emerge.
SWD is not native to North America or Europe. It arrived in the continental United States around 2008 and spread rapidly, becoming one of the most economically damaging pests of soft fruit worldwide. Strawberries, blueberries, raspberries, blackberries, and cherries are all targets. Because the fly attacks fruit that looks perfectly healthy on the outside, infestations often go unnoticed until someone bites into a berry or drops it in water and sees something squirming.
Other insects can occasionally show up in strawberries as well. Sap beetles, thrips, and aphids sometimes hitch a ride on the surface, and certain root-feeding grubs can damage strawberry plants below ground. But the larvae people are alarmed by when they go viral on social media are overwhelmingly SWD.
The Salt Water Soak for Berries You Already Have
If you have bought or picked strawberries and want to check for (or remove) larvae before eating them, the simplest method is a salt water bath. Fill a bowl with cool water, stir in a generous amount of salt, and submerge the berries for about ten to fifteen minutes. The salt water creates an environment the larvae want to escape, driving them out of the fruit and into the water. In a side-by-side comparison of strawberries from three different brands, two of the three brands produced visible insects when soaked in salt water, including both dead fruit flies and live larvae clinging to the fruit surface, while a plain water rinse produced far fewer.
A few practical notes on this approach. First, rinse the berries thoroughly in fresh water after the soak, because they will taste salty otherwise. Second, the salt water can soften the fruit slightly, so eat the berries promptly rather than storing them for days. Third, this method removes larvae that are alive and mobile; it will not undo any damage already done to the flesh. If a berry is mushy or discolored inside, the larva has already been feeding there, and salting it out does not restore the fruit’s quality.
A vinegar-water soak, often recommended for general fruit washing, will also dislodge some surface insects but appears less effective at drawing out larvae embedded in the flesh. The higher osmotic pull of salt water is what forces the larvae to abandon the berry. You do not need a precise ratio. Roughly two tablespoons of salt per cup of water is enough.
Refrigeration and Cold Storage
If you grow your own berries or buy in bulk, cold storage is another post-harvest tool. Research on SWD-infested small fruits, including strawberries, shows that holding fruit at temperatures near 0°C significantly reduces the survival of larvae and eggs inside the fruit. Freshly laid eggs were especially vulnerable to cold, producing the lowest rates of continued development. The results suggest that cold storage is an effective post-harvest strategy growers can fold into an integrated management plan.
There is a catch, though. A separate study found that cold storage alone was too slow to be considered fully effective as a standalone treatment, particularly for commercial operations moving large volumes of fruit quickly.1PubMed Central. Postharvest CO2 treatment and cold storage for Drosophila suzukii (Diptera: Drosophilidae) fruit infestation control Combining cold storage with elevated carbon dioxide concentrations improved results considerably. For home growers, the practical takeaway is simple: refrigerate your strawberries as soon as possible after picking. Keeping them at or just above 0°C for several days dramatically reduces the odds that any larvae inside will survive to adulthood.2PubMed. Determining the Effect of Postharvest Cold Storage Treatment on the Survival of Immature Drosophila suzukii (Diptera: Drosophilidae) in Small Fruits It will not make every berry pristine, but it meaningfully lowers the pest load, especially when combined with a salt water soak before eating.
Exclusion Netting in the Garden
For anyone growing strawberries at home or on a small farm, the single most effective strategy for preventing SWD infestation is physically blocking the fly from reaching the fruit. Fine-mesh exclusion netting draped over plants or installed on a simple frame creates a barrier that the tiny flies cannot penetrate. The mesh needs to be fine enough that SWD adults cannot squeeze through, typically with openings smaller than about one millimeter.
The evidence for netting is strong. In trials on organic raspberries, exclusion netting applied early in fruit development cut SWD captures by about 75%, reduced the weight of infested fruit by roughly half, and boosted marketable yield by 63% compared to plants with no protection.3PubMed. Fine-mesh exclusion netting reduces Drosophila suzukii (Diptera: Drosophilidae) infestation and improves organic fall-bearing raspberry yields In wine grapes, netted plots showed significantly fewer larvae and adults per fruit on every collection date over two growing seasons.4Journal of Economic Entomology. Evaluation of Exclusion Netting for Spotted-Wing Drosophila (Diptera: Drosophilidae) Management in Minnesota Wine Grapes And in organic blueberry production, one study found zero adult SWD collected from traps and fruit inside the netting, compared to multiple specimens in unprotected control plots.5PubMed Central. Economic analysis of using exclusion netting for spotted‐wing drosophila (Drosophila suzukii) management in organic blueberry production systems
Timing matters. Netting applied before fruit begins to ripen delivers the best results. If you wait until berries are already coloring, some females may already be inside the canopy. One tradeoff to be aware of: very early netting can interfere with pollination, since it also blocks beneficial insects. Some growers install netting after the main pollination window closes but before fruit starts to change color. For small raised beds or containers, floating row cover works well and is inexpensive. For larger plantings, hoop structures with insect netting are the standard approach.
Cultural Practices That Keep Populations Low
No single tactic eliminates SWD on its own. The most effective approach is what entomologists call integrated pest management: layering multiple strategies so each one chips away at the population. Cultural practices are the foundation of that layered defense. A review of current SWD management in small fruit outlines several key tactics, including increasing harvest frequency, aggressive sanitation, pruning to reduce humidity in the canopy, adjusting mulch and irrigation, and cooling harvested fruit quickly.6PubMed Central. Cultural Control of Drosophila suzukii in Small Fruit-Current and Pending Tactics in the U.S.
Here is what each of those looks like in practice:
- Harvest often: Pick ripe berries every one to two days rather than letting them sit on the plant. SWD females strongly prefer fully ripe and overripe fruit, so removing it promptly shrinks the window of opportunity.
- Sanitation: Remove fallen, damaged, or overripe fruit from the ground immediately. Rotting berries left under the plants become breeding sites that fuel the next generation of flies.
- Pruning and airflow: SWD thrives in cool, humid microclimates. Thinning foliage and keeping the canopy open increases air circulation and lowers humidity around the fruit, making the environment less hospitable.
- Irrigation management: Drip irrigation rather than overhead sprinklers keeps the fruit surface drier and reduces the humid conditions the fly prefers.
None of these steps requires special equipment or chemicals. For a backyard strawberry patch, simply picking every ripe berry daily and removing any that fall to the ground goes a long way.
Monitoring With Traps and Baits
Trapping will not eliminate an SWD population on its own, but it serves two important purposes: it tells you whether the fly is present and roughly how many there are, and it draws some adults away from your fruit. The most common homemade trap is a plastic cup with small holes punched near the rim, filled with an attractant liquid and a drop of unscented dish soap to break the surface tension so flies that land in the liquid drown.
The choice of bait matters more than the trap design. In field trials comparing several attractants in berry crops, a yeast-and-sugar mixture consistently captured more SWD adults than apple cider vinegar, which is the bait most often recommended in gardening guides.7PubMed. Effect of trap design, bait type, and age on captures of Drosophila suzukii (Diptera: Drosophilidae) in berry crops Dissolving a packet of baker’s yeast with a tablespoon of sugar in warm water creates a fermenting solution that the flies find more attractive than vinegar alone. The downside is that yeast baits also capture more non-target insects, so they are better for population monitoring than selective control.
Researchers are also developing more advanced attract-and-kill approaches. One experimental bait uses engineered yeast that produces RNA molecules targeting a specific gene in SWD. In laboratory tests, flies that consumed this bait experienced high mortality within days.8PubMed Central. Development of an eco‐friendly RNAi yeast attractive targeted sugar bait that silences the shaker gene in spotted‐wing drosophila, Drosophila suzukii This technology is not commercially available yet, but it represents the direction research is heading: species-specific methods that do not harm beneficial insects.
Biological Control With Parasitoid Wasps and Nematodes
One of the more promising long-term strategies involves natural enemies of SWD. A tiny parasitoid wasp called Ganaspis brasiliensis was recently approved for release in both the United States and Europe as a classical biological control agent against SWD.9PubMed Central. Developing an artificial diet for rearing Ganaspis brasiliensis (Hymenoptera: Figitidae) on spotted-wing drosophila The wasp lays its own eggs inside SWD larvae, and its offspring consume the fly larva from the inside, killing it before it can develop into an adult.
Importantly, researchers found that G. brasiliensis is actually a complex of at least two genetically distinct groups. One group parasitizes drosophila larvae in many contexts, while the other is almost exclusively specific to larvae feeding in ripening fruit. Since SWD is the only drosophila species that attacks intact ripening fruit in the regions where it has invaded, this fruit-specialist group is considered the better candidate for biological control because it is less likely to harm other fly species.10PubMed Central. Evidence for a cryptic parasitoid species reveals its suitability as a biological control agent
For soil-dwelling pests that attack strawberry roots rather than fruit, entomopathogenic nematodes offer another biological option. These are microscopic worms that invade and kill insect larvae in the soil. Field studies in Egypt found that applying the nematode Heterorhabditis bacteriophora to strawberry plots reduced populations of root-feeding scarab beetle grubs and root-knot nematodes, and boosted fruit yields over multiple growing seasons.11Arab Journal for Plant Protection. Effect of Mulching Manures and Use of Heterorhabditis Bacteriophora on Strawberry Fruit Yield Temnorhynchus baal and Meloidogyne javanica Under Field Conditions Plots that did not receive the nematode treatment had roughly 70% more insect larvae recovered from the soil beneath dead plants.11Arab Journal for Plant Protection. Effect of Mulching Manures and Use of Heterorhabditis Bacteriophora on Strawberry Fruit Yield Temnorhynchus baal and Meloidogyne javanica Under Field Conditions Beneficial nematodes are widely available from garden supply companies and are applied by mixing them with water and drenching the soil. They are safe for humans, pets, and earthworms.
Chemical Sprays and the Problem of Resistance
Insecticides are part of the commercial toolkit against SWD, but they come with significant caveats that matter even for home gardeners. Spinosad, a naturally derived insecticide approved for organic use, has been one of the go-to products for SWD. Pyrethroid sprays are another common choice. Both have been effective in the past, but SWD is developing resistance to them.
A genetic study of resistant SWD populations found that flies resistant to the pyrethroid zeta-cypermethrin showed increased activity of metabolic enzymes that break down the chemical before it can kill them. In spinosad-resistant lines, two different resistance mechanisms appeared: one involved the same kind of enhanced metabolism, while the other involved changes to the fly’s outer cuticle that reduced how much insecticide could penetrate into the body in the first place.12PubMed Central. Transcriptome analysis of Drosophila suzukii reveals molecular mechanisms conferring pyrethroid and spinosad resistance Multiple resistance mechanisms evolving simultaneously is a worrying sign. It means that simply switching between two insecticide classes may not be enough to stay ahead of the fly’s adaptation.
For home gardeners, the practical message is that sprays should be a last resort, not a first line of defense. If you do use spinosad or a pyrethroid, follow label directions carefully, rotate between products with different modes of action, and combine sprays with the cultural and physical methods already described. Spraying alone, without sanitation, netting, or trapping, is a recipe for diminishing returns as local populations develop resistance.
Do Some Strawberry Varieties Resist Infestation Better?
It would be convenient if certain strawberry cultivars were naturally resistant to SWD, letting growers dodge the problem by choosing the right variety. The reality is less encouraging. A study that tested sixteen commercially important strawberry cultivars under controlled conditions found that every single one was susceptible to SWD infestation. There were statistically significant differences among the varieties, with some sustaining more egg-laying and larval development than others, but none was immune.13Revista Colombiana de Entomología. Susceptibility of Sixteen Strawberry (Fragaria × Ananassa) Cultivars To Drosophila Suzukii (Matsumura, 1931) (Diptera: Drosophilidae) In Southwestern Spain
Perhaps more surprising, the researchers found no correlation between any of the fruit quality traits they measured and infestation levels. Firmness, sugar content, pH, protein content, and phenolic compounds did not predict which varieties the flies preferred.13Revista Colombiana de Entomología. Susceptibility of Sixteen Strawberry (Fragaria × Ananassa) Cultivars To Drosophila Suzukii (Matsumura, 1931) (Diptera: Drosophilidae) In Southwestern Spain Firmer fruit is often assumed to be harder for the fly’s egg-laying organ to puncture, but at least in this study, firmness did not matter. That means you cannot reliably pick a cultivar to avoid the problem. Variety selection can be part of an integrated approach, particularly if local extension services have data on which cultivars perform best in your region, but it is not a standalone solution.
Are Strawberry Worms Harmful to Eat?
After all this discussion of larvae, a reasonable question is whether accidentally eating one will make you sick. The short answer is no. SWD larvae are not parasites of humans. They cannot survive in your digestive tract, they carry no known pathogens that infect people, and they are simply made of protein and fat. Eating a small fruit fly larva is about as harmful as accidentally swallowing a gnat. The revulsion people feel is entirely psychological, which is understandable but not a health concern.
The real quality issue is indirect. Heavy SWD infestation accelerates the breakdown of fruit tissue and introduces secondary fungal and bacterial infections into the berry. Fruit with many larvae tends to become soft, leaky, and prone to mold faster than uninfested fruit. So while the larvae themselves are harmless, the damaged fruit they leave behind spoils more quickly and may develop off flavors. Eating a slightly infested berry you pulled off the plant five minutes ago is fine. Eating a heavily infested berry that has been sitting at room temperature for two days is more likely to cause stomach upset, and that is because of microbial growth in the damaged tissue, not because of the larvae.
For anyone who finds the thought of eating larvae intolerable, the salt water soak and prompt refrigeration covered earlier will remove or kill the vast majority of them. Freezing berries for smoothies also kills any larvae instantly, though it does not remove them from the fruit. Whether that bothers you is a matter of personal comfort rather than food safety.