# Rotate image: clockwise quarter turns and output size

> Choose clockwise 90°, 180° or 270° turns and understand output dimensions and export limits.

- Tool: [Rotate Image](https://toolsg.com/en/rotate-image)
- Language: en (available: en, zh, ms, ta)
- Last verified against official sources: 2026-10-19
- Source site: ToolSG — a planning guide, not official or financial advice. Cite the agencies listed under Sources.

## Key figures at a glance

| Fact | Value | Source |
| --- | --- | --- |
| Default rotation | 90° clockwise — The offered choices are 90°, 180° and 270°, not arbitrary angles. |  |
| Default output | PNG — The fresh page offers PNG, JPEG and WebP. |  |
| Default quality | 92 — Used by JPEG/WebP encoding; PNG ignores this quality setting. |  |
| Canvas area cap | 16,777,216 pixels — Large sources are reduced before processing; large resampling targets are capped too. |  |

## What this tool changes

Positive rotation here is clockwise. A 90° or 270° turn swaps width and height; 180° retains them. JPEG EXIF orientation is handled before the selected turn, so the operation starts from the displayed upright image.

Each change is calculated from the loaded source. Selecting 90° then 180° produces 180° from the source, not a cumulative 270°. This canvas export re-encodes pixels; it is not a lossless JPEG coefficient-rotation or metadata-only operation.

## Worked examples

For the six-pixel source `AB / CD / EF` (2 × 3), downloaded PNG positions were checked directly.

| Input or setting | Result |
| --- | --- |
| 90° clockwise | ECA / FDB — 3 × 2 |
| 180° | FE / DC / BA — 2 × 3 |
| 270° clockwise | BDF / ACE — 3 × 2 |

## Use the controls

1. Choose the source image and check its initial orientation.
2. Select 90°, 180° or 270° clockwise.
3. Choose the output format and wait for the result dimensions.
4. Download the result and check orientation and image quality.

## Output and limits

The tool decodes and processes one image locally in your browser without uploading it for conversion. Original camera, date, GPS and source colour-profile metadata are not copied. Animated input becomes a still image. Unsupported input depends on the browser's decoder.

PNG stores the resulting canvas pixels losslessly and keeps alpha. JPEG adds lossy encoding and composites transparent areas onto white. WebP normally keeps alpha with lossy colour encoding at the default quality. If WebP encoding is unsupported, the tool reports a PNG fallback and names the download .png. The preview is made before JPEG/WebP compression: inspect the downloaded file for compression artefacts.

Check the result dimensions, especially for large images. The source can be reduced to the 16,777,216-pixel area cap before the operation; a larger resampled result is capped again. The actual sizing function maps 8000 × 6000 to 4729 × 3547. A larger file or pixel count does not restore detail already lost.

For other changes, download the result and load it into the next tool; these pages do not maintain a combined edit history. Use [the image converter](https://toolsg.com/en/image-converter) for a different output format.

## Frequently asked questions

**Is my image uploaded anywhere?**

No. The image is decoded and re-encoded entirely in your browser using a canvas. It never leaves your device, is never sent to a server, and nothing is stored.

**Will the quality drop?**

PNG keeps every pixel. BMP also keeps every pixel but flattens transparency onto white. WebP and JPEG are lossy at the default quality of 92, so the quality setting trades file size against fidelity. Decoding an already-lossy JPEG or WebP never brings back lost detail.

**Why did my photo come out the right way up?**

Photographs from phones store an EXIF orientation tag rather than rotating the pixels. This tool reads that tag and applies the rotation, so the result matches what you saw in your gallery.

**Is there a size limit?**

Very large images are scaled down to stay within 16,777,216 pixels (about 16.7 million), because some browsers, notably iOS Safari, produce a blank image beyond that. The tool applies the cap in every browser and does not warn you. The aspect ratio is kept.


## Sources

- [WHATWG — HTML canvas transformations, drawing and serialization](https://html.spec.whatwg.org/multipage/canvas.html)
- [W3C — PNG specification, third edition](https://www.w3.org/TR/png-3/)
- [Google — WebP compression and alpha](https://developers.google.com/speed/webp/docs/compression)
