Agar is generally considered non-toxic and safe for use in food and laboratory settings. It is classified by the FDA as a GRAS (Generally Recognized As Safe) substance. However, it is crucial to ensure that the agar used is of appropriate grade for its intended application, such as food-grade or laboratory-grade.