Camptosaurus was a herbivore, meaning it primarily ate plants. It had a beak-like mouth with rows of teeth that were adapted for grinding plant material.
Its diet likely consisted of a variety of vegetation, including ferns, cycads, conifers, and other plants that were common during the Late Jurassic period.