Magnetic data bits recorded on a computer hard drive disk and ferromagnetic domains on a sample of neodymium–iron–boron, Nd 2 Fe 14 B , a material used in strong permanent magnets, are imaged using an electrostatic photoelectron emission microscope. Local stray magnetic fields of opposite orientation, which exist above the data bits and above ferromagnetic domains, laterally deflect photoelectrons emitted from the samples and partially split the photoelectron beam into two directions. Magnetic contrast is achieved by blocking part of the photoelectron beam with the edge of an aperture. The binary code of a magnetic storage disk is read directly. Disappearance of ferromagnetic domains is followed in real time as Nd 2 Fe 14 B is heated above its Curie temperature. The spontaneous reappearance of ferromagnetic domains is seen as Nd 2 Fe 14 B is cooled.