The energy band alignment of solar cell materials is highly relevant to the device performance, but its measurement is challenging. Here, the authors report direct visualization of energy band alignment in operating organic photovoltaic devices using scanning Kelvin probe microscopy imaging.