PurposeThe purposes of this paper are to analyze whether digital finance can contribute to enterprises' innovation performance and to determine the mediating effect of government subsidies.Design/methodology/approachThis paper empirically examines the impacts of digital finance on enterprises' innovation performance by looking at Chinese companies listed on the SME and GEM boards from 2011 to 2018 to build an econometric model to test our hypotheses. The mediating effect of government subsidies, the moderating effect of financial constraints are examined, as well as shareholding of the largest shareholders in each selected company and the asset-liability ratio.FindingsThe results show that digital finance has a significant promotional effect on firms' innovation performance and that government subsidies play a partial mediating role in digital finance's contribution to firms' innovation performance. In addition, financial constraints and the shareholding of the largest shareholders in each selected company have a negative moderating effect on the relationship between government subsidies and firms' innovation performance. On the contrary, the asset-liability ratio is found to positively affect the relationship.Originality/valueThere has been limited research to date on the relationship between digital finance and firms' innovation performance, particularly with regard to the extent to which digital finance can influence innovation performance and the mechanisms for doing so. Therefore, it is of great significance to examine the relationship between digital finance and enterprises' innovation performance, which can also provide guidance for both the Chinese government and enterprises.