What is the energy conversion that happens inside a battery?

a- Electrical Energy to Kinetic Energy
b- Kinetic Energy to Potential Energy
c- Heat Energy to Potential Energy
d- Chemical Energy to Electrical Energy

d- Chemical Energy to Electrical Energy