In an ecosystem, when energy is given off as heat, does it change forms from chemical substances to heat? Or is it something different?

2 answers

that is the usual way
Sometimes mechanical (rubbing) , sometimes chemical (reacting with O2), etc. The one thing you can count on is that whatever happens, it will end up losing heat to the environment :)