The best food for pet rats includes a balanced diet of commercial rat pellets, fresh fruits and vegetables, whole grains, and occasional protein sources such as cooked eggs or mealworms. It is important to provide a variety of foods to ensure they receive all the necessary nutrients for their health and well-being. Additionally, always make sure they have access to fresh water.