1Drop in the picture
One at a time. It is shown the way your camera meant it to be seen.
2Turn it, or mirror it
Quarter turns in either direction, and a flip along either axis.
3Save it the right way up
The rotation is written into the pixels, so nothing downstream can misread it.
Questions
Why does my photo look sideways in one program and not another?
Because the picture is not sideways — the camera stored a note saying which way up it was held, and the two programs disagree about whether to read it. Modern browsers and phone galleries honour it; older software, some upload forms and a few printing services do not. Turning the pixels themselves removes the disagreement entirely.
Is a quarter turn lossless?
The rotation itself moves pixels without altering them, but saving a JPEG afterwards re-compresses it, so there is a small generational cost. It is not visible once, and it is worth avoiding doing repeatedly to the same file.
What is the difference between rotating and mirroring?
A rotation turns the picture; a mirror reflects it. They look similar on something symmetrical and are completely different on anything with text or a face in it. Mirroring is what you want for a selfie that reads backwards, or a scan taken through the back of a page.
Can I straighten a photo by a few degrees?
Not here — the turns are quarter turns. Correcting a slightly tilted horizon means rotating by an arbitrary angle and then cropping the corners that fall outside the frame, which is an editing job rather than a conversion one.