Hedgehogs are insectivores, so their natural diet is mostly insects, along with small invertebrates, and occasionally small vertebrates. In the wild they forage for beetles, worms, and similar creatures.
As pets, hedgehogs are usually fed a specialized hedgehog food or high-quality cat food, supplemented with insects and the occasional bit of fruit or vegetable. Fresh water should always be available.