The device that converts chemical energy into electrical energy is

the device that converts chemical energy into electrical energy is

the device that converts chemical energy into electrical energy is;

a battery.