To rotate an image, open the Image Rotator in your browser, select a JPG, PNG, or WebP file up to 25 MB, and click Rotate left 90°, Rotate right 90°, or Rotate 180°; the rotated full-resolution PNG downloads immediately and the original file stays on your device the entire time. Rotation in this context means a rigid geometric transformation in the two-dimensional image plane, where every pixel is repositioned to a new (x, y) coordinate while the canvas is recomputed to fit the rotated content. For a 90° or 270° rotation, the output width becomes the input height and the output height becomes the input width; for a 180° rotation, both dimensions stay the same and every pixel is mapped to the position diagonally opposite to its original location. The W3C SVG specification describes this as a discrete rotation transform about the origin followed by a translation that recenters the result on a new canvas, which is exactly the math a browser performs when you rotate a raster image element. The fact that the output is always a PNG — not the same format you uploaded — is important: PNG is lossless, so the rotated pixels are stored with full fidelity instead of being re-encoded with JPEG-style chroma subsampling or WebP compression artifacts.
Rotation is one of the most common edits people need to make to a photo or scan. A phone camera held vertically writes an orientation flag into the file's metadata so viewers know which way is up, but that flag can be stripped when the image is emailed, uploaded to certain services, or saved by older software. Once the flag is gone, the photo displays sideways in any program that does not read orientation metadata. Rotating the actual pixel data — rather than just changing a flag — permanently bakes the correct orientation into the file. It is also the right fix when the image has been scanned from a printed page or document that was placed crookedly on the scanner glass, or when a screenshot was captured with the device in the wrong physical orientation. In every one of these cases, the fix is the same: rotate the bitmap so that what you see on screen matches how the scene was actually framed.

When You Need to Rotate the Pixels Instead of Just a Flag
Most modern cameras and phones embed an EXIF Orientation tag with values from 1 to 8, defined by the EXIF specification, telling viewers which side of the image is the true top. Many web browsers and image viewers ignore this tag entirely and display the raw bitmap as it was stored. When that happens, the photo looks rotated even though the file's pixel data is actually correct — only the metadata is misleading. A pure metadata rewrite can sometimes fix the display, but the rewrite is fragile: it can be lost when the file is re-saved by social media platforms, re-encoded by chat apps, or opened by a tool that does not preserve the tag. Rotating the actual pixels is the durable solution because the displayed image will look correct in every program that opens it, regardless of whether that program reads orientation metadata.
EXIF orientation handling is particularly relevant for JPEG files because the JPEG standard adopted EXIF tags early. PNG files do not use EXIF by default and rely on ancillary text chunks for metadata, while WebP uses an EXIF chunk that behaves similarly. If you want to inspect the orientation tag and other camera metadata before you decide whether rotation is needed, the EXIF Viewer lets you look at the captured values without uploading the file. Once you have decided that pixel rotation is the right fix, the Image Rotator is the tool that applies it.
What the Image Rotator Accepts and Produces
The Image Rotator takes a single image file as input — JPG, PNG, or WebP — with a maximum size of 25 MB. As soon as the file is selected, the tool reads its decoded pixel grid and shows the original width and height, so you can confirm that what you see on screen matches what the tool is going to rotate. The three rotation buttons are fixed-angle presets rather than a free-form angle slider: 90° counter-clockwise, 90° clockwise, and 180°. There is no "fine-tune by 1°" mode, no perspective correction, and no skew — those are different operations and they are intentionally out of scope for this tool.
The output is always a PNG file, downloaded directly by your browser. PNG is chosen because it is lossless, which means the rotation does not introduce any compression artifacts around edges that have shifted to a new sub-pixel alignment. JPEG rotation is a common source of visible softening because the encoder must re-divide the rotated image into 8×8 blocks and quantize the DCT coefficients again. The trade-off is file size: a rotated PNG of a photo can be several times larger than the same photo as a JPEG. If size matters more than pixel-perfect fidelity for your downstream use, you can hand the rotated PNG to the PNG to JPG converter or run it through the Image Compressor afterwards.
Rotate a JPG, PNG, or WebP in Your Browser
- Open the Image Rotator in your current browser tab and click the file picker. Select a JPG, PNG, or WebP file from your device; files up to 25 MB are accepted.
- Look at the displayed width × height values that appear once the file has loaded. These are the original pixel dimensions of the decoded bitmap that is about to be rotated, and they confirm that the correct file has been read.
- Pick the rotation direction that matches the correction you need: Rotate left 90° to turn the image counter-clockwise, Rotate right 90° to turn it clockwise, or Rotate 180° to flip it upside down. The preview updates immediately.
- Inspect the new orientation in the preview area and check the updated dimensions — for a 90° rotation, width and height will swap if the original image was not square.
- Click the download button to save the rotated image as a full-resolution PNG. The file lands in your normal downloads folder with the rotated pixels already baked in.
- If you also need a mirror reflection rather than a rotation, use the Image Flipper for horizontal or vertical flips, since flipping is a different geometric transform.
Rotation vs. Flipping vs. EXIF Orientation
These three terms are often confused because they all change which way the image faces, but they are mathematically distinct operations. Rotation moves every pixel along a circular arc around the center of the image. A 90° rotation of a pixel at coordinates (x, y) on a W×H canvas places it at (H − 1 − y, x) in the new H×W canvas. Flipping is a reflection across an axis: horizontal flipping maps (x, y) to (W − 1 − x, y), and vertical flipping maps (x, y) to (x, H − 1 − y). EXIF orientation is neither — it is a tag stored alongside the pixels that tells the viewer which of eight predefined orientations to display.
| Operation | What changes | Output format | Typical reason |
|---|---|---|---|
| Rotate 90° / 180° / 270° | Pixels are moved to new (x, y) positions; dimensions may swap | Always PNG | Fix a sideways scan, screenshot, or stripped orientation tag |
| Flip horizontal / vertical | Pixels are mirrored across an axis; dimensions stay the same | Always PNG | Correct a mirror selfie, create a reflected graphic |
| EXIF Orientation tag | No pixels move; a metadata value is rewritten | Original format (usually JPG) | Tell a viewer which way is up without re-encoding |
A 180° rotation produces the same visual result as combining a horizontal flip with a vertical flip. A 90° rotation is not equivalent to any single flip — it requires a flip plus a transpose of the pixel grid. Knowing the difference matters when you are working with text in an image: rotating preserves legibility, while a horizontal flip turns every letter into its mirror image.
Output Dimensions After a 90° Rotation
The width and height of the output depend on the original dimensions and the rotation angle. The table below shows the relationship qualitatively — exact pixel counts for your specific image are displayed by the tool itself before you commit to the download.
| Original aspect | After Rotate 90° (either direction) | After Rotate 180° |
|---|---|---|
| Landscape (W > H) | Becomes portrait; new W equals old H, new H equals old W | Same dimensions as original |
| Portrait (H > W) | Becomes landscape; new W equals old H, new H equals old W | Same dimensions as original |
| Square (W = H) | Identical dimensions, only content rotates | Same dimensions as original |
The total pixel count never changes — a 4000×3000 image and a 3000×4000 image both contain 12,000,000 pixels. What changes is which axis holds the longer side. This is why a 90° rotation of a phone photo taken in portrait mode gives a landscape-shaped result, and why rotating twice in the same direction brings you back to the original orientation. If you also need to crop away empty borders that appear after rotation, the Image Cropper handles that as a separate step with its own controls.
Privacy and File Handling
Rotation happens entirely inside the browser tab. The Image Rotator uses the browser's built-in image decoders to read the JPG, PNG, or WebP file, performs the geometric transform on the decoded pixel buffer, re-encodes the result as a PNG, and hands the encoded bytes back to the browser's download API. The file is never transmitted to a server, which is why there is no upload progress bar and no waiting for a remote service to finish. This also means the tool works offline once the page has loaded, and it works equally well on files that contain sensitive content because nothing leaves the device.
If your downstream workflow needs the rotated image in a different format, the rotation is just the first step. For smaller file sizes you can convert the rotated PNG to JPG with the PNG to JPG converter, and for smaller pixel dimensions you can run it through the Image Resizer. A useful related guide is how to flip an image horizontally or vertically, which covers the reflection operation in detail, and how to resize an image to exact pixel dimensions in your browser, which covers the next step if you also need to change the pixel count.
Troubleshooting Common Rotation Problems
If the downloaded PNG looks identical to the original, the most common cause is that the rotation was applied to a file whose displayed orientation is already correct and whose EXIF orientation tag was misleading the viewer. In that case the pixel content matches the tag and a rotation makes the image sideways again. If the preview shows the image rotated but the saved file still looks sideways, the viewer opening the PNG is itself applying a rotation on top of yours — closing and reopening the file in a different program is usually enough to confirm whether the pixels were actually changed. If the file is rejected for being too large, the 25 MB ceiling applies to the input; you can shrink it first with the Image Compressor and then return to rotate the smaller version. If you need to rotate many files in sequence, the tool processes one file at a time, and each download is independent — there is no batch queue to manage.
For a deeper look, see Convert Image to ASCII: Local PNG, JPEG, GIF & WebP.
For a deeper look, see How to Convert an Image to Base64 in Your Browser.