Private Convert

Notepad - How to rotate or flip an image on any device

How to rotate or flip an image on any device

Fix sideways photos, mirror selfies, and correct EXIF orientation issues on Mac, Windows, iPhone, Android, and in the browser.

March 29, 2026 · 9 min read

You took a photo and it came out sideways. Or you need a mirrored version for a design layout. The fix is fast on every platform, and for most cases you do not need to leave your browser at all.

Rotate vs. flip: what is actually different

Rotation and flipping look similar but do different things to the pixel grid.

Rotation turns the image around its center point. A 90-degree clockwise rotation takes a portrait photo and lays it on its right side. A 180-degree rotation flips it upside down. Rotations happen in 90-degree increments to keep the image rectangular without cropping or filling in corners.

Flipping mirrors the image along an axis without turning it. A horizontal flip (also called a mirror flip) swaps left and right, as if you held the image up to a mirror. A vertical flip swaps top and bottom. The two operations are independent: you can rotate 90 degrees and then flip horizontally to get a result that no single rotation would produce.

The practical difference: if a photo is sideways because your camera was held at a 90-degree angle, you need a rotation. If a selfie looks backwards because your front camera mirrored it, you need a horizontal flip.

Why photos end up rotated in the first place (EXIF orientation)

Modern smartphone cameras always record pixels from the same physical sensor orientation, regardless of how you hold the phone. Instead of rotating the pixel data, they write a small metadata tag called the EXIF orientation flag, which tells viewers how to display the image.

Most apps read this flag correctly, which is why the photo looks fine on your phone. The problem appears when you upload the image to a service, embed it in a document, or open it in an older application that ignores the EXIF data. The viewer shows the raw pixels without applying the rotation, and your photo appears sideways or upside down.

The permanent fix is to bake the correct rotation into the actual pixel data and strip or reset the EXIF orientation tag to 1 (normal). That way the image displays correctly in every viewer, whether it reads EXIF metadata or not.

How to rotate or flip an image in the browser

The fastest way to fix an image on any operating system is to use privateconvert.org’s rotate and flip tool. It runs entirely in your browser, so the file never leaves your device.

  1. Open the rotate image tool at privateconvert.org.
  2. Drop your file onto the page. JPG, PNG, WebP, and most common formats are supported.
  3. Choose the operation: 90 degrees clockwise, 90 degrees counter-clockwise, 180 degrees, flip horizontal, or flip vertical.
  4. Download the result.

The output has the rotation baked into the pixel data with the EXIF orientation reset to normal, so it will display correctly everywhere.

How to rotate an image on Mac (Preview)

Mac’s built-in Preview app handles rotation and flipping without any additional software.

To rotate:

  1. Open the image in Preview.
  2. Click the rotate button in the toolbar (the curved arrow icon), or go to Tools > Rotate Left. Each click rotates 90 degrees counter-clockwise.
  3. To rotate clockwise, hold Option and click the same button.
  4. Save with Command+S to overwrite the original, or Command+Shift+S to save a copy.

To flip:

  1. Go to Tools > Flip Horizontal or Tools > Flip Vertical.
  2. Save.

Batch rotation in Preview: Open multiple images, select all of them in the sidebar with Command+A, then use the Tools menu. Preview applies the operation to every selected image at once.

How to rotate an image on Windows

Using File Explorer (right-click method): Right-click any JPG or PNG file in File Explorer and choose Rotate right or Rotate left from the context menu. This is the fastest option for a quick 90-degree fix and works without opening any application.

Using the Photos app:

  1. Open the image in the Photos app.
  2. Click the edit icon (pencil) in the top-right corner.
  3. Use the rotate button in the editing toolbar to rotate in 90-degree steps.
  4. Click Save a copy or Save to overwrite.

Using Paint: For more control, open the image in Paint, go to Image > Rotate/Flip, and choose from the available options including horizontal and vertical flips.

Note: the File Explorer right-click method only supports rotation, not flipping. For a flip on Windows, use the Photos app or Paint.

How to rotate an image on iPhone

In the Photos app:

  1. Open the photo and tap Edit in the top-right corner.
  2. Tap the crop/rotate icon (a square with a curved arrow).
  3. Tap the rotation icon in the top-left of the crop screen to rotate 90 degrees counter-clockwise. Tap multiple times to reach the angle you need.
  4. Tap Done.

To flip horizontally in Photos: While in the crop/rotate edit screen, tap the flip icon (two opposing triangles) in the top-left corner.

For more granular control or for formats that the Photos app handles poorly, open privateconvert.org in Safari and use the browser tool directly.

How to rotate an image on Android

The method varies slightly by manufacturer, but the general flow in the Google Photos app is:

  1. Open the photo, tap Edit.
  2. Tap Crop.
  3. Tap the rotate icon to step through 90-degree rotations.
  4. Tap Done and then Save copy (or Save to overwrite).

For a horizontal flip in Google Photos: inside the Crop editor, tap the flip icon (a pair of opposing triangles). If your Android’s default gallery app does not offer a flip option, the browser tool at privateconvert.org works in Chrome for Android without any installation.

How to rotate images without losing quality

Standard rotation software re-encodes the image file, which can introduce compression artifacts in JPEGs each time you save. For lossless JPEG rotation, the pixel data in complete 8x8 blocks is rearranged without re-encoding. Most modern tools handle this automatically, but it is worth understanding.

PNG files are always losslessly rotated because PNG uses lossless compression by default.

JPEG files can be rotated losslessly when the image dimensions are multiples of 8 (or 16 for chroma-subsampled images). If the dimensions are not clean multiples, the edge blocks may need to be re-encoded, causing slight quality loss at the edges. For most practical photos this is imperceptible.

To avoid any re-encoding, the browser tool at privateconvert.org decodes the image to raw pixels, reorders them, and re-encodes once. That single encode is unavoidable, but it avoids repeated quality loss from opening and saving the file multiple times.

Rotating images from the command line

macOS — sips:

# Rotate 90 degrees clockwise
sips -r 90 input.jpg --out output.jpg

# Flip horizontal
sips -f horizontal input.jpg --out output.jpg

# Flip vertical
sips -f vertical input.jpg --out output.jpg

sips is built into macOS and requires no installation. The -r flag accepts 0, 90, 180, or 270.

Cross-platform — ImageMagick:

# Rotate 90 degrees clockwise
magick input.jpg -rotate 90 output.jpg

# Flip horizontal (mirror)
magick input.jpg -flop output.jpg

# Flip vertical
magick input.jpg -flip output.jpg

# Auto-rotate based on EXIF and strip the tag
magick input.jpg -auto-orient output.jpg

The -auto-orient flag is particularly useful: it reads the EXIF orientation tag, applies the corresponding rotation to the pixel data, and then resets the tag to normal. Run this on any photo from a phone camera to ensure it will display correctly everywhere.

Batch rotation with ImageMagick:

# Rotate all JPGs in a folder 90 degrees clockwise
for f in *.jpg; do magick "$f" -rotate 90 "rotated_$f"; done

# Auto-orient all JPGs in place
mogrify -auto-orient *.jpg

mogrify is ImageMagick’s in-place batch processor. It overwrites the original files, so keep a backup or use a separate output directory.

Batch rotation without the command line

If you need to rotate a large set of images without touching a terminal, a few options work well:

  • macOS Preview: Select all images in the sidebar, then use Tools > Rotate Left or Tools > Flip Horizontal. Preview applies the operation to every selected file.
  • Windows Photos: Does not support true batch rotation from the UI. Use PowerToys Image Resizer (which also rotates) or a free tool like IrfanView.
  • IrfanView (Windows, free): File > Batch Conversion/Rename, choose JPG lossless operations, and tick the rotation options.

Frequently asked questions

Will rotating a JPEG reduce its quality? A single lossless rotation of a JPEG does not reduce quality when the image dimensions are multiples of 8. Re-encoding the file (opening and saving it as a new JPEG) will reduce quality slightly each time, because JPEG is a lossy format. To avoid this, use a tool that performs a lossless rotation, or save as PNG if you need to edit repeatedly. The browser tool at privateconvert.org performs a single encode pass.

What is the difference between rotating and flipping an image? Rotation turns the image around its center by a fixed number of degrees (90, 180, or 270). Flipping mirrors the pixel data along a horizontal or vertical axis without any rotation. A horizontal flip makes the image look like its reflection in a mirror; a vertical flip makes it look like it is standing on its head.

Why does my photo look sideways when I upload it to a website? The file has an EXIF orientation tag that most photo viewers apply automatically, but many web services and older applications ignore it. The photo’s raw pixel data is sideways; only apps that read EXIF know to display it upright. The fix is to bake the rotation into the pixel data and reset the EXIF tag, which the privateconvert.org rotate tool does automatically.

Can I rotate an image online without it being uploaded to a server? Yes. The privateconvert.org rotate and flip tool processes images entirely in your browser using JavaScript. The file is read from your local disk, manipulated in memory, and downloaded back to your device. At no point is the image transmitted to any server.

How do I rotate an image on a Chromebook? Open the image in the Files app, click the three-dot menu, and choose Open with > Gallery. Gallery has a rotate button in the toolbar. Alternatively, open privateconvert.org in Chrome and use the browser tool, which works on ChromeOS the same as on any other platform.

What does auto-orient mean in ImageMagick? The -auto-orient flag reads the EXIF orientation value from the image metadata, applies the corresponding transformation to the actual pixel data so the image looks correct, and then resets the EXIF orientation flag to 1 (normal). The result is an image that displays correctly in any viewer, including those that do not read EXIF metadata.

Is there a way to rotate just part of an image? Standard rotation applies to the entire canvas. To rotate only a selected area, you need a full editor like GIMP or Photoshop that supports layer or selection-based transforms. For most practical use cases — fixing a tilted photo or correcting orientation — rotating the whole image is what you need.

Try the tool

Rotate Image

Rotate or flip images in your browser with local processing, without uploads or watermarks.

Convert
Ln 1, Col 1 UTF-8 Read only