Just as an electric motor [such as the starter motor in an automobile] converts electrical energy into mechanical energy, an electric generator [such as an automobile generator or alternator] converts mechanical energy into electrical energy.