This paper examines how digital transformation influences corporate environmental performance. Using firm-level data from the People’s Republic of China between 2009 and 2022, the study finds that firms’ digital transformation significantly improves their environmental performance scores. Improved green innovation, enhanced environmental monitoring and transparency, and increased external attention are identified as possible channels underlying this relationship. The results offer policy insights on accelerating digital transformation to support the green transition.