There are countless software packages that will do what you want. The most important requirement is that rotation is done 'losslesly'. That is, the image is not re-saved and thus re-compressed. I think Irfanview is probably as good as any, and it's free.