Rotate Image
Rotate Image applies the entered angle around the canvas center. Output dimensions swap only for normalized angles exactly 90° or 270°; every other angle retains the original canvas size. Consequently, arbitrary rotations can clip corners and leave transparent regions rather than expanding to the full rotated bounding box.
Runs locally — files stay on your deviceWill a 45° rotation keep the entire image?
Not necessarily. The output canvas stays at the original dimensions, so corners can be clipped.
Rotation needs a destination bounding-box policy
A rectangle rotated by an arbitrary angle usually needs a larger axis-aligned bounding box. This implementation enlarges only by swapping dimensions for quarter turns.
How it works
The angle defaults to 90 when zero or invalid, is used to determine quarter-turn dimensions, then canvas translates to center, rotates, and draws the image.
Key concepts
Zero is treated as fallback
Number(value) || 90 makes 0 behave as 90°.
Pixels are re-rendered
The tool exports a new PNG, not a metadata-only orientation flag.
When to use it
- Apply 90°, 180°, or 270° pixel rotation.
- Create a simple PNG orientation derivative.
- Experiment with arbitrary angles while accepting clipping.
When not to use it
- Do not expect automatic expansion for 45° or similar angles.
- Do not use zero to request no rotation because zero falls back to 90.
- Do not expect EXIF orientation metadata edits.
Worked examples
Quarter turn
- Input
90°- Expected output
Width and height swapped
The full rectangular image fits.
Half turn
- Input
180°- Expected output
Original dimensions
No swap is needed.
Diagonal
- Input
45°- Expected output
Original-size canvas with possible clipping
Bounding box is not expanded.
Common mistakes
Using 0°
It triggers the 90° fallback. Correction: Skip processing when no rotation is wanted.
Expecting auto-crop expansion
Only quarter-turn dimensions are handled. Correction: Use specialized rotation software.
Assuming metadata-only change
Pixels are redrawn. Correction: Keep the original.
Best practices
- Prefer exact quarter turns.
- Inspect corners after arbitrary angles.
- Retain the source image.
Related operations and differences
Add Text Watermark to Image
Choose Add Text Watermark to Image when you need to place a text watermark in the lower-right corner.; use Rotate Image specifically for rotate.
Adjust Image Brightness
Choose Adjust Image Brightness when you need to increase or decrease image brightness.; use Rotate Image specifically for rotate.
Adjust Image Contrast
Choose Adjust Image Contrast when you need to increase or decrease image contrast.; use Rotate Image specifically for rotate.
Adjust Image Saturation
Choose Adjust Image Saturation when you need to control the intensity of image colors.; use Rotate Image specifically for rotate.
Crop Image
Choose Crop Image when you need to crop an image to an exact local pixel rectangle.; use Rotate Image specifically for rotate.
Flip Image Horizontally
Choose Flip Image Horizontally when you need to mirror an image from left to right.; use Rotate Image specifically for rotate.
Limitations and privacy
- Arbitrary angles retain source canvas size.
- Zero/invalid input defaults to 90°.
- No auto-expand, background choice, interpolation control, or metadata preservation.
Selected images are decoded and processed locally in this browser.
Frequently asked questions
Does 90° swap dimensions?
Yes.
Does 45° expand the canvas?
No.
What does 0° do?
It falls back to 90°.
Is output PNG?
Yes.