The basic physics of physics states that there is no way to convert all energy into one form. Heat is always lost. Converting steam energy into electricity, for example, can waste heat as energy in small amounts.
If we wanted to deliberately generate heat energy, we could simply add huge resistance to a circuit with proportionate parameters like the following:-
Here H is heat, I is current, R is resistance to heating element in ohms, and T is time.