Razorfish is a common name shared by several very different marine animals, all of them linked by the same visual cue: a thin, laterally compressed body that suggests the edge of a blade. The most commonly encountered razorfish are the razor wrasses, tropical reef-associated fish in the family Labridae that dive headfirst into sand to escape predators. But the name is also applied to shrimpfish, a bizarre group of armored fish that swim vertically with their heads pointing down, and even to certain bivalve molluscs with elongated, blade-like shells. Understanding which animal is being discussed matters, because these creatures are not closely related and live very different lives.
Why the Same Name Covers Such Different Animals
The naming confusion around “razorfish” runs deep. Within the wrasse family alone, species in the genera Xyrichtys, Iniistius, and Novaculops all go by razorfish, razor wrasse, or cleaver wrasse, depending on the region and the author. Meanwhile, the shrimpfish (Centriscus and Aeoliscus), which belong to an entirely different order of fish (Syngnathiformes, related to seahorses and pipefish), are also called razorfish in many field guides and aquarium references. And in European seafood markets, “razorfish” or “razor clam” often refers to burrowing bivalves in the families Solenidae and Pharidae, whose long, narrow shells look like old-fashioned straight razors. None of these animals share recent evolutionary ancestry. The name is purely descriptive, applied independently to anything blade-shaped that lives in the ocean.
Razor Wrasses and Their Defining Features
The razor wrasses are the group most commonly meant when divers and aquarium hobbyists say “razorfish.” These are members of the family Labridae, a huge family of reef fish that includes parrotfish and cleaner wrasses. Razor wrasses stand out from their relatives because of their strongly compressed, deep bodies, with a steep forehead that drops almost vertically to the mouth. This gives them a hatchet-like profile when viewed head-on. Most species are relatively small, typically between 10 and 25 centimeters, though some reach 30 centimeters or more.
The genus Xyrichtys includes species like the pearly razorfish (Xyrichtys novacula), one of the best-studied members of the group. It is found across the Mediterranean and the eastern Atlantic. The genus Iniistius, meanwhile, includes many Indo-Pacific species with striking color patterns and elaborate fin shapes. New species are still being described: a razor wrasse from the Philippines and western Australia, Iniistius bakunawa, was formally named as recently as 2023. Both genera share the compressed body plan and the remarkable ability to vanish into sand at a moment’s notice.
The Sand-Diving Escape
The most distinctive behavior of razor wrasses is their sand dive. When startled, these fish execute a rapid, forceful headfirst plunge into the substrate, then use undulatory body movements to wriggle completely beneath the surface until they are hidden from view.1PubMed. Burrowing fishes: Kinematics, morphology and phylogeny of sand-diving wrasses (Labridae) The entire sequence can happen in under a second. Once buried, the fish may stay beneath the sand for minutes at a time, effectively invisible to any predator that was chasing it.
Sand diving is not just a panic response. Razor wrasses also bury themselves to sleep at night. As dusk falls, they plunge into the sand and remain concealed until morning. This nocturnal burial likely protects them from predators that hunt after dark, such as moray eels. The compressed head shape, which might look odd on a reef fish, turns out to be a well-adapted tool for splitting sand grains apart during the initial plunge, functioning much like the head of a hatchet splitting wood.
Where Razor Wrasses Live
Because they depend on sand for both escape and sleep, razor wrasses are closely tied to sandy habitats. You will not find them over coral rubble or rocky reef without an adjacent patch of open sand. Research on the pearly razorfish in the Mediterranean showed that the fish’s abundance was not linked to depth or season but was strongly tied to the type of sand on the bottom. The highest densities turned up in areas of moderately to well-sorted, coarse or very coarse sand.2Scientia Marina. Habitat use by the pearly razorfish, Xyrichtys novacula (Pisces: Labridae) Fine silt or muddy bottoms simply do not work for a fish that needs to bury itself quickly. The grain size has to be large enough to allow a fast dive but fine enough that the fish can fully conceal itself.
Indo-Pacific razor wrasses tend to live in similar sandy patches near reefs, seagrass beds, or rubble zones in tropical and subtropical waters. Some species range from shallow lagoons down to depths of around 60 meters or more, but most are found in water shallower than 30 meters, where wave action keeps the sand well sorted and relatively coarse.
What Razor Wrasses Eat
Razor wrasses are carnivorous, feeding on small invertebrates they find on or in the sandy bottom. A detailed study of the pearly razorfish’s diet off the coast of Lampedusa found that crustaceans made up the bulk of what these fish ate, followed by colonial ascidians, molluscs, and polychaete worms.3PubMed. Temporal variations in the diet of pearly razorfish Xyrichtys novacula (Osteichthyes: Labridae) The diet shifted with the seasons. In winter, the fish ate fewer types of prey and relied heavily on colonial ascidians. In spring and summer, the menu expanded considerably, with a wider array of crustaceans and other small animals. The researchers also found that razor wrasses do not feed exclusively on animals living in or on the sand; they also eat pelagic organisms like copepods, suggesting they opportunistically snack on whatever drifts within range.3PubMed. Temporal variations in the diet of pearly razorfish Xyrichtys novacula (Osteichthyes: Labridae)
This flexible diet is consistent with what we know about wrasses generally. They tend to be generalist predators, picking through substrate or plucking small organisms from surfaces. For razor wrasses, the sandy habitat provides both shelter and a hunting ground, since many of their prey species are themselves sand-dwellers or live among nearby seagrass.
Sex Change in Razor Wrasses
Like many wrasses, razor wrasses are protogynous hermaphrodites, meaning individuals begin life as females and some later transition to males. This sex change is typically triggered by social conditions within a group. In a typical scenario, the dominant male in a small harem dies or is removed, and the largest or most socially dominant female begins transforming into a male, taking over the reproductive role. The transformation involves changes in color, body size, behavior, and internal reproductive anatomy.
This pattern has been documented in several razor wrasse species across different genera. The result is that the largest, most colorful individuals in a population are almost always males that were formerly female. For divers, this means the flashy, boldly patterned razor wrasses hovering over a sandy patch are the terminal-phase males, while the smaller, more drably colored fish nearby are females or juveniles. The social dynamics driving sex change also mean that removing a single large male from a population does not permanently reduce male numbers, since a female will eventually step into the role.
Shrimpfish, the Vertical Razorfish
The other major group of fish called razorfish are the shrimpfish, members of the family Centriscidae in the order Syngnathiformes. These are among the most unusual-looking fish in the ocean. A shrimpfish has an elongated, strongly compressed body encased in a rigid exoskeleton of translucent bony plates, giving it the look of a thin, transparent sliver. Researchers have described the overall shape as resembling an “edible pea pod,” with a rounded dorsal edge and a sharp, knife-like keel along the belly.4Integrative Organismal Biology. Swimming Turned on Its Head: Stability and Maneuverability of the Shrimpfish (Aeoliscus punctulatus)
The most famous feature of shrimpfish is their head-down vertical swimming posture. They spend most of their time oriented straight up and down, with the snout pointing toward the seafloor. This posture serves an impressive camouflage function. Shrimpfish commonly hide among the long, needle-like spines of sea urchins such as Diadema, aligning their slender bodies with the spines so that predators have difficulty distinguishing fish from urchin spine.4Integrative Organismal Biology. Swimming Turned on Its Head: Stability and Maneuverability of the Shrimpfish (Aeoliscus punctulatus) Groups of shrimpfish will hover within an urchin’s spine canopy, swaying gently with the current, nearly invisible to passing predators. Some species also hide among branching corals or the fronds of crinoids, using the same principle of blending their narrow profile into a field of similar-looking vertical structures.
How Shrimpfish Move
Swimming vertically with a rigid, armored body presents serious engineering challenges, and shrimpfish have evolved some clever solutions. Their body is so stiff that conventional undulatory swimming is largely off the table. Instead, they propel themselves primarily with small, transparent pectoral and anal fins, hovering and maneuvering with remarkable precision for a fish that looks like it should not be able to swim at all.
When a shrimpfish needs to move fast, it rotates into a horizontal position and performs a burst swim, cleaving the water with its razor-thin body in the cross-sectional plane. The body’s cross-section is essentially streamlined in this orientation. If shrimpfish swam head-first like a typical fish, their extreme elongation would produce a body shape roughly three times longer than the optimal ratio for minimizing drag. But by swimming on their side during fast bursts, the effective body proportions drop to only about 20 percent below the ideal range for a streamlined body.4Integrative Organismal Biology. Swimming Turned on Its Head: Stability and Maneuverability of the Shrimpfish (Aeoliscus punctulatus) In other words, the body plan that looks bizarre in daily life turns out to be quite efficient when the fish needs to escape danger in a hurry.
Shrimpfish are found across the Indo-Pacific, from the Red Sea and East Africa to Japan, Australia, and the islands of the central Pacific. They tend to inhabit shallow reefs and lagoons where their preferred hiding partners (sea urchins, branching corals, or crinoids) are abundant. The two main genera, Aeoliscus and Centriscus, differ somewhat in body proportions and spine structure, but both share the vertical posture and the reliance on camouflage among spiny hosts.
Razor Clams and Pen Shells
Outside of fish entirely, the name “razorfish” also pops up in the world of bivalve molluscs, particularly in British and Irish English. Razor clams (families Solenidae and Pharidae) are elongated, tube-shaped bivalves with shells that resemble the handle of a straight razor. They live buried vertically in sandy or muddy intertidal and subtidal flats and can dig with startling speed, using a muscular foot that inflates and contracts to pull the animal downward through wet sand. Harvesters on tidal flats often use salt to coax them out of their burrows, since the salt mimics the salinity shock of a wave and triggers the clam to surface briefly.
In some regions, particularly around Australia and the Mediterranean, the name “razorfish” is also applied to pen shells (family Pinnidae), which are large, fan-shaped bivalves that anchor themselves point-down in sandy or muddy substrates. Pen shells can grow quite large, sometimes exceeding 60 centimeters. Their shells are thin and fragile despite their size, and they support small ecosystems on their surfaces, with encrusting organisms like bryozoans and tube-dwelling worms settling on the exposed shell. These molluscan razorfish share the theme of living partially buried in sediment, but they are otherwise completely unrelated to the fish that carry the same name.
Razor Wrasses in the Aquarium Trade
Several species of razor wrasses, particularly those in the genus Iniistius, are sold in the marine aquarium hobby. They are appealing because of their vivid coloration and unusual body shape, but they come with specific care requirements that catch many hobbyists off guard. The most important is the need for a deep sand bed. Without at least 10 to 15 centimeters of fine to medium sand, the fish cannot perform its instinctive nightly burial and will become severely stressed. A fish that cannot bury itself at night often refuses to eat, develops infections, or injures itself by attempting to dive into insufficient substrate.
Razor wrasses are also notorious jumpers. The same explosive speed that lets them plunge into sand can launch them out of an open-topped aquarium with no warning. A tight-fitting lid or a mesh cover is essential. Feeding is usually straightforward once the fish is settled, since they accept a range of meaty frozen foods that approximate the small crustaceans and invertebrates of their natural diet. But the combination of a deep sand bed requirement, jumping risk, and initial skittishness means razor wrasses are generally recommended for experienced aquarists with well-established tanks rather than beginners.
Tank mates matter as well. Razor wrasses can be kept with most peaceful reef fish, but housing more than one male of the same species in anything short of a very large aquarium usually leads to aggression. Given the sex-change biology described earlier, adding multiple individuals of the same species can result in the dominant fish transitioning to male and harassing subordinates. Hobbyists who want a pair typically start with two juveniles or two obvious females and allow the social hierarchy to sort itself out naturally.
Conservation and Commercial Fishing
The pearly razorfish has become a commercially targeted species in parts of the Mediterranean, where it is caught by small-scale fisheries using trammel nets over sandy bottoms. In the Balearic Islands and along stretches of the Italian and North African coasts, it is considered a desirable table fish with firm, white flesh. Fishing pressure on the species has increased in recent decades, and because razor wrasses are closely tied to a specific habitat type, overfishing a local sandy patch can deplete the resident population without easy replenishment from adjacent rocky or reef areas.
The reliance on well-sorted coarse sand also makes razor wrasses vulnerable to habitat degradation. Coastal development, dredging, and the construction of artificial structures can alter sediment composition, turning formerly suitable habitat into silty, compacted substrate that the fish cannot dive into. Seagrass loss is another concern, since seagrass beds adjacent to sandy areas provide foraging habitat and nursery space for many of the invertebrates that razor wrasses eat. Marine protected areas that include sandy habitats are likely the most effective conservation tool, though sandy bottoms are often overlooked in marine reserve design because they appear barren compared to coral reefs or rocky outcrops.
Shrimpfish face a different set of pressures. They are not commercially fished but are occasionally collected for aquariums, where their unusual appearance commands interest despite their difficulty to keep alive in captivity. Their dependence on specific hosts like Diadema urchins means that urchin die-offs, which have occurred repeatedly across the Caribbean and parts of the Indo-Pacific due to disease and environmental stress, can strip shrimpfish of their primary hiding spots. A reef that loses its long-spined urchins does not just lose an herbivore; it also loses the living camouflage infrastructure that shrimpfish and other commensals depend on.