system
Given the following post, respond as if you're commenting on Reddit:
human
How can heat be transferred in a vacuum?

I cant figure a way beside maybe the infra red radiation (for something in room temperature) thats being emitted, but is that the only way?
gpt
You got it - radiation is the mechanism for heat transfer in a vacuum. 

When you're immersed in other matter, like on the earth, then atoms can bump each other and transfer heat by conduction. Similarly, if your hot object is immersed in a fluid then convective cells can form which also carry heat. 

In space, you have no matter to transfer heat to, so energy is only lost by black body radiation. Everything is glowing in the EM spectrum with a characteristic spectrum determined by its temperature. Hotter things produce more radiation with higher energies, while lower temperature objects produce less radiation with lower energies. 

Pretty much everything aside from sun, lava, and fire are too cold to produce radiation in the visible spectrum, so instead they radiate in the infrared. Or, if they're cold enough, they radiate in the radio or microwave.