Categories

Rotate Image by Arbitrary Angle

Rotate images by any arbitrary angle with options for background color and output format

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: image/jpeg, image/png, image/webp, image/tiff, image/gif, image/bmp

Upload any image file (JPEG, PNG, WebP, TIFF, GIF, BMP) for arbitrary angle rotation

Angle to rotate the image. Positive values rotate clockwise, negative values rotate counter-clockwise.

Background color to use when rotating (for formats without transparency). Default: white for JPEG, transparent for PNG/WebP

Choose output format or keep original

Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

Key Facts

Category
Design
Input Types
file, number, color, select
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Rotate your images precisely by any degree with this professional-grade tool. Whether you need to correct a tilted horizon or create dynamic design layouts, our utility allows for custom angle adjustments, background color selection, and format conversion in one simple step.

When to Use

  • Correcting the alignment of scanned documents or photos that were captured at an angle.
  • Creating artistic, tilted compositions for social media graphics or web design assets.
  • Standardizing image orientation for consistent display in digital galleries or presentations.

How It Works

  • Upload your image file (JPEG, PNG, WebP, TIFF, GIF, or BMP).
  • Enter the desired rotation angle in degrees (positive for clockwise, negative for counter-clockwise).
  • Select a custom background color to fill the empty space created by the rotation.
  • Choose your preferred output format and quality settings, then process the file.

Use Cases

Straightening tilted architectural photos to ensure vertical lines are perfectly upright.
Rotating product images to fit specific layout templates for e-commerce websites.
Preparing creative assets by rotating elements to specific angles for graphic design projects.

Examples

1. Straightening a Tilted Horizon

Photographer
Background
A landscape photo was taken with a slightly tilted camera, making the horizon line appear uneven.
Problem
The image needs to be leveled without losing significant detail or cropping too much.
How to Use
Upload the JPEG file, set the rotation angle to -2.5 degrees, and keep the original format.
Example Config
angle: -2.5, outputFormat: 'original'
Outcome
The horizon is perfectly level, and the image maintains its original quality and format.

2. Creating Angled Design Elements

Graphic Designer
Background
A square product logo needs to be rotated 45 degrees to fit into a diagonal banner design.
Problem
The background behind the rotated logo needs to match the website's brand color.
How to Use
Upload the PNG logo, set the angle to 45, and select the brand's hex color as the background.
Example Config
angle: 45, backgroundColor: '#F3F4F6', outputFormat: 'png'
Outcome
The logo is rotated 45 degrees with a clean, branded background, ready for immediate use in the banner.

Try with Samples

image, png, jpg

Related Hubs

FAQ

Can I rotate images by any angle?

Yes, you can enter any value between -360 and 360 degrees for precise rotation.

What happens to the empty corners after rotation?

The tool fills the empty space with your chosen background color. For formats like PNG or WebP, you can maintain transparency.

Which file formats are supported?

You can upload JPEG, PNG, WebP, TIFF, GIF, and BMP files.

Can I change the file format during rotation?

Yes, you can select a new output format such as JPEG, PNG, or WebP from the settings menu.

Does rotating an image affect its quality?

If you choose a lossy format like JPEG or WebP, you can adjust the quality slider from 1 to 100 to balance file size and visual clarity.

API Documentation

Request Endpoint

POST /en/api/tools/image-rotate-arbitrary

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Upload any image file (JPEG, PNG, WebP, TIFF, GIF, BMP) for arbitrary angle rotation
angle number Yes Angle to rotate the image. Positive values rotate clockwise, negative values rotate counter-clockwise.
backgroundColor color No Background color to use when rotating (for formats without transparency). Default: white for JPEG, transparent for PNG/WebP
outputFormat select No Choose output format or keep original
quality number No Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

File type parameters need to be uploaded first via POST /upload/image-rotate-arbitrary to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-image-rotate-arbitrary": {
      "name": "image-rotate-arbitrary",
      "description": "Rotate images by any arbitrary angle with options for background color and output format",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-rotate-arbitrary",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]