Diode is an electronic component that allows the current to flow in only one direction. It is a two terminal semiconductor device. Rectifier is a device that is used to convert an AC voltage to a DC voltage. A diode is used as a switch and a rectifier is used for the conversion of an AC voltage to a DC voltage.