Onagers are herbivores and folivores, which means they eat leaves. Their diet consists primarily of perennial grasses, and they also forage for herbs, fruit, leaves, and, in more arid climes, trees and shrubs. They are also known to feed on tree bark.