An isolation transformer works by using two separate windings-primary and secondary-on a magnetic core, which allows it to transfer electrical energy without a direct electrical connection between the input and output. This design provides electrical isolation, reducing the risk of electric shock and minimizing noise and interference. The primary winding receives the input voltage, inducing a voltage in the secondary winding through electromagnetic induction, while maintaining safety and protecting sensitive equipment.