Rotate Image
Turn a picture by 90° steps, or by any angle to straighten it. Pick what fills the corners. Everything stays on your device.
https://flxcode.com/rotate-image/
or drop them here, or paste with Ctrl+V
JPG, PNG, WebP, HEIC, AVIF, GIF and BMP, up to 50 megapixels each. Nothing is uploaded. Location and camera data are removed from the saved files.
Works offline: load this page, edit one picture, turn off Wi-Fi, edit more. Nothing you add is sent anywhere.
Your pictures never leave this device. There is no upload, no account and no watermark. How we count
Problem or idea? Email us
How to use it
- Choose your pictures. The first one shows in the preview.
- Press Left 90°, Right 90° or 180°, or move the angle slider or type a number.
- For an angle that is not a multiple of 90, pick a corner colour or tick see-through corners.
- Press Apply and save, then download.
How big the canvas gets, for a 4000 × 3000 photo
A turn by an odd angle needs a bigger canvas to hold the corners. The sizes come from the same function as the tool.
| Angle | Canvas in px | Megapixels | Pixels vs. original |
|---|---|---|---|
| 90° | 3,000 × 4,000 | 12.0 MP | 100% |
| 5° | 4,247 × 3,338 | 14.2 MP | 118.1% |
| 15° | 4,641 × 3,934 | 18.3 MP | 152.1% |
| 30° | 4,965 × 4,599 | 22.8 MP | 190.3% |
| 45° | 4,950 × 4,950 | 24.5 MP | 204.2% |
A square, 1000 × 1000
A square has the biggest jump at 45°, where the canvas side is the side times the square root of 2.
| Angle | Canvas in px | Megapixels | Pixels vs. original |
|---|---|---|---|
| 90° | 1,000 × 1,000 | 1.0 MP | 100% |
| 10° | 1,159 × 1,159 | 1.3 MP | 134.3% |
| 30° | 1,367 × 1,367 | 1.9 MP | 186.9% |
| 45° | 1,415 × 1,415 | 2.0 MP | 200.2% |
Quarter turns and straightening
Use the 90° buttons when a photo is on its side. Use a small angle, one or two degrees, to level a horizon. A turn by a small angle leaves thin empty wedges in the corners, which the fill colour covers.
To get rid of the wedges, rotate first, then crop the result with the crop tool to a clean rectangle inside it.
Numbers this uses
- Angles are in degrees, clockwise. Positive turns right, negative turns left. The range is -180 to 180.
- The canvas is the bounding box of the turned picture: width × |cos| + height × |sin|, and the same swapped. It is rounded up to whole pixels.
- Multiples of 90° use exact sizes and no blending: a right angle turn keeps the picture sharp.
- Corner fill: a colour you pick (white to start), or see-through when saving as PNG or WebP. JPG cannot be see-through, so a see-through choice saves a PNG.
- If the canvas would pass 50 MP (16.777 MP on iPhone and iPad), the result is scaled down to fit and the row says so.
- JPG and WebP quality starts at 90%.
How a free angle is drawn
The picture is drawn on a bigger canvas, turned around its centre by the angle. Pixels between the old grid and the new one are blended, so an odd angle softens fine detail a little.
JPG and WebP are saved again, and the saved file has no location or camera tags. A photo taken sideways is turned upright before your turn is added.
Pictures are opened and saved by your browser. A finished run counts one event, "rotate", and never a file name, size or dimension (details). Zip files are made with fflate and HEIC decoding uses libheif: open source used on this site.
FAQ
How do I rotate a photo by 90 degrees?
Choose the photo and press Right 90° or Left 90°. The preview turns at once. Press Apply and save to get the file. Pressing the same button again turns it another 90°.
How do I straighten a crooked horizon?
Type a small angle, such as -1.5 if the horizon dips to the right, and watch the preview. Then crop the result to remove the empty corners.
Why is the picture bigger after I rotate it by an angle?
The turned picture is a tilted rectangle, and a canvas has to be a straight one around it. At 45° a 1000 px square needs a 1415 px canvas. The extra area is filled with your colour.
Can the corners be see-through?
Yes. Tick "See-through corners". JPG cannot be see-through, so the picture is saved as PNG instead, or WebP if you pick it.
Does rotating lose quality?
A 90° or 180° turn moves pixels without changing them, but JPG and WebP are saved again at 90% unless you raise it. A free angle also blends pixels. PNG loses nothing in the save.
Which direction is a positive angle?
Clockwise. 90 turns right, -90 turns left, and 180 and -180 are the same.
My iPhone photo opens sideways. Is that this tool?
No. Photos are turned upright using the rotation tag in the file before you edit. If another program shows it sideways, rotate it here and save, and the new file has no tag to misread.
Are my pictures uploaded?
No. The picture is read and edited by your browser on this device. To check it, load this page, switch to airplane mode and edit a file. It still works. The picture and its file name are never put in the address, saved or counted.
More from FLXCode
Flip ImageNew
Flip a picture horizontally or vertically and turn it by 90 degrees, with a live preview. Nothing is uploaded.
Crop ImageNew
Crop a photo with drag handles, arrow keys or exact pixels. Presets for 1:1, 4:5 and 16:9. Nothing is uploaded.
Image ResizerNew
Resize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
Remove Background from ImageNew
Cut the background out of product, object and pet photos in your browser. Nothing is uploaded.