Problem Database

Tiny White Worms in Your Fish Tank — What They Are and What to Do

Tiny white worms on the glass or wriggling in the water are almost always harmless — but which kind are they? Here is how to identify detritus worms, planaria, and nematodes, and what each means for your tank.

Few aquarium sights trigger more panic than tiny white worms — wriggling in the water column, squirming in the substrate, or inching across the glass. The good news, which you should hear first: the overwhelming majority of tiny white worms in a fish tank are completely harmless, and most are a normal part of a healthy aquarium. The catch is that "tiny white worm" describes several different organisms, and one of them (planaria) matters in a shrimp tank. This page is the identification triage: how to tell which white worm you have, what each one means, and what — if anything — to do about it. For the deep dives, it links straight to the dedicated entries.

First: Don't Panic, Identify

The single most important step is identification, because the right response depends entirely on which worm you have. Reaching for chemicals before identifying is the common mistake — most white worms need no treatment at all, and the wrong treatment can harm shrimp and beneficial life. So before anything, watch the worm: its shape, how it moves, and where it lives tell you what it is.

Almost everything you will find falls into three groups: detritus worms, planaria, and free-living nematodes. Here is how to tell them apart.

Identification: The Three Common White Worms

FeatureDetritus wormsPlanaria (flatworm)Nematodes (e.g. on glass)
BodyRound, segmented, thread-likeFlat, ribbon-likeVery thin, smooth, threadlike
HeadNo defined headDistinct arrow/triangle headNo defined head
MovementWriggle/squirm, often anchored in substrate, drift up when disturbedSmooth glidingWhip-like wriggle, often "inchworm" on glass
WhereIn and on the substrate; in water column after disturbanceGlide on glass and hardscapeOn glass, in biofilm
ConcernHarmlessRisk to shrimp eggs/shrimpletsMostly harmless

The three quick tells: detritus worms wriggle and have no head, planaria glide and have an arrow-shaped head, and nematodes are extremely thin and whip/inch along the glass.

What Each One Means

Detritus worms are the most common answer by far. They are harmless segmented worms that live in the substrate and feed on waste; a sudden visible bloom is a water-quality signal (excess detritus), not a disease. Full detail: What Are Detritus Worms.

Planaria are flatworms with a distinctive arrow-shaped head that glide on the glass. They are harmless to fish but prey on shrimp eggs and shrimplets, making them the one white "worm" worth controlling in a shrimp tank. Full detail: What Is Planaria.

Free-living nematodes are tiny threadlike roundworms that appear on the glass and in biofilm, especially in newer or overfed tanks. They are essentially harmless — closely related to the microworms breeders culture as fry food — and fish often eat them. They fade as the tank matures and feeding is controlled.

A note on the rare exception: some white worms attached to a fish's body could be a parasite (e.g. anchor worm or, internally, signs of intestinal worms), which is entirely different from free-living worms in the water and substrate. If worms are attached to or protruding from a fish itself, that is a parasite question, not a microfauna one — but free-swimming and substrate worms are almost never parasitic.

What Causes Them

Whichever harmless type you have, the cause is the same and so is the fix: overfeeding and accumulated detritus. All three groups bloom when there is surplus organic matter to feed on. They arrive unnoticed on plants, decor, or livestock and only become numerous when there is plenty of food. A visible white-worm bloom is the tank telling you to clean up and feed less — the worms are the warning light, not the malfunction.

Should You Remove Them, and How

For detritus worms and nematodes: removal is optional — they are harmless. Reducing them is really just good maintenance:

  • Cut feeding and remove uneaten food.
  • Vacuum the substrate during water changes to remove worms and the detritus feeding them.
  • Increase water changes temporarily to export waste.
  • Skip the chemicals — they are unnecessary for harmless worms and risk shrimp and beneficial life.

For planaria in a shrimp tank: control is recommended (cause-correction plus bait-trapping), as covered in the planaria entry. Everywhere else, even planaria is mostly cosmetic.

Within a week or two of feeding less and cleaning the substrate, a harmless white-worm bloom fades back to the invisible background level present in every healthy tank.

Frequently Asked Questions

Are tiny white worms in my fish tank harmful?

Almost always no. The overwhelming majority are detritus worms or free-living nematodes, both harmless detritivores that fish often eat. The one exception is planaria — flat worms with an arrow-shaped head that glide on the glass — which prey on shrimp eggs and shrimplets and are worth controlling in a shrimp tank. Identify the worm before doing anything, since the right response depends on which kind it is.

How do I identify the white worms in my tank?

Watch the shape and movement. Detritus worms are round, headless, and wriggle or squirm in the substrate. Planaria are flat, ribbon-like, glide smoothly, and have a distinct arrow-shaped head. Nematodes are extremely thin, whip or inch along the glass, and have no head. Detritus worms and nematodes are harmless; planaria is the one to watch in a shrimp tank.

What causes tiny white worms in an aquarium?

All the common harmless white worms — detritus worms, nematodes, and planaria — bloom because of overfeeding and accumulated detritus, which give them surplus food. They arrive unnoticed on plants and decor and only become numerous when there is plenty of waste to feed on. A visible bloom is a signal to feed less and clean the substrate, not a disease.

How do I get rid of white worms in my fish tank?

For the harmless types (detritus worms, nematodes), reduce feeding, vacuum the substrate during water changes, and temporarily increase water changes — the population tracks the food supply and fades within a week or two. Skip chemicals, which are unnecessary and risk shrimp. For planaria in a shrimp tank, add cause-correction plus an overnight bait trap as described in the dedicated planaria guide.

Are white worms a sign of a dirty tank?

A sudden bloom of white worms usually does indicate excess organic waste — overfeeding or an under-cleaned substrate — so in that sense it is a useful water-quality signal. However, a small, mostly invisible population of these worms lives in virtually every healthy, established tank and is a normal part of the ecosystem. The worms themselves are harmless; the bloom is just telling you to tidy up.