Electric generator, generator, or simply generator, is a device that converts mechanical energy into electrical energy.
The source of mechanical energy may be the steam engine water internal combustion engine wind turbine.