Abstract Metal–organic frameworks (MOFs) are regarded as promising materials for CO 2 adsorption, which is an important step in CO 2 electrochemical reduction. In this work, zeolitic imidazolate framework (ZIF‐8) nanomaterials were synthesized with various zinc sources and used as electrocatalysts for CO 2 reduction to CO. Among them, ZIF‐8, prepared using ZnSO 4 , delivers the best catalytic activity towards CO 2 electroreduction, with 65 % CO yield. The main catalytic center can be attributed to the discrete Zn nodes in ZIF‐8. Electrolytes are important in increasing the CO selectivity, and NaCl is the best suitable electrolyte due to facile anion exchange.