Hedgehogs are either omnivores or insectivores, depending on the source referenced. They eat a wide range of natural foods, but the key items are invertebrates such as worms, beetles, slugs, caterpillars, millipedes, and earwigs. They are also opportunistic eaters and may consume carrion, fallen fruit, and the eggs of ground-nesting birds if they come across them. In captivity, hedgehogs can be fed a combination of high-quality hedgehog food, low-fat cat food, and gut-loaded insects such as mealworms and crickets. Fresh fruits and vegetables can also be offered as treats, but dried fruits and starchy vegetables should be avoided. Cooked meat and eggs can be offered in small amounts as well. It is important to monitor their food intake to prevent obesity.