Cosmological observables are particularly sensitive to the existence of ultralight dark photons. I will describe the physics of conversions between visible and dark photons, and discuss how to use both the cosmic microwave background and the Lyman-alpha forest to look for such conversions.