A rectifier is an electrical device that converts alternating current, which periodically reverses direction, to direct current, which flows in only one direction. The reverse operation is performed by the inverter.