Most snails are herbivorous, but there are also carnivorous and carrion-eating species.

An excerpt from the article 19 facts about snails

Terrestrial animals feed mainly on plants, although there are predators among them. Predatory land snails hunt other slowly moving organisms, so they prey on other snails or earthworms.