S
Species Profile

Sunbeam Snake

Xenopeltis unicolor

Rainbow shine, underground life
iStock.com/reptiles4all

Sunbeam Snake Distribution

Click a location to explore more animals from that region

Loading map...
A head shot of a sunbeam snake

At a Glance

Wild Species
Also Known As Iridescent snake, Xenopeltid
Diet Carnivore
Activity Nocturnal+
Status Least Concern
Did You Know?

Its trademark "sunbeam" look is structural iridescence (not pigments): microscopic scale surface architecture refracts light to make an oil-slick rainbow sheen.

Scientific Classification

A nonvenomous, fossorial (burrowing) Southeast Asian snake known for extremely smooth, highly iridescent scales that show a rainbow-like “sunbeam” sheen under light.

Kingdom
Animalia
Phylum
Chordata
Class
Reptilia
Order
Squamata
Family
Xenopeltidae
Genus
Xenopeltis
Species
unicolor

Distinguishing Features

  • Strong rainbow iridescence on dark, smooth scales (most striking trait)
  • Fossorial build with a glossy, cylindrical body and small head not strongly distinct from the neck
  • Generally nocturnal/crepuscular surface activity, often after rains
  • Nonvenomous; typically feeds on small vertebrates (e.g., lizards, small snakes, amphibians)

Physical Measurements

Length
3 ft 3 in (1 ft 12 in – 4 ft 3 in)

Appearance

Primary Colors
Secondary Colors
Skin Type Very smooth, glossy, highly iridescent scales (non-keeled), giving a polished 'sunbeam' appearance; cylindrical, burrowing-adapted body surface.
Distinctive Features
  • Extremely smooth, mirror-like scales with intense rainbow/oil-slick iridescence when illuminated at an angle.
  • Body cylindrical and muscular for fossorial movement; head only slightly distinct from neck.
  • Small eyes and low-profile head consistent with a burrowing lifestyle.
  • Typically dark dorsum with a noticeably paler cream/whitish belly.
  • Nonvenomous; commonly remains hidden in moist lowland soils and leaf litter, emerging mainly at night or after rains.
  • Southeast Asian lowland distribution; frequently associated with humid forest edges, plantations, and other moist-soil habitats.
  • Adult total length commonly reported around 60-120 cm; larger individuals around ~130 cm are reported in some references.
  • Published longevity data are limited; captive individuals are often reported to live beyond 10 years under appropriate care.

Sexual Dimorphism

Sexual dimorphism is subtle. Females are often slightly larger/heavier-bodied, while males typically have proportionally longer tails and may show a more noticeable post-cloacal thickening from hemipenes.

  • Proportionally longer tail length relative to total length.
  • More pronounced post-cloacal tail base/hemipenal bulge in adult males.
  • On average slightly larger and more robust body girth.
  • Shorter tail proportion relative to males.

Did You Know?

Its trademark "sunbeam" look is structural iridescence (not pigments): microscopic scale surface architecture refracts light to make an oil-slick rainbow sheen.

Adults are commonly ~70-100 cm total length; large individuals are reported to reach ~1.2-1.3 m.

It is a true burrower: the body is very cylindrical with exceptionally smooth, polished dorsal scales that reduce friction in soil.

It is nonvenomous and usually avoids conflict-when handled it often tries to "vanish" by forcefully pushing its head into leaf litter or loose substrate.

Reproduction is oviparous; published clutch reports are typically in the single digits, with clutches commonly cited around ~2-12 eggs depending on female size and locality.

A key identification trait is the very smooth scalation with 15 dorsal scale rows at midbody (typical for Xenopeltis), giving it a lacquered appearance.

Captive longevity is not well documented in the scientific literature; hobby/zoo husbandry records frequently report survival into the 10+ year range under stable conditions.

Unique Adaptations

  • Structural iridescence: the scale microstructure acts like a diffraction grating, producing intense rainbow highlights when illuminated at an angle.
  • Ultra-smooth, glossy scales: minimize abrasion and drag while moving through soil-an advantage for a life spent largely underground.
  • Burrowing head design: a low, wedge-like head with a prominent rostral scale helps it part soil and leaf litter.
  • Cylindrical body plan: nearly uniform diameter supports efficient forward motion in tunnels and compact subterranean spaces.
  • Cryptic, lowland moisture tolerance: thrives in warm, humid soils typical of Southeast Asian lowlands, including disturbed habitats where suitable damp substrate remains.

Interesting Behaviors

  • Fossorial "disappearing act": when threatened, it drives the snout downward and uses whole-body waves to tunnel rapidly into soft soil or mulch.
  • Nocturnal and rain-linked activity: often encountered on the surface at night, especially after rains when soils are soft and prey is active.
  • Sit-and-wait strikes in tight spaces: in burrows or under debris it may ambush prey with short, fast lunges rather than long pursuits.
  • Defensive restraint: typically relies on concealment; if restrained it may thrash, release cloacal musk, and deliver a firm (nonvenomous) bite.
  • Head-first probing: methodically pushes the reinforced snout under roots, litter, or clods to locate cavities and prey.
  • Moisture-seeking sheltering: favors humid refuges (under logs, in rotting vegetation, along ditch banks, rice-field margins) and retreats underground during heat or dryness.

Cultural Significance

The sunbeam snake (Xenopeltis unicolor) is named for its shiny, rainbow-like scales. It is a secretive, burrowing snake, but people collect and trade it worldwide for pets and skins, the main way people interact with it.

Myths & Legends

Name-legend in natural history: early European collectors in Southeast Asia popularized the idea that the snake "captures sunbeams" on its skin-an image that became embedded in the common name "sunbeam snake."

In parts of Indonesia and Malaysia, the Sunbeam Snake (Xenopeltis unicolor) is called a "rainbow snake" because its shiny, rainbow-like scales appear after rain near ditches, rice-field edges, and wet spots.

The species name Xenopeltis unicolor means 'one-colored.' In shade it can look plain brown or black, which created field stories about its dull underground look versus a sudden rainbow flash in sunlight.

Modern herpetoculture lore: among keepers, it is often spoken of as a "treasure you rarely see," because it spends most of its time hidden-an anecdotal, culture-of-practice narrative that mirrors its natural secretive behavior.

Conservation Status

LC Least Concern

Widespread and abundant in the wild.

Population Unknown

Life Cycle

Birth 8 hatchlings

Lifespan

In the Wild
0 years
In Captivity
10–15 years

Reproduction

Mating System Promiscuity
Social Structure Solitary
Breeding Pattern Transient
Fertilization Internal Fertilization
Birth Type Internal_fertilization

Solitary, fossorial adults meet briefly to mate via internal fertilization, with no pair bond. Like many snakes, individuals likely mate with multiple partners within a breeding season; females are oviparous and reported clutches are about 4-10 eggs.

Behavior & Ecology

Social Solitary Group: 1
Activity Nocturnal, Crepuscular
Diet Carnivore Small mammals (rodents)

Temperament

Shy, secretive fossorial snake; avoids confrontation and attempts to burrow when disturbed (Cox et al., 1998; Das, 2010).
Generally non-aggressive; may struggle vigorously and release cloacal musk when handled (Das, 2010).
Sunbeam Snake (Xenopeltis unicolor) is mostly solitary and lives in burrows. It comes above ground more after rain and at dusk or night, though how often varies by location.
Size note (measurement data): adult total length commonly reported ~70-100 cm; larger individuals reported around ~130 cm in regional references, but rigorous population-based size datasets are limited (Das, 2010; regional faunal accounts).

Communication

Hissing (defensive exhalation), typically when threatened at the surface.
Chemical sensing via tongue-flicking to vomeronasal organ; pheromonal cues used for mate finding General snake mechanism; applicable to Xenopeltis as in Squamata
Tactile communication during courtship/mating Body contact, alignment, tail positioning
Substrate-borne vibrations/body movements as a defensive signal and to deter handling; primarily relies on concealment rather than signaling Field guides: Cox et al., 1998; Das, 2010

Habitat

Biomes:
Tropical Rainforest Tropical Dry Forest Wetland
Terrain:
Plains Valley Hilly Riverine
Elevation: Up to 4921 ft 3 in

Ecological Role

Mid-level predator in Southeast Asian forest-floor and agricultural-edge ecosystems; important controller of small vertebrate populations in leaf-litter/soil microhabitats.

Regulates populations of small mammals (potentially including crop/pest rodents) Regulates lizard and amphibian populations in forest-floor food webs Transfers energy from fossorial/leaf-litter prey communities to higher predators (raptors, larger snakes, carnivorous mammals)

Diet Details

Main Prey:
Small mammals Lizards Frogs and other small amphibians Snakes

Human Interaction

Domestication Status

Wild

Xenopeltis unicolor (sunbeam snake) is not domesticated; most captive animals are wild-caught. Its fossorial life, easily stressed nature, and need for special humidity and substrate make captive breeding rare. Adults reach about 0.7–1.0 m. It appears in the pet trade, is killed during digging/farming, is used in zoo education, and is rarely studied.

Danger Level

Low
  • Nonvenomous bite (usually superficial; risk increases if restrained/handled)
  • Defensive musk/fecal discharge (nuisance; possible skin/eye irritation)
  • Zoonotic infection risk common to reptiles (e.g., Salmonella) from handling/poor hygiene
  • Higher parasite/health uncertainty when animals are wild-caught (risk to other captive reptiles; indirect risk via handling/cleaning)

As a Pet

Not Suitable as Pet

Legality: Sunbeam Snake (Xenopeltis unicolor) is usually legal to own in many U.S. states and places that allow nonvenomous snakes. Not typically on CITES, but export, import, and local rules may apply—check first.

Care Level: Experienced

Purchase Cost: $50 - $250
Lifetime Cost: $2,000 - $6,000

Economic Value

Uses:
Pet trade (live animal) Public education/zoo display Ecosystem services (predation on small vertebrates/invertebrates) Scientific/biological reference in regional herpetology
Products:
  • live specimens for the reptile trade (often wild-caught)
  • zoo/education exhibits featuring iridescent scalation

Relationships

Predators 5

King Cobra
King Cobra Ophiophagus hannah
Monocled Cobra
Monocled Cobra Naja kaouthia
Common Water Monitor
Common Water Monitor Varanus salvator
Crested Serpent Eagle Spilornis cheela
Oriental Rat Snake Ptyas mucosa

Related Species 2

Hainan Sunbeam Snake Xenopeltis hainanensis Shared Genus
Intermediate Sunbeam Snake Xenopeltis intermedius Shared Genus

Ecological Equivalents 4

Animals that fill a similar ecological role in their ecosystem

Red-tailed Pipe Snake
Red-tailed Pipe Snake Cylindrophis ruffus Southeast Asian, largely fossorial (cryptozoic) snake occupying similar lowland forest and edge habitats; a burrower that takes small vertebrate prey in leaf-litter and soil microhabitats.
Schlegel's Reed Snake Calamaria schlegeli Small, secretive, fossorial Southeast Asian snake frequently encountered in soil and leaf litter. Shares the same burrowing/hidden-forager niche, although it typically specializes on smaller prey.
Oriental Rat Snake Ptyas mucosa Common lowland Southeast Asian snake that overlaps geographically and in terrestrial foraging around forest edges and agricultural mosaics where sunbeam snakes are often found. A potential competitor for small vertebrate prey and also a likely predator of smaller snakes.
Common Water Monitor
Common Water Monitor Varanus salvator Large, generalist Southeast Asian predator that forages in the same lowland habitats and frequently excavates or raids burrows and leaf litter, making it a strong ecological analogue as a shared-habitat predator of fossorial reptiles.

The Sunbeam snake is one of two species of iridescent-scaled, non-venomous, nocturnal snake found in Southeast Asia.

Their scales in the shade can look brown, pink, or purplish, but in the light, the dark gray, black, or brown scales flash with intense, metallic color. They are occasionally kept as pets because they are relatively docile and require only a small tank size. Sunbeam snakes are one of the oldest living reptile species and have a skeletal structure that differs significantly from newer species.

Sunbeam Snake infographic

Six Amazing Facts

  1. Sunbeam snakes are nocturnal.
  2. Unlike most other snakes, sunbeam snakes enjoy the dampness.
  3. Sunbeam snakes have two lungs instead of just a single lung, like most snake species.
  4. Sunbeam snakes like to burrow in the mud.
  5. An albino sunbeam snake appears pink instead of black.
  6. Sunbeam snakes are a type of constrictor, meaning they kill their prey by squeezing it.

Where To Find Them

10 Most Beautiful Snakes - Sunbeam Snake

Sunbeam snakes are iridescent and beautiful.

The sunbeam snake is endemic to Southeast Asia and Indonesia. Its cousin, xenopeltis hainanensis is found in China and Vietnam. They enjoy moist terrain with lots of damp vegetation and mud in which to burrow until nightfall, so they can often be found burrowing in the muck or under leaves. They are found in forests and lower mountain forests with damp ground vegetation, swampy scrublands, rice paddies, and lowland river valleys.

Scientific Name

A sunbeam snake on leaf litter

In certain light, sunbeam snakes’ scales have an iridescent rainbow glow.

The sunbeam snake comes from the family xenopeltidae and, like all snakes, is in the class reptilia. There are three species of sunbeam snake recognized, including the sunbeam snake, sometimes known as the iridescent ground snake. The scientific names for the three species of sunbeam snakes are xenopeltis unicolor, which is the more common sunbeam snake discussed here in this article, and xenopeltis hainanensis and xenopeltis intermedius. There are only a few small differences between them, mainly with regard to body length and tail size. Xenopeltis is a Greek word meaning small shield, while unicolor means “of one color” in English.

History and Evolution

A sunbeam snake on leaf litter

Sunbeam snakes have been on earth for over 100 million years.

The earliest known ancestor of snakes was a nighttime hunter that possessed small hindlegs with ankles and toes. Researchers analyzed fossils, genetics, and anatomy of 73 snakes and lizards and concluded that snakes originated on land, not in the ocean, which adds to an ongoing discussion. It is believed that these creatures developed in the warm, woody climates of the Southern Hemisphere about 128 million years ago. Snakes have an astonishing variety, with over 3,400 living species living in diverse habitats such as on land, in water, and in trees. However, there is limited information about where and when they evolved from and what their original ancestor was like in terms of behavior and appearance.

For years, the source of snakes has been a subject of ongoing discussion. Recently, though, researchers have examined this issue in greater detail using cutting-edge methods. By looking at the genes, fossils, and anatomy of 73 species of snakes and lizards (both living and extinct), they were able to gain a better sense of what the initial snake was like. By pinpointing similarities and differences across species, they formulated a large family tree and drew attention to the important traits that have been evident across snake evolution. The data implies that snakes originated on land rather than in water during the middle Early Cretaceous period (around 128.5 million years ago) located in Laurasia. This period corresponds with the emergence of various species of birds and mammals on Earth.

It is believed that the original snake had two small hind legs and preyed on larger animals than lizards of the time. It was not able to coil around larger creatures like modern boa constrictors can. The snake was thought to be active at night, but 50-45 million years ago, this changed when the Colubroidea family of snakes emerged, and they mostly operate during the day. This may have been advantageous due to cooler night temperatures limiting nighttime activity, contributing to their success.

Research indicates that snakes have been able to survive and thrive in many different kinds of habitats thanks to their exceptional capacity for dispersing over long distances. Scientists have estimated that snakes can travel up to 42,500 square miles, which is approximately 4.5 times farther than lizards. Furthermore, they have managed to inhabit environments that are typically impassable for terrestrial animals and have managed to colonize aquatic habitats multiple times throughout their evolution.

Population & Conservation Status

A head shot of a sunbeam snake

The eyes of a sunbeam snake are small relative to the size of its wedge-shaped heads.

The sunbeam snake is listed as being of Least Concern (LC) by the ICUN Red list. They are capable of laying between three and 18 eggs at a time, and their habitat is plentiful for now. Since they like to burrow and only come out at night to hunt, encounters with humans in the wild are lower than many snakes, and they have few natural predators. As of their last assessment back in 2012, their population was listed as stable. Their prevalence is listed as “very common.”

Appearance and Description

A sunbeam snake on a white background

Sunbeam snakes can reach 3.5 feet in length.

An adult sunbeam snake is approximately three to three and a half feet in length. They are slender and weigh around two and a quarter pounds when fully grown. Their scales are a dark and shiny gunmetal gray, black, or dark brown, with an iridescent holographic finish. In the shadows, the snakes may appear dark pink or purple. When light hits the scales of a sunbeam snake, the scales appear to be painted with metallic rainbow halos, similar to the colored surface found on an oily puddle on the pavement or the colored swirls on a child’s soap bubbles. These rainbow halos may show any color of the rainbow, though purple and orange may be harder to pick out. Their eyes are small in size compared to their wedge-shaped head and are black or gray in color. Albino sunbeam snakes may be pink or white.

How Dangerous Are They?

Sunbeam snakes are not venomous, and therefore, they pose virtually no threat to humans whatsoever. The three species of sunbeam snake are rarely, if ever, aggressive, except in very specific circumstances when they feel threatened. Sunbeam snakes almost never bite humans, except in the aforementioned situations, such as rough or excessive handling or when accidentally stepped on. These snakes kill their prey by constriction, though they will use their bite to catch it. If these snakes do bite, there is no venom, but a sunbeam snake bite should be treated like any other puncture wound to protect against infection. Consult a physician if you are bitten, just in case a tetanus shot is warranted.

Behavior and Humans

Sunbeam snakes are not venomous and are very docile. These things, combined with their beauty, make them popular pets. However, their intolerance of more than occasional, careful handling and preference for a live diet makes them harder to maintain as pets for inexperienced snake owners, so they are not a pet for beginners or young children. Sunbeam snakes aren’t very large, only three feet long or so, so their enclosure doesn’t need to be very large, either. Having a tank size of about 40 gallons is usually sufficient for up to two sunbeam snakes. The price for a pet sunbeam snake is also reasonable, at around $70 to $100. A pet sunbeam snake that is cared for well can have a lifespan of as long as ten years or more.

3 Species of Sunbeam Snake

All three types of sunbeam snakes are non-venomous and famous for their iridescent scales and quick reproduction.

  • Xenopeltis hainanensis lives in China and Vietnam.
  • Xenopeltis intermedius  lives in Vietnam
  • Xenopeltis unicolor lives in Southeast Asia and Indonesia.
View all 391 animals that start with S

Sources

  1. Everything Reptiles Sunbeam Snake / Accessed May 3, 2022
  2. Wikipedia / Accessed May 3, 2022
  3. Ecology Asia / Accessed May 3, 2022
  4. Thai National Parks / Accessed May 3, 2022
  5. Reptile Direct / Accessed May 3, 2022
  6. Outback Reptiles / Accessed May 3, 2022
  7. Reptile Guide / Accessed May 3, 2022
  8. Happy Serpent / Accessed May 3, 2022
  9. Britannica / Accessed May 3, 2022
  10. Encyclopedia.com / Accessed May 3, 2022
  11. Animals J Rank / Accessed May 3, 2022
  12. Nature Nibble / Accessed May 3, 2022
  13. Reptiles Magazine / Accessed May 3, 2022
Heather Hall

About the Author

Heather Hall

Heather Hall is a writer at A-Z Animals, where her primary focus is on plants and animals. Heather has been writing and editing since 2012 and holds a Bachelor of Science in Horticulture. As a resident of the Pacific Northwest, Heather enjoys hiking, gardening, and trail running through the mountains with her dogs.

Thank you for reading! Have some feedback for us?


Sunbeam Snake FAQs (Frequently Asked Questions)

Yes, a sunbeam snake can be kept as a pet, though prior snake experience is recommended.