A heat engine actually does the opposite: it converts heat into work.
Here's why:
* Heat engines work on the principle of a temperature difference: They take in heat from a high-temperature source (like burning fuel) and then expel some of that heat to a low-temperature sink (like the environment).
* The difference in temperature allows for work to be done: The engine uses this temperature difference to drive a process, like expanding gas to turn a turbine, which in turn produces work (like generating electricity).
Think of it this way:
* Heat engine: Like a car engine, it burns fuel (heat) to move the car (do work).
* Work into heat: That's more like friction, where the energy of motion (work) is converted into heat.
Let me know if you'd like to learn more about how heat engines work!