• Mesoporous Ni-N-C electrocatalysts were established in a facile method. • Ni-N-C can reduce CO 2 into CO at a high FE CO = 95.85 %, and j CO = -21.29 mA cm −2 . • Ni-N-C can maintain high activity (FE CO > 93%) in a wide potential range of -1.0 to -1.5 V ( vs . RHE). 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 CO 2 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 CO 2 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 (FE CO ) of 95.85 %, and a CO reduction current ( j CO ) of -21.29 mA cm −2 . Significantly, its FE CO 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 CO 2 conversion.