Fish Identifier
Yellow Boxfish (Ostracion cubicus)
2014 11 Moalboal 62 yellow box with mouth (16050157455) by Lakshmi Sawitri, via Wikimedia Commons, licensed under CC BY 2.0
reef

Yellow Boxfish

Ostracion cubicus

The Yellow Boxfish is a cube-shaped reef fish, bright yellow with black spots as a juvenile, that swims with slow, hovering movements thanks to its rigid armored body.

Habitat
Coral reefs, Indo-Pacific
Size
25-45 cm
Diet
Omnivore (algae, invertebrates)

Spotted a fish like this?

Identify any fish from a photo, free.

Overview

The Yellow Boxfish (Ostracion cubicus), also called the cube boxfish, is a member of the boxfish family Ostraciidae found throughout the tropical Indo-Pacific, from the Red Sea and East Africa to Japan, Australia, and the central Pacific. Its body is encased in a rigid, fused bony carapace shaped like a cube, an unusual adaptation among fish. Juveniles are a vivid solid yellow dotted with black spots, making them one of the most recognizable young reef fish; adults become duller, taking on olive-brown to bluish-gray tones with faded spotting. Widespread and common on reefs throughout its range, it is not currently considered threatened.

How to identify it

  • Rigid, cube-shaped body encased in fused bony plates
  • Juveniles: bright yellow with evenly spaced black spots
  • Adults: duller yellow-brown to bluish-gray, spots less distinct
  • Small, protrusible mouth with thick lips
  • Fins emerge through small openings in the shell; tail fin rounded
  • No pelvic fins; slow, hovering swimming style
  • Can secrete toxic skin mucus when stressed

The vivid yellow-and-black juvenile coloring is unmistakable; adults are best identified by the cubic body shape shared with other boxfish, distinguished by size and duller yellow base tone.

Habitat & range

Yellow Boxfish are widespread across the tropical Indo-Pacific, from the Red Sea and East African coast to Hawaii and the central Pacific. They inhabit coral reefs, lagoons, and adjacent rubble or sand areas, typically from shallow water to about 35 m depth. Juveniles are usually found sheltering alone within branching coral or under ledges, while adults range more widely over open reef and sand-rubble zones. They favor clear, current-influenced reef water with abundant hiding places among coral and rock, and are frequently encountered on both sheltered lagoon reefs and more exposed outer reef slopes.

Behavior & ecology

Yellow Boxfish are solitary and slow-moving, propelling themselves with rippling motions of the dorsal, anal, and pectoral fins rather than strong tail beats, since their rigid shell prevents body flexing. They forage during the day, picking at algae, sponges, tunicates, worms, and small invertebrates from reef surfaces and sand. When threatened, rather than fleeing rapidly, they rely on their bony armor and can release a toxic mucus from the skin that deters predators, a defense that can affect other fish in confined spaces such as aquariums. Juveniles are territorial over small home patches, while adults have larger, more overlapping ranges.

Frequently asked questions

Why do juvenile Yellow Boxfish look so different from adults?

Juveniles are vivid yellow with bold black spots for camouflage and warning, while adults fade to duller yellow-brown or gray tones as they mature.

Can a Yellow Boxfish bend its body while swimming?

No, its rigid bony shell prevents flexing, so it swims by rippling its dorsal, anal, and pectoral fins.

How does the Yellow Boxfish defend itself?

It relies on its rigid bony shell and, when stressed, can release a toxic skin mucus as a chemical defense rather than a bite or sting.

Yellow Boxfish guides

In-depth guides for identifying, understanding, and caring about Yellow Boxfish.