How can chemical energy be converted into electrical energy?
You use a galvanic cell to convert chemical energy into electrical energy.
As the chemical reactions occur in the internal circuit, electrons carry electrical energy through a wire in the external circuit.
You can connect the wire to a light bulb or a motor to do work.
Thus, a galvanic cell converts chemical energy into electrical energy.