The computer program Superflip is a freely available implementation of the charge flipping algorithm for solution of the phase problem in crystallography. Its unique feature is the ability to solve crystal structures in arbitrary dimensions, allowing thus for solution of aperiodic structures and quasicrystals. Superflip works with x-ray, neutron and electron diffraction data from single crystals and powders.