Pet baby snakes are usually fed newborn pinky mice. In the wild, baby snakes generally eat any animal or egg that is small enough and within reach.
In the wild, snakes are usually independent from birth and must begin finding their own food immediately. Earthworms, small frogs and unguarded eggs make for good targets for them. Certain snake species, such as black racers, eat other baby snakes if they encounter them.
When kept as pets or in captivity, snakes are generally fed live baby mice by their keepers. If pet snakes refuse to eat live mice, they are given dead mice instead.