Input image
Rotated image

Upload an image and set rotation options below—the preview updates automatically.

Rotation options

Rotate clockwise or counterclockwise. Use simple presets for quarter turns, or advanced mode for any angle with direction control.

Angle selection

Angle

Background color

Expand output to the rotated bounding box. Uncheck to keep original dimensions—corners may clip on diagonal angles.

Margin (additional space) (px)

Rotate image online

Use this image rotator to rotate picture online by 90, 180, or any custom angle. Choose clockwise or counterclockwise, preview instantly, and download PNG.

What is image rotation?

Image rotation turns a photo by a chosen angle around its center, clockwise or counterclockwise, so sideways or upside-down content reads correctly. This page works as an online image rotator with quick 90° and 180° presets plus advanced mode for any degree. You can enlarge the canvas so the full rotated image fits, add margin padding, and fill empty areas with transparency or a solid color. Upload, adjust options, preview beside the original, and download PNG in your browser.

Image rotation features

Turn photos clockwise or counterclockwise with an online image rotator.

  1. Simple presets: 90° left, 90° right, and 180° one-click angles for quick photo rotate fixes.
  2. Advanced angle: 0–360° with clockwise or counterclockwise direction.
  3. Enlarge canvas: Optional bounding-box expansion so nothing clips.
  4. Margin padding: Add extra space around the rotated result.
  5. Background modes: Transparent PNG or solid fill behind rotated pixels.
  6. Automatic preview: Output refreshes as you change any option.

How to rotate a photo

Steps to rotate picture online.

  1. Upload your image: Drop or click in the input panel (15 MB max).
  2. Choose angle mode: Use simple for quarter turns; advanced for custom degrees.
  3. Set canvas and background: Enable enlarge canvas for full visibility; pick transparent or solid fill.
  4. Download PNG: Save the rotated image for web, print, or further editing.

Tips for rotating images

Cleaner exports and correct orientation for rotate image tasks.

  1. Enable enlarge for diagonals: Custom angles need enlarged canvas or corners will clip.
  2. 90° presets for EXIF fixes: Simple left/right is fastest for phone orientation mistakes.
  3. White background for documents: Solid white plus margin frames scans on slide backgrounds.
  4. Watch output size: Enlarging a large photo can exceed 8192 px—reduce margin or upload size.
  5. Pair with crop: Rotate first, then trim excess on /crop-image if needed.
  6. Keep the original: Rotation is destructive—archive your source file first.

When to rotate images

Typical uses for photo rotation.

  1. Phone photos sideways: Fix portrait shots saved in landscape orientation.
  2. Scanned documents: Turn PDF page captures or scans upright before OCR.
  3. Social graphics: Tweak diagonal layouts or creative tilt angles.
  4. Product photos: Align SKU shots for consistent catalog thumbnails.
  5. Presentation assets: Rotate screenshots and diagrams for slide decks.
  6. Combine with flip: Rotate then mirror on /flip-image when mirroring alone is not enough.

Why use this rotate tool

Benefits of browser-based rotation.

  1. CW and CCW: Match camera orientation without guessing negative angles.
  2. No install: Works in any modern browser with Canvas 2D.
  3. Private: Images stay on your device.
  4. Flexible canvas: Enlarge or clip depending on your export needs.
  5. Free: Unlimited previews and downloads.
  6. Alpha preserved: Transparent backgrounds on PNG uploads are kept when selected.

Technical details

How canvas rotation works here.

  1. Transform: translate → rotate (radians) → drawImage centered on origin.
  2. Enlarge bounding box: innerW = |w cos θ| + |h sin θ|; innerH = |w sin θ| + |h cos θ|.
  3. Margin: Added to output width and height on every side.
  4. Background: Solid fill before draw; transparent leaves alpha.
  5. Input limits: 15 MB upload; source longest edge 8192 px; output max 8192 px.
  6. Rendering: Canvas 2D; PNG download via toDataURL.

Frequently Asked Questions

Have questions? We have answers.

More tools from Image & Conversion.