http://www.capitalpunishmentuk.org/hanged2.html claims to have the complete execution in England and Wales from 1932 to 1964, so WWII is included. It seems to me it show only people hanged for murder, the Axis spies executed in England are not included (but the German POWs executed in 1945 for killing one of their fellows are).
Similar pages exist for Scotland (no entry in 1939-1945), Northern Ireland (
http://www.capitalpunishmentuk.org/nirish.html, one in 1942) and Channel Islands (2 French in 1941 and one German in 1942, all by Germans).
Webpage
https://en.wikipedia.org/wiki/Cocos_Islands_mutiny has the names of 3 Ceylonese soldiers executed in August 1942 and claim they were the only Commonwealth soldiers executed for mutiny in WWII.
For US, a list is available at
https://en.wikipedia.org/wiki/List_o...States_militar.
Books listing details of death sentences (and others) by US Army in WWII were available last year on the Library of Congress website, but I can't find them now.
Here is an archived pdf:
https://web.archive.org/web/20170220..._MTO_Vol-6.pdf
https://web.archive.org/web/20210815..._MTO_Vol-5.pdf
https://web.archive.org/web/20170221..._MTO_Vol-1.pdf
Books also existed for Pacific, one example:
https://web.archive.org/web/20170220..._BOR_Vol-2.pdf
And also for ETO, but a quick search had not allowed me to find one.