Question: who wrote the song you can leave your hat on
Answer: `` You Can Leave Your Hat On '' is a song written by Randy Newman and appearing on his 1972 album Sail Away .