Skip to main content
JPG JoinerJPG Joiner
ESC
Browser-only - your images never leave your device

Rotate any image by any angle - pixel-perfect, instant.

Rotate photos online by 90, 180, 270 degrees or any custom angle. Fix sideways phone photos, straighten scanned documents, or adjust composition. JPG, PNG, and WebP supported. Free, private, no signup.

Drop your image here

JPG, PNG, or WebP

100% Private
Runs in Browser
No Login
No Watermark
Free Forever

How to rotate a photo online.

01

Upload your image

Drag a JPG, PNG, or WebP file onto the drop zone. On mobile, tap to open your camera roll. You can also paste a screenshot directly from clipboard using Ctrl+V (Cmd+V on Mac). The image loads instantly in the editor.

02

Choose your angle

Drag the rotation slider or enter a degree value manually. Use the 90, 180, and 270 degree buttons for quick common rotations. The live preview shows the result immediately - fine-tune until the orientation is exactly right.

03

Download the result

Select PNG for lossless quality and transparency support, or JPG for a smaller file with white background fill. Click download and the rotated image saves to your device. EXIF orientation data is baked into the actual pixels.

Common reasons to rotate an image.

Fixing sideways phone photos

Phone cameras save photos in landscape sensor orientation and rely on EXIF metadata to display correctly. When you email a photo, upload to a form, or open it in legacy software, the EXIF tag gets ignored and the image appears sideways or upside down. Rotating here writes the correct orientation directly into the pixel grid so every viewer renders it right.

Straightening scanned documents

Flatbed and phone scanners often capture pages at a slight angle - 1-3 degrees off axis. OCR accuracy drops measurably when text lines are not horizontal. Rotating the scan by the exact offset angle before running OCR improves character recognition rates. Use the decimal degree input here for precise corrections like 1.7 or 2.3 degrees.

Adjusting photo composition

A horizon line tilted by 2 degrees makes an otherwise strong landscape shot look amateur. Rotate the image to level the horizon, then crop the expanded corners. Architectural photographers use the same technique to straighten vertical lines on building facades. Small angle corrections between 0.5 and 5 degrees make a significant visual difference.

Preparing images for print

Print layouts sometimes require a portrait image in landscape orientation or vice versa. Rotating 90 degrees switches the aspect ratio without cropping. Photo book services, poster printers, and card stock templates expect specific orientations. Rotating here before upload prevents the print vendor from auto-rotating or letterboxing your image.

How image rotation actually works under the hood.

The tool uses the HTML5 Canvas API to perform the rotation. It creates a canvas element sized to contain the rotated bounding box, translates the origin to the canvas center, applies the rotation angle in radians, draws the source image, then reads the resulting pixel data. For 90-degree increments, each source pixel maps exactly to one destination pixel with no interpolation. For arbitrary angles, the browser applies bilinear interpolation by default.

EXIF orientation and why it causes sideways photos

The EXIF specification defines 8 orientation values. Value 1 is normal (no rotation needed). Value 6 means the camera was held in portrait mode and the image needs 90 degrees clockwise rotation to display correctly. Value 3 means 180 degrees. Value 8 means 270 degrees. Modern browsers (Chrome 81+, Firefox 78+, Safari 14+) auto-apply EXIF orientation in CSS and <img> tags, but many other contexts - canvas drawing, Python PIL, older email clients, CMS upload handlers - ignore it. This tool reads the EXIF data, applies the rotation physically, and strips the orientation tag from the output so the image is self-contained.

Interpolation quality at non-right angles

When a pixel lands between grid positions after rotation, the renderer calculates its color by blending the four nearest source pixels. This bilinear interpolation produces smooth results for photographs but can soften hard edges on text, line art, and pixel art. For photographic content, the softening is invisible at normal viewing sizes. For pixel art or screenshots of small text, keep rotations to exact 90-degree multiples to avoid any interpolation. A 1920x1080 photo rotated 15 degrees shows no perceptible quality loss when viewed at screen size.

Canvas expansion and background fill

A 1920x1080 image rotated by 45 degrees requires a canvas of approximately 2121x2121 pixels to avoid clipping. The triangular regions between the rotated rectangle and the square canvas boundary need a fill color. PNG output fills these with transparency. JPG output fills with white. After rotating, use the crop tool to trim the expanded canvas back to just the image content, or use the resize tool to scale the final output to your target dimensions.

Crop after rotating?

Trim the expanded canvas or cut to a specific aspect ratio after rotation.

Crop Image

Resize the output?

Scale your rotated image to exact pixel dimensions for web or print use.

Resize Image

Flip instead of rotate?

Mirror an animated GIF horizontally or vertically with frame timing intact.

Flip GIF

Frequently asked questions.

How do I rotate an image by an exact degree angle?

Upload your JPG, PNG, or WebP file. Use the angle slider or type a specific degree value into the input field - any number from 0 to 360 works, including decimals like 12.5 degrees. The canvas preview updates in real time so you see the rotation before committing. For common rotations, click the quick-select buttons for 90, 180, or 270 degrees. The tool uses CSS transform during preview for instant feedback, then renders the final output on an HTML5 Canvas using the CanvasRenderingContext2D.rotate() method for pixel-accurate results. The output canvas expands to fit the rotated bounding box, so no corners are clipped. Download as JPG or PNG when you are satisfied with the angle.

Does rotating an image reduce its quality?

Rotations at exact 90-degree increments (90, 180, 270) are lossless because pixels map one-to-one to new grid positions without interpolation. A pixel at row 5, column 10 moves to a deterministic new coordinate. Non-right-angle rotations (like 15 or 45 degrees) require bilinear or bicubic interpolation because rotated pixel centers land between grid positions. This introduces sub-pixel blending that softens edges slightly - visible only at extreme zoom on high-frequency detail like text or fine patterns. For photographs, the softening is imperceptible at normal viewing size. If you export as JPG, the DCT compression at 92% quality adds its own minimal artifacts. For zero quality loss, rotate at 90-degree increments and export as PNG.

Why does my phone photo appear sideways or upside down?

Smartphones store photos in landscape orientation at the sensor level and embed an EXIF orientation tag (values 1-8) that tells viewers which way to display it. Tag value 6 means "rotate 90 degrees clockwise" - common for portrait shots on iPhones. Some software ignores this tag: Windows Photo Viewer, older browsers, certain CMS upload handlers, and email clients sometimes display the raw pixel grid instead of applying the EXIF rotation. This tool reads the EXIF orientation on upload and applies the physical rotation to the pixel data, then strips the tag. The output image displays correctly everywhere because the pixels themselves are in the right orientation - no viewer needs to interpret metadata.

What happens to the image dimensions after rotation?

At 90 or 270 degrees, width and height simply swap. A 1920x1080 image becomes 1080x1920. At 180 degrees, dimensions stay the same - 1920x1080 remains 1920x1080. At any other angle, the output canvas must expand to contain the rotated rectangle without clipping corners. The formula is: new_width = abs(width * cos(angle)) + abs(height * sin(angle)), and similarly for new_height. A 1920x1080 image rotated 45 degrees produces a canvas roughly 2121x2121 pixels. The triangular areas outside the original image boundaries fill with transparency (PNG) or white (JPG). You can crop the result afterward using the <a href="/crop-image/" class="text-link underline decoration-hairline underline-offset-4 hover:text-link-deep">crop tool</a> if you want to eliminate those fill areas.

Can I rotate a PNG and keep the transparent background?

Yes. Upload a PNG with transparency and the rotation preserves the alpha channel throughout. Transparent areas stay transparent after rotation. When the canvas expands to fit a non-right-angle rotation, the new corner regions are also transparent rather than filled with a solid color. Export as PNG to retain all transparency data. If you accidentally export as JPG, all transparent regions become white because the JPEG format does not support alpha channels. The tool defaults to PNG output when it detects an input file with transparency, so you would need to deliberately switch formats to lose the alpha data.

How is rotating different from flipping an image?

Rotation turns the image around its center point by a specified angle. Flipping mirrors it along an axis. A horizontal flip reverses left and right - text becomes mirrored and unreadable. A vertical flip swaps top and bottom. Rotation by 180 degrees produces the same visual result as applying both a horizontal and vertical flip simultaneously, but a 90-degree rotation is not achievable through any combination of flips alone. Rotation changes the angular orientation while preserving the internal left-right relationship of the content. Flipping reverses that relationship. If your photo is upside down, rotate 180 degrees. If it is a mirror image (text reads backward), flip horizontally instead.

Does this tool handle batch rotation of multiple images?

This tool is designed for single-image rotation with precise angle control and live preview. For rotating many images by the same angle, the <a href="/bulk-resize/" class="text-link underline decoration-hairline underline-offset-4 hover:text-link-deep">bulk resize tool</a> supports batch processing where you can apply transformations to multiple files simultaneously. The single-image approach here gives you per-image control: different angles, different crops, different export formats. If you need to rotate 50 product photos by exactly 3.5 degrees to correct a tripod alignment issue, process them individually here or use the bulk tool for uniform 90-degree corrections across the set.