A transformer is an electrical device used to change alternating current (AC) voltage levels.
It operates on the principle of mutual induction, where a changing current in the primary coil creates a changing magnetic field that, in turn, induces an electromotive force (EMF) or voltage in the secondary coil.