The activity of heterogeneous catalysts—which are involved in some 80 per cent of processes in the chemical and energy industries—is determined by the electronic structure of specific surface sites that offer optimal binding of reaction intermediates. Directly identifying and monitoring these sites during a reaction should therefore provide insight that might aid the targeted development of heterogeneous catalysts and electrocatalysts (those that participate in electrochemical reactions) for practical applications. The invention of the scanning tunnelling microscope (STM)1,2and the electrochemical STM3,4promised to deliver such imaging capabilities, and both have indeed contributed greatly to our atomistic understanding of heterogeneous catalysis5,6,7,8. But although the STM has been used to probe and initiate surface reactions9,10, and has even enabled local measurements of reactivity in some systems11,12,13, it is not generally thought to be suited to the direct identification of catalytically active surface sites under reaction conditions. Here we demonstrate, however, that common STMs can readily map the catalytic activity of surfaces with high spatial resolution: we show that by monitoring relative changes in the tunnelling current noise, active sites can be distinguished in an almost quantitative fashion according to their ability to catalyse the hydrogen-evolution reaction or the oxygen-reduction reaction. These data allow us to evaluate directly the importance and relative contribution to overall catalyst activity of different defects and sites at the boundaries between two materials. With its ability to deliver such information and its ready applicability to different systems, we anticipate that our method will aid the rational design of heterogeneous catalysts.