Digital inclusive finance is a new pattern of financial development, and has been considered to be an effective means to promote the green economy. Therefore, exploring the relationship between digital inclusive finance and green economy is essential for sustainable development in China. This study evaluated Chinese provincial green economy using the China Provincial digital inclusive finance index, which is divided into three dimensions: breadth of coverage, depth of usage, and digitization level. Furthermore, we used multiple linear regression, spatial measurement, and mediation effect models to analyze the influence of provincial digital inclusive finance on green economy in China. The results revealed that digital inclusive finance can significantly improve the green economy. In addition, the impact of digital inclusive finance has spillover effects on the green economy, and the digital inclusive finance in a region can have significant impact on green economy in the surrounding areas. Breadth of coverage was found to be a direct mechanism for the effect of digital inclusive finance on green economy. The consumption structure of urban and rural residents plays an intermediary role between digital inclusive finance and green economy. Digital inclusive finance can promote the greening of residents’ consumption structure, and thus affect the greening of the economy.