Some of the globe’s most economically advanced nations make up the G7 (Canada, Japan, France, Germany, Italy, United States and United Kingdom). Nevertheless, in tandem with such strong economic growth, the environmental conditions in these nations have deteriorated, raising serious issues among stakeholders. Therefore, we examine the effect of eco-innovation and trade openness on CO2 emissions in G7 nations. We also take into account the role of renewable energy, economic growth and nonrenewable energy use using a dataset covering the period from 1990–2019. We employed recent econometric techniques such as slope heterogeneity (SH) and cross-sectional dependence (CSD), Westerlund cointegration, fully modified ordinary least square (FMOLS), dynamic ordinary least square (DOLS), panel quantile regression and panel causality tests to assess these associations. The outcomes of the CSD and SH tests disclosed that using a first-generation unit root test will produce biase outcomes. Furthermore, the outcomes of the Westerlund cointegration disclosed support long-run association between CO2 and its drivers. In addition, the results of the long-run estimators (FMOLS and DOLS) unveiled that nonrenewable energy and trade openness contribute to the damage to the environment while economic expansion, renewable energy and eco-innovation enhance the quality of the environment. Furthermore, the outcomes of GDP, REC and ECO curb CO2 while NREC energy and TO surge CO2. Finally, the outcomes of the panel causality test unveiled that CO2 emissions can be predicted by all the exogenous variables.