Carbon dioxide (CO2) emissions forecasting is becoming more important due to increasing climatic problems, which contributes to developing scientific climate policies and making reasonable energy plans. Considering that the influential factors of CO2 emissions are multiplex and the relationships between factors and CO2 emissions are complex and non-linear, a novel CO2 forecasting model called SSA-LSSVM, which utilizes the Salp Swarm Algorithm (SSA) to optimize the two parameters of the least squares support sector machine (LSSVM) model, is proposed in this paper. The influential factors of CO2 emissions, including the gross domestic product (GDP), population, energy consumption, economic structure, energy structure, urbanization rate, and energy intensity, are regarded as the input variables of the SSA-LSSVM model. The proposed model is verified to show a better forecasting performance compared with the selected models, including the single LSSVM model, the LSSVM model optimized by the particle swarm optimization algorithm (PSO-LSSVM), and the back propagation (BP) neural network model, on CO2 emissions in China from 2014 to 2016. The comparative analysis indicates the SSA-LSSVM model is greatly superior and has the potential to improve the accuracy and reliability of CO2 emissions forecasting. CO2 emissions in China from 2017 to 2020 are forecast combined with the 13th Five-Year Plan for social, economic and energy development. The comparison of CO2 emissions of China in 2020 shows that structural factors significantly affect CO2 emission forecasting results. The average annual growth of CO2 emissions slows down significantly due to a series of policies and actions taken by the Chinese government, which means China can keep the promise that greenhouse gas emissions will start to drop after 2030.