Abstract Based on the data of 26 countries from 2006 to 2020, this paper uses the methods of tool variables to analyze the impact of digital trade barriers on the digital transformation of enterprises. The results show that digital trade barriers directly restrict the digital transformation of enterprises from two aspects: blocking the application of digital technology and reducing the level of digital investment. Digital trade barriers can indirectly affect the digital transformation of enterprises through the intermediary role of enterprise operating costs, capital resource allocation, and technological innovation. The negative impact of digital trade barriers on the digital transformation of enterprises in underdeveloped economies exceeds that in developed economies, and the impact on the digital transformation of enterprises with high digital technology exceeds that of enterprises with low digital technology. For enterprises with different factors of production intensity, the role of digital trade barriers in restricting the application of digital technology is significantly heterogeneous, and its influence degree is technology-intensive enterprises, capital-intensive enterprises and labor-intensive enterprises in turn. The order of efficiency of blocking the level of digital investment is capital-intensive enterprises, technology-intensive enterprises and labor-intensive enterprises.