Skip to content
TryImager

Rotate Image Online by 90°, 180° or 270°

Fix sideways scans and upside-down phone photos by rewriting the actual pixel grid at 90°, 180°, or 270° so the image displays upright in every viewer and upload portal.

Quarter-turn and half-turn rotations redraw your photo on a local canvas inside this tab without uploading the file anywhere. The rotated preview is held in temporary memory and cleared when you leave or reload.

Drop your image here

or choose an image from your device

Accepts JPG, PNG or WEBP. Turning by 90 or 270 degrees swaps the width and height of the image.

No file handy? Try a sample image:

Need your documents as one PDF? Convert images to PDF.

To assemble corrected scan orientations into a document, use Image to PDF Converter.

Pick 90°, 180°, or 270° clockwise in the workbench above to rewrite your image's pixel grid upright and verify the updated dimensions before downloading.

Rotate JPG, PNG and WebP Images 90°, 180° or 270° Online

Drop a sideways photo or upside-down document scan into the workbench above, choose 90°, 180°, or 270° clockwise, and rewrite the actual pixel grid upright in your browser. Unlike basic photo viewers that only update a metadata orientation flag, this tool redraws the image on an HTML5 canvas in standard row-major order and shows the exact output pixel dimensions and measured file size before you download.

Your image pixels are processed locally on your device without being uploaded to a server. If your iPhone saved a `.heic` photo that opens sideways in older Windows apps, convert it with HEIC to JPG first, or inspect its embedded camera orientation flag before editing in the Image Metadata Viewer.

Why Phone Photos Upload Sideways: EXIF Orientation Tags Explained

Digital camera sensors and smartphones almost always record raw pixel rows in landscape orientation regardless of how you hold the device. When you take a vertical portrait, the phone saves the landscape sensor grid and writes an EXIF Orientation tag (TIFF tag `0x0112`, values 1 through 8) into the file header—most commonly `1` (normal horizontal), `3` (upside-down, 180°), `6` (rotated 90° clockwise to stand upright), or `8` (rotated 270° clockwise / 90° counter-clockwise to stand upright).

Modern web browsers automatically honour that EXIF tag when displaying an image (`image-orientation: from-image`), so a phone portrait looks upright in your browser tab even if its raw pixels are stored sideways. However, many older government upload portals, exam forms, and legacy PDF generators ignore EXIF metadata and read the raw sensor rows directly—causing your portrait photo to appear sideways after upload. When you rotate an image here, the browser draws the rotated pixels onto a fresh canvas (which strips the old EXIF Orientation tag) and encodes them physically upright so every portal and viewer displays the image the same way.

How Right-Angle Canvas Rotation Works (Width × Height Swap)

Rotating a raster image by an exact multiple of 90° moves every source pixel to an exact whole-number row and column on the output canvas without sub-pixel interpolation or blur. On an HTML5 2D canvas, a 90° or 270° turn swaps the canvas width and height (`newWidth = sourceHeight`, `newHeight = sourceWidth`), translates the canvas origin to the rotated corner, and draws the bitmap at a right angle. In terms of 0-indexed pixel coordinates `(x, y)` on a source image of width `W` and height `H`:

Because quarter turns (90° and 270°) swap the horizontal and vertical axes, a `1920 × 1080` landscape image becomes a `1080 × 1920` portrait image while keeping the exact same 2,073,600 total pixels (8,294,400 bytes or 8.29 MB of decoded RGBA canvas memory).

  • 90° clockwise: creates a canvas of size H × W and maps source pixel (x, y) to destination column (H − 1 − y) and row x (moving the top edge to the right).
  • 180° clockwise: keeps the canvas at W × H and maps source pixel (x, y) to column (W − 1 − x) and row (H − 1 − y) (turning an upside-down image right-side up).
  • 270° clockwise (90° counter-clockwise): creates a canvas of size H × W and maps source pixel (x, y) to column y and row (W − 1 − x) (moving the top edge to the left).

Rotate vs Flip vs Perspective Straightening

Rotation and mirroring solve different geometry problems. Rotating turns the entire picture around its centre like the hands of a clock so sideways text becomes readable once upright. If a front-camera selfie, webcam capture, or backwards sign needs a left-to-right mirror reflection instead, use Flip Image.

If a smartphone photo of a paper receipt, marksheet, or book page was taken at an angle or has uneven desk shadows, a 90° turn alone will only rotate the whole frame. Use Crop Image to trim excess borders, Screenshot to Document to deskew four-corner perspective and whiten shadowed paper, Image Upload Rejection Fixer if a portal rejected the rotated photo's dimensions or KB size, or Image to PDF Converter to combine upright scans into a PDF.

How to Rotate an Image Upright and Verify Dimensions

  • Drop a JPG, PNG, or WebP file into the upload area above.
  • Select 90°, 180°, or 270° clockwise depending on which edge of your photo needs to move to the top.
  • Press Rotate image to redraw the pixel grid on an off-screen HTML5 canvas.
  • Verify the updated width × height readout and measured byte count in the result panel, then download your upright file.

Limitations to Know

  • Only exact 90°, 180°, and 270° clockwise steps are offered; straightening a 2° crooked horizon requires a free-angle or perspective tool.
  • Rotating a JPG or lossy WebP requires one fresh canvas encode pass at high quality (which can slightly change the byte size), whereas rotating a PNG is completely lossless and preserves 8-bit alpha transparency.
  • Output keeps the same file format as your input (JPG, PNG, or WebP). While image processing runs locally in your browser tab, standard page assets and consented analytics load over the network.

Common problems and fixes

My photo already looks upright when I drop it in—why did an upload portal show it sideways?

Your browser automatically reads the camera's EXIF Orientation flag when displaying the preview, whereas the portal you uploaded to ignored that flag. If it already looks upright in our preview, rotating by 180° twice (or downloading a re-encoded copy via Resize Image at 100% dimensions) bakes the upright pixels in without an extra turn.

Why did my 1920 × 1080 image become 1080 × 1920?

Turning a rectangle by 90° or 270° places its long horizontal edge vertically, so the width and height numbers swap places. Only a 180° turn keeps the original width and height unchanged.

Did the file size change slightly after rotating a JPG?

Yes. Because the rotated pixel grid is encoded into a new JPEG file by your browser's canvas encoder, the byte count will differ slightly from the camera's original encoding even though the total pixel count is identical.

What happens to your file

The rotation is drawn in browser memory and shown through a temporary local preview URL. No image is sent away to correct its orientation. Refreshing removes the unsaved rotated copy; downloaded versions remain on your device. Analytics records the tool action and format rather than your photo or filename.

Turning by 90 or 270 degrees swaps the width and height of the image.

Full details are in the Privacy Policy.

When not to use this

This tool turns images in exact 90°, 180°, or 270° steps; it cannot level a horizon that is tilted by 2 or 3 degrees.

Remember that a 90° or 270° turn swaps width and height—if an upload form requires a landscape 4:3 rectangle, rotating a landscape photo into portrait will fail that dimension check.

Frequently asked questions

Does rotating change my image's file format?

No. Your output keeps the exact format you uploaded—a JPG downloads as a JPG, a PNG stays a lossless PNG, and a WebP remains a WebP.

Which angle should I pick if my photo is lying on its left or right side?

Angles are measured clockwise: if the top of your subject is pointing to the left edge of the screen, choose 90° to bring it upright; if the top of your subject is pointing to the right edge, choose 270° (which is equivalent to 90° counter-clockwise).

Will rotating a PNG preserve its transparent background?

Yes. The full 8-bit alpha channel is transposed onto the rotated canvas alongside the RGB pixels, so transparent cutouts and drop shadows stay intact.

Does rotating a photo strip its EXIF Orientation tag?

Yes—and intentionally so. Redrawing the rotated pixels onto a fresh canvas writes them in standard upright order and removes the old EXIF Orientation tag, preventing older upload portals and PDF generators from rotating the photo a second time.

Why did my image width and height swap after a 90° or 270° rotation?

A 90° or 270° turn moves the horizontal axis to the vertical axis, so an image that started at 1600 × 900 pixels becomes 900 × 1600 pixels. Total pixel count (1,440,000 pixels) remains identical; only a 180° turn keeps the original width and height in place.

Does rotating an image by 90°, 180° or 270° blur fine text or edges?

No resampling blur occurs because every pixel moves to an exact integer row and column on the output grid. For PNG files the rotation is 100% lossless; for JPG and WebP files the upright grid is re-encoded once at high quality.

Related guides