A transformer is a device that transfers electrical energy from one circuit to
another by magnetic coupling without requiring relative motion between its parts.
It usually comprises two or more coupled windings, and, in most cases, a core to
concentrate magnetic flux.
An alternating voltage applied to one winding creates a time-varying magnetic
flux in the core, which induces a voltage in the other windings. Varying the
relative number of turns between primary and secondary windings determines the
ratio of the input and output voltages, thus transforming the voltage by
stepping it up or down between circuits.