Boxfish (family Ostraciidae)
FishCoral reefMarine

Yellow boxfish (family Ostraciidae).
Image: Dronepicr, CC BY 3.0, via Wikimedia Commons.
Overview
Boxfish (family Ostraciidae) are among the most peculiar fish on the reef: their bodies are encased in a rigid, box-like shell of fused, bony plates (a “carapace”), so that — apart from the eyes, mouth, fins, and tail — they can barely bend at all. Often brightly coloured and spotted, like the well-known yellow boxfish, they look like little swimming boxes. Close relatives called cowfish add a pair of horn-like spines above the eyes.
Because their armour makes them stiff, boxfish can't swim with the usual side-to-side body flexing; instead they motor along by rapidly whirring their small fins, hovering and manoeuvring with surprising precision. And if seriously stressed, some boxfish can release a toxin into the surrounding water.
Note: “boxfish” covers a family (including cowfish and trunkfish); details here describe the group broadly. Treat general statements as approximate and verify against authoritative sources.
Habitat & Range
Boxfish live mainly on tropical and subtropical coral and rocky reefs and in seagrass beds, especially across the Indo-Pacific, with some species in the Atlantic. They tend to stay in shallow, sheltered reef areas, where they potter about over the bottom and around coral searching for food.
Diet
Boxfish are omnivores that feed on a mix of small reef life — algae, sponges, worms, small crustaceans, molluscs, and other invertebrates picked from the bottom. Some can blow jets of water at the sand to uncover buried prey. Their small mouths and careful, hovering movement suit a slow, methodical search for small food across the reef.
Behavior
The boxfish's rigid armoured box is both its protection and the reason for its unusual swimming. Unable to flex its body, it relies on rapidly fluttering fins for propulsion and steering, giving it a hovering, almost hummingbird-like style of movement that is remarkably stable. The bony shell deters many would-be predators, and boxfish are typically slow, deliberate, and seemingly unbothered as they cruise the reef. As a chemical backup, some boxfish can secrete a toxin (sometimes called ostracitoxin) into the water when badly stressed or threatened — a defence that can deter or harm predators, and that is well known to aquarists because a stressed boxfish can poison the water in a tank. Bright colours and spots may serve as a warning of this unpalatability.
Human Interaction & Conservation
Boxfish are popular with divers and underwater photographers for their comical, boxy looks, and some are kept by specialist marine aquarists — though with caution, since a stressed boxfish can release toxin and poison an entire aquarium. Their stiff, efficient, stable swimming has even inspired engineers and designers. They depend on healthy reefs, so reef degradation is the main concern, while most species remain reasonably common. Consult authoritative sources for status.
More photos of the boxfish

Boxfish (Ostracion).
Image: NasserHalaweh, CC BY-SA 4.0, via Wikimedia Commons.
Frequently Asked Questions — Boxfish
Why is a boxfish shaped like a box?
How does a boxfish swim if it can't bend?
Are boxfish poisonous?
What's the difference between a boxfish, a cowfish, and a trunkfish?
Sources and further reading
Authoritative wildlife references used for general educational context. Conservation status should always be verified against current IUCN Red List data. External links open in a new tab.
- ReferenceBritannica — Boxfish (trunkfish) — Editor-reviewed encyclopedia entry
- GovernmentNOAA Fisheries — Marine Life — U.S. government science agency for marine species and habitats
- Wildlife referenceIUCN Red List of Threatened Species — Authoritative source for current conservation status

