A transformer is an electrical device that transfers electrical energy between two circuits through electromagnetic induction. Commonly, transformers are used to increase or decrease the voltages of alternating current in electric power applications.