Rotate image

Rotate or flip JPG, PNG, WebP and GIF right in your browser: 90° steps, EXIF orientation baked in, nothing uploaded.

How to rotate an image

  1. Drop or pick a JPG, PNG, WebP or GIF file.
  2. Rotate left or right in 90° steps, or flip horizontally or vertically. The preview follows live.
  3. Apply and save, all on your device.

Why rotate images?

Photos shot sideways, scans that came in upside down, mirror selfies: a quick rotate or flip fixes them. OptImg bakes EXIF orientation into the pixels so the result displays upright everywhere, and processes it entirely on your device with no upload.

Frequently asked questions

Are my images uploaded to a server?
It runs at native speed entirely in your browser: nothing is uploaded, your image never leaves your device, and there are no size or file-count limits.
Does it fix sideways phone photos?
Yes. The EXIF orientation tag is baked into the pixels, so a photo that looked rotated in some apps arrives genuinely upright, with no orientation tag left to double-rotate it.
Does rotating keep animation?
Yes. Every frame of an animated GIF is rotated or flipped the same way, and delay and loop are preserved.
Why does my photo look upright in one app but sideways in another?
Because the photo is not actually upright. Phone cameras normally save the sensor image as-is and add a small orientation note recording how the device was held. Apps that read the note display the photo correctly; apps that ignore it show the raw sideways image. That is why the same file can look right in your gallery and wrong once uploaded somewhere. Rotating here rewrites the actual pixels and clears the note, so every viewer agrees.
What is the difference between rotating and flipping?
Rotating turns the image around its centre, so a 90° step swaps width and height. Flipping mirrors it across an axis, leaving the dimensions unchanged but reversing left and right (or top and bottom). Mirroring matters for anything containing text or a logo, because a flip makes it read backwards — front-facing selfies are the usual case where a horizontal flip is the fix.
Does rotating reduce quality?
The rotation itself does not. Quarter turns and mirrors only move existing pixels to new positions, with no resampling and no interpolation, so no detail is lost in the operation. The output is then re-encoded, which for a lossy format costs the same small amount as any other save. Choose PNG or WebP lossless if you need the result to be pixel-identical to the input.
Can I rotate by a custom angle such as 5° to straighten a horizon?
Not currently. This tool does 90° steps and mirrors, which cover the common cases and are exact. Straightening by a small arbitrary angle is a different operation: it has to resample every pixel and leaves wedge-shaped gaps at the edges that must be cropped away, so it belongs with cropping rather than here. For now, straighten in an editor, then bring the result back for compressing or converting.