.hex is a file extension used for which files include machine code of microcontrollers.

This is the brain of the microcontrollers.

That is why we are dot hex .