In both these processes total binding energy of products is more than the total binding energy of reactants. As a result energy is released which is equal to the difference between binding energy of products and binding energy of reactants.
Home/nuclear fission and fusion both processes energy is released