Rotate JPEG

Rotate JPEG images online for free. Fix sideways phone photos and scanned documents in 90° turns or by a fine angle.

or drop photos here · up to 50 at once
…or paste an image (Ctrl+V)
Resize · Crop · Rotate · Flip
JPG, PNG, WebP, GIF, BMP, HEIC, TIFF and more.

How to Rotate JPEG Online

  1. Choose Your JPEG Files: Drag and drop JPEG images onto the page or click "Choose JPG files" — up to 50 at once. The first photo opens in the editor and the rest line up as thumbnails below it; with two or more photos open, "Add more" adds files to the same batch.
  2. Rotate It: In Rotate, click "90° left" or "90° right" for quarter turns, or drag "Fine angle" (−45° to 45°) to straighten a tilted horizon; "Background for exposed corners" picks "Auto-crop corners", "White", "Black" or "Transparent". The rotation applies to every photo in the batch.
  3. Pick the Output Format (Optional): "Save as" keeps "Same as original" or saves as JPG, PNG, WebP or another format. For JPG, WebP and AVIF output, the "Quality" slider (40–100) trades file size against detail. Resize, Crop, Rotate and Flip all work in the same session, and "Undo" steps back.
  4. Download: Click the Download button, which names the output format (for example "Download PNG"), for one photo, or "Download all (.zip)" for a batch — "Download one by one" saves the files separately. JPEG files are processed right in your browser, so they are not uploaded. No sign-up, no watermark.

Why Rotate JPEG?

JPEG is the dominant photo format on the web and on every consumer camera and smartphone, defined by ITU-T Recommendation T.81 (1992) and adopted as ISO/IEC 10918-1 in 1994. Rotation is one of the most common edits because the format itself does not store pixel orientation directly — instead, an optional EXIF "Orientation" tag (added by the metadata extension) tells viewers how to display the image. Different software honors that tag inconsistently, which is why a photo can look right on your phone and sideways in a browser, slide deck, or document.

Common reasons to rewrite the actual pixel orientation rather than rely on EXIF metadata:

  • Phone photos uploaded to platforms that strip EXIF — Twitter/X, Discord, and many CMSes drop or normalize the Orientation tag during re-encode, so a portrait shot taken with the phone in landscape grip suddenly displays sideways. Baking in the rotation prevents that.
  • Older or specialized viewers that ignore the tag — Windows File Explorer thumbnails, many Office suites, several PDF generators, and image-processing libraries used in print pipelines treat the pixel grid literally. If your audience opens images in those tools, EXIF rotation alone is not reliable.
  • Scanned documents and receipts — flatbed scanners and document scanners often produce JPEGs at 90° or 180° from the readable orientation, with no EXIF tag to fix it.
  • Straightening a tilted horizon — for camera tilt of a few degrees, a custom-angle rotation is the only fix; EXIF only describes 90° increments and mirror flips.
  • E-commerce and product photography — marketplaces like Amazon, Etsy, and Shopify expect a consistent upright orientation across every product image, and pixel-level rotation guarantees that regardless of the viewer.
  • Re-orienting pages before merging into a PDF — many JPEG to PDF workflows treat the raster as-is, so rotating each page first avoids a sideways-page document.

EXIF Orientation Tag vs Pixel Rotation

The Exif "Orientation" tag (TIFF tag 0x0112) holds one of eight values that describe how the stored pixels relate to the intended display:

Tag value Operation a viewer must apply
1 None — display as stored
2 Mirror horizontal
3 Rotate 180°
4 Mirror vertical
5 Mirror horizontal, then rotate 270° CW
6 Rotate 90° CW
7 Mirror horizontal, then rotate 90° CW
8 Rotate 270° CW (i.e., 90° CCW)

When you "rotate" a JPEG in this tool, the pixel grid itself is rewritten and the orientation tag is reset to 1, so every viewer — EXIF-aware or not — shows the image right-side-up.

Lossless vs Lossy JPEG Rotation — What to Expect

Because JPEG encodes data in 8×8 DCT blocks (16×16 with chroma subsampling), a 90°, 180°, or 270° rotation can in principle be done losslessly: tools like jpegtran simply reorder the existing coefficient blocks without ever decoding to raw pixels. The catch is that lossless rotation only works "perfectly" when the image's width and height are exact multiples of the iMCU size. When they are not, a strip of edge pixels falls outside a complete block, and the rotation either trims that strip or recompresses it. Custom angles always require a full decode, resample, and re-encode, so a small amount of generation loss is unavoidable. This editor does not use the block-reorder method: every rotation, including 90°, 180° and 270°, decodes the JPEG and saves a new one at the "Quality" you set.

Rotation type Quality impact here Notes
90° / 180° / 270° Tiny re-encode loss No interpolation; saved as a new JPEG at the chosen "Quality"
Custom angle (e.g., 5°) Mild softening Bilinear resample, then re-encode at chosen quality
Mirror flip (horizontal / vertical) Tiny re-encode loss Same as a 180° turn: pixels move, then the JPEG is re-encoded
Any rotation saved as PNG None for the rotated pixels PNG is lossless, but the file is much larger

A "Quality" of 92-95 keeps the post-rotation file visually indistinguishable from the source for almost all photographic content. Going below 75 will start to show ringing around hard edges.

Frequently Asked Questions

Can I upload JPEG, JPG, and JFIF files?

Yes. All three are the same baseline JPEG bitstream; only the file extension and (in JFIF's case) a small header marker differ. The tool decodes any of them and saves a standard JPEG that keeps your file's own extension (.jpg, .jpeg or .jfif).

Why does my photo look correct on my phone but sideways on my computer?

Your phone is reading the EXIF Orientation tag and rotating the display; your computer's viewer is showing the raw pixels. Until you rewrite the pixel grid, every viewer that ignores or strips the tag will show the image rotated. Running it through this rotator bakes the orientation in and resets the tag to 1, which is the universal "no rotation needed" value.

Will rotating a JPEG reduce its quality?

Slightly. Every rotation here, including 90°, 180° and 270°, decodes the JPEG and saves a new one, which introduces a single generation of compression artifacts; custom angles also resample the pixels. Save as PNG for a lossless copy of the rotated pixels, or use a command-line tool such as jpegtran for a strictly lossless 90° / 180° / 270° JPEG turn. A "Quality" of 92 or higher keeps that loss imperceptible for almost all photos.

How do I straighten a tilted horizon by a few degrees?

Use "Fine angle" in Rotate: drag it anywhere from −45° to 45° (0.1° steps), nudge it with the "−0.5°" / "+0.5°" buttons or type the angle — for example −2 to level a horizon that slopes up to the right. Combine it with "90° left" or "90° right" for larger turns. "Background for exposed corners" decides what fills the new corners: "Auto-crop corners" trims them away, or pick "White", "Black" or "Transparent" (transparent needs a format with alpha, such as PNG or WebP). JPEG has no transparency, so for a see-through background save as PNG with "Save as".

What is the largest JPEG I can rotate here?

Most images are processed right in your browser, so the practical limit is how much memory your browser tab can hold; a file too large for the browser may instead be processed on our servers, which removes that limit, and deleted automatically afterward. A 50-megapixel DSLR file (typically 15-30 MB on disk) rotates without trouble. The saved image can be at most 16,384 px per side and 120 megapixels, so a larger scan is brought down to fit.

Does this tool also flip (mirror) images?

Yes. The Flip tab in the same editor mirrors along a vertical or horizontal axis ("Horizontal" / "Vertical") and stacks with the rotation; Flip JPEG opens the editor on that tab. Flipping is a separate operation from rotation.

Why is my output a .jpeg instead of .jpg?

Because your file was a .jpeg: the editor keeps the source's own extension spelling, so a .jpg comes back as .jpg and a .jpeg as .jpeg (with the new pixel size added to the name). .jpeg and .jpg are interchangeable extensions for the same format; the three-letter .jpg exists only because of the old MS-DOS 8.3 filename limit. If your destination workflow requires .jpg, simply rename the file — no re-encoding is needed. If you also need a smaller file, see Compress JPEG.

Can I rotate a HEIC photo from my iPhone?

Yes — drop it in here or use Rotate HEIC: the editor opens HEIC files directly. A browser cannot write HEIC, so the rotated photo is saved as JPG, with its EXIF kept and the Orientation tag reset to 1 because the pixels are upright. HEIC to JPG is the route if you only need a conversion.

Do I need to crop after rotating a custom angle?

Custom-angle rotations create blank corners that JPEG fills with solid white (or black, if you pick "Black"). If you want a clean rectangular result without those wedges, pick "Auto-crop corners" under "Background for exposed corners", or run the file through Crop JPG afterward and trim to the largest centered rectangle that excludes the borders. For 90/180/270° rotations there is no such issue — the output is a clean rectangle.

Rate Rotate JPEG Tool

★★★★✭
Rating: 4.8 / 5 - 60 reviews