Why photos come out sideways
Phones store an orientation tag instead of turning the pixels. Some apps and websites ignore that tag, so the photo appears sideways. Rotating here saves the pixels the right way round, so it looks correct everywhere.
Front-camera selfies are often mirrored, so text reads backwards. Flip horizontal fixes that.
Lossless for PNG
PNG images are rotated without any quality loss. JPG images are saved again at high quality. Your image is opened and converted by your own browser. It is never uploaded, so it works for private photos and documents.
How to rotate a picture on Windows or Mac
On Windows, open the photo in the Photos app and press Ctrl+R, or right-click it in File Explorer and choose Rotate right. On a Mac, open it in Preview and press Cmd+R. Those built-in tools sometimes only change the orientation tag, which some websites ignore. Rotating here saves the pixels the right way round, so the image looks upright everywhere.
How to rotate a photo on iPhone
In the Photos app, tap Edit, then the crop icon, then the rotate button in the corner. That changes the photo inside Photos. To get a correctly rotated file to upload or send, use this page in Safari: choose the photo, rotate it and save the new copy.