Rotate Images Online

Rotate JPG, PNG or GIF images. Rotate landscape or portrait images.

How Image Rotation Works

Rotating an image means turning every pixel around a fixed center point by a chosen angle, measured in degrees. The Rotation Angle control here accepts any value, not just the 90-degree steps you get from a simple "rotate left/right" button — you can enter something like 3.5 degrees or -12 degrees to nudge a photo into alignment instead of only spinning it in quarter turns. The angle you enter is measured clockwise from the image's current orientation, so a positive number rotates clockwise and a negative number rotates counterclockwise. Because decimal values are accepted, you have enough precision to correct a photo by something as small as half a degree, which is usually all a handheld shot needs to look level. What happens to the canvas depends on the angle. When you rotate by an exact multiple of 90 degrees (90, 180, 270), the image's four corners land exactly where a straight rectangle's corners would be — width and height simply swap for 90 and 270, or stay the same for 180 — so no extra space appears and nothing needs to be filled. Any other angle changes this. Rotate a rectangular photo by 12 degrees and its four corners now point outward past where a straight rectangle would sit. To keep the whole rotated image visible, the canvas has to grow into a new bounding box wide and tall enough to contain every corner. This is calculated automatically from the original width, height, and angle (roughly newWidth = width·|cos θ| + height·|sin θ|, and newHeight = width·|sin θ| + height·|cos θ|). That expanded canvas is bigger than the rotated photo itself, which leaves four triangular gaps at the corners where there's no original pixel data. Those gaps get filled automatically. With a PNG or another format that supports transparency, the gaps stay transparent, so the rotated photo sits on a see-through background — useful if you're placing it into another design afterward. With a JPG, which has no alpha channel, those corners get filled with a solid background instead, since JPG has no way to represent "no pixel there." This is a different operation from cropping or flipping. Rotation only changes orientation around a center point — it doesn't mirror content and it doesn't trim anything. Whatever rotates within the new expanded canvas stays intact at any angle you choose.

When You Need to Rotate an Image

Most rotation needs come from fixing an angle that's already wrong in the source file, not creative reframing. A handheld photo where the horizon tilts a few degrees because the camera wasn't level is the most common case — a 90-degree rotation won't fix that, but dialing in something like -2.3 degrees in the Rotation Angle field will straighten it without touching anything else in the shot. Scanned documents and printed photos run into the same problem in a more exaggerated way: feeding a page into a scanner even slightly askew produces a scan tilted by a small, inconsistent amount, and a stack of scans usually needs a slightly different angle correction for each page to square it up. Full 90 and 180-degree rotations solve a different, simpler problem: a phone photo saved sideways, or an image shot in portrait that needs to sit in a landscape layout. These cases are cleaner since no canvas expansion or corner fill happens — the whole rectangle just turns. Because the rotation runs locally in your browser rather than on a server, it's also a reasonable choice for correcting orientation on images you'd rather not upload anywhere — personal photos, scanned IDs, or files from a project under an NDA.

Corrects camera tilt or scan skew at any angle, not just 90-degree steps.
Automatically expands the canvas so rotated corners are never cropped off.
Preserves PNG transparency in the new corner areas created by non-90-degree rotation.
Processes the image locally, so the file never leaves your browser.

How to Rotate an Image

Rotating an image here comes down to one control. Load the JPG, PNG, or GIF you want to adjust, then use the Rotation Angle field to set how far to turn it — enter a round number like 90 or 180 for a quarter or half turn, or a decimal like 1.8 for a small correction to a tilted horizon. The preview updates as you adjust the value, so you can watch the canvas expand and see where the fill appears on non-90-degree angles before committing to anything. Once the angle looks right, the tool processes it (briefly shown as "Rotating...") and hands you the result. If you're straightening a tilted photo, zoom into the preview near the edges first — a small angle error is much easier to spot at the corners of the frame than at the center.

1

Open your JPG, PNG, or GIF image in the tool.

2

Enter a value in the Rotation Angle field — a multiple of 90 for a full turn, or a decimal for a small correction.

3

Check the preview, especially the corners, to confirm the angle and any corner fill look right.

4

Save the rotated image once the result matches what you need.

Frequently Asked Questions

This happens whenever you rotate by an angle that isn't a multiple of 90 degrees. The canvas has to grow to fit the rotated corners of your photo, and that larger canvas ends up bigger than the photo itself, leaving four triangular gaps. A PNG source keeps those gaps transparent; a JPG source gets them filled with a solid background, since JPG has no transparency channel. This tool doesn't crop those gaps away automatically — if you need a filled rectangle with no visible corners, you'll need to crop in from each edge afterward until you're back inside the original photo area.
Rotation turns the image around a center point by whatever angle you set — the content stays the same, just reoriented. Flipping mirrors the image across a horizontal or vertical axis, which reverses left-right or top-bottom and changes the content itself, so text becomes backwards and a person facing right now faces left. If a photo just looks upside-down or sideways, rotate it 180 or 90 degrees. If it looks mirror-reversed, rotating it won't fix that — you need a dedicated flip tool instead.
You can enter any angle, positive or negative, including decimals for fine corrections. For angles that aren't multiples of 90 degrees, the new canvas width and height come from the original width w, height h, and angle θ: newWidth = w·|cos θ| + h·|sin θ|, and newHeight = w·|sin θ| + h·|cos θ|. That's why a small correction like 2 degrees barely changes the canvas size, while an angle closer to 45 degrees produces a canvas noticeably larger than the original photo.
No. The rotation is calculated and rendered directly in your browser, and the image file is never sent to a server. That makes it a reasonable choice for personal photos, scanned documents, or anything else you'd rather not upload for a quick orientation fix.
Rotating by exact multiples of 90 degrees doesn't resample pixels — it just repositions them, so quality is unaffected. Rotating by any other angle does require resampling, since pixels have to be recalculated onto a rotated grid, which introduces a small amount of softening similar to what resizing produces. This is usually not noticeable at normal viewing sizes but can matter if you're applying a small angle correction to a high-resolution scan meant for print.
You can load an animated GIF, but the rotation produces a still image from it rather than an animation with the rotation applied to every frame. If you need the animation preserved with each frame rotated, this tool isn't built for that case — it's meant for rotating static images.
A negative angle rotates the image counterclockwise instead of clockwise, by that same number of degrees. So 90 turns the image a quarter-turn clockwise, while -90 turns it a quarter-turn counterclockwise, landing in a different final orientation despite both being 90-degree turns. For straightening a tilted horizon, whether you need a positive or negative value depends on which way the horizon leans in your original photo.
Yes, a JPG, PNG, or GIF stays in that same format after rotating. This matters for how the expanded canvas looks on non-90-degree rotations — a PNG keeps the new corner areas transparent, while a JPG fills them with a solid background since JPG has no transparency support.

More Image Tools

Explore other powerful tools for your image editing needs