The FDA's Code of Federal Regulations allows for the legal, regulated use of titanium dioxide in food products, under some restrictions.
R-996:
One of the most widely used food pigments is titanium dioxide, an odorless powder that enhances the white color or opacity of foods and over-the-counter products, including coffee creamers, candies, sunscreen, and toothpaste (1Trusted Source, 2Trusted Source).