William II (German: Wilhelm II; 28 July 1777 – 20 November 1847) was the penultimate Elector of Hesse.