Recently, nitrogen-doped porous carbon materials containing non-precious metals (termed “M-N-C”) have formed a group of functional materials to replace precious metal-based catalysts for electrochemical CO2 reduction reaction. Here, a series of mesoporous Ni-N-C electrocatalysts (termed “mp-Ni-N-Cs”) were prepared via a gel-template method, and could effectively reduce CO2 into CO in a flow cell. The result in gas sorption tests exhibited a typical mesoporous structure, which would bring both sufficient exposed active sites and convenient mass transfer channels. Electrochemical tests showed excellent performance at an applied potential of -1.3 V (vs. RHE), e.g., a CO Faradaic efficiency (FECO) of 95.85 %, and a CO reduction current (jCO) of -21.29 mA cm−2. Significantly, its FECO exceeded 93 % in a wide range of potentials from -1.0 to -1.5 V, showing great tolerance to fluctuation in potential. The mp-Ni-N-C electrocatalysts have satisfactory features in terms of catalytic activity, facile preparation, and economic feasibility, and will offer a valuable reference for next exploration of cost-effective electrocatalysts for CO2 conversion.