Image Transforms

Rotate Image

Rotate an image by any angle, clockwise.

GET/api/rotate?url=&angle=

Query parameters

NameTypeRequiredDescription
urlstringRequiredPublic http(s) URL of the source image (max 10 MB).
anglenumberRequiredDegrees clockwise (-360 to 360).
backgroundstringOptionalHex color for the corners revealed by the rotation. Default transparent (use a color for jpeg).
formatstringOptionalOutput format: png, jpeg, webp, avif or gif.
qualityintegerOptional1-100 for jpeg/webp/avif. Default 80.

Try it

Saved only in this browser. Requests use your key and count toward your quota. Get a key

GET /api/rotate

Example request

curl "https://your-app.com/api/rotate?url=https%3A%2F%2Fexample.com%2Fphoto.jpg&angle=45&background=ffffff&format=jpeg" \
  -H "x-api-key: YOUR_API_KEY" \
  --output rotated.jpg

Response

Content-Type: image/png (or the requested format) — the rotated image.