An electric generator is an instrument that transforms mechanical force into electrical current through a process called electromagnetic induction. In contrast, an electrical current transforms into mechanical energy. A generator converts kinetic energy into electricity.
A generator is made of a stationary magnetic field in which a rotating electromagnet spins to produce electrical current. With a gasoline powered generator, an internal combustion engine drives a rotating shaft that turns the structure. In sustainable types of energy, wind, and water, natural forces spin a turbine. Any motion energy can be converted into electricity.