An alternator is an electromechanical device that converts mechanical energy to electrical energy in the form of alternating current.
Most alternators use a rotating magnetic field with a stationary armature but occasionally, a rotating armature is used with a stationary magnetic field; or a linear alternator is used.
In principle, any AC electrical generator can be called an alternator, but usually the term refers to small rotating machines driven by automotive and other internal combustion engines. An alternator that uses a permanent magnet for its magnetic field is called a magneto. Alternators in power stations driven by steam turbines are called turbo-alternators.