Not all of the energy is useful
Conservation of energy guarantees that energy out = energy in. But not all of the output is what we want. A light bulb is meant to give light; the heat it also gives off is wasted for that purpose. Efficiency measures how much of the input becomes useful output:
efficiency = useful energy output ÷ total energy input × 100%
Because energy cannot be created, the useful output can never be larger than the input, so no device can be more than 100% efficient. Almost all of the 'wasted' energy ends up as thermal energy that spreads into the surroundings.
Energy from power and time
Electrical devices are labelled with their power in watts (W). One watt means one joule every second:
energy (J) = power (W) × time (s)
A 1500 W kettle running for 60 s uses 1500 × 60 = 90 000 J.