Skip to content
UniKit

Image rotator

Rotate by exact 90°/180°/270° pixel remapping, or by any angle with nearest-neighbour sampling and an automatically enlarged canvas; PNG export stays local.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result

No result yet

45°

Result

These are the real numbers from this run — copy them straight out.

Pick an image and the result shows up here.

What this tool does

  • Straighten a photo taken in landscape orientation, or reorient a scan to its reading direction.
  • Rehearse before batch work: confirm that a 90° rotation swaps width and height and that empty corners stay transparent.
  • Add a slight tilt for decoration: any-angle rotation enlarges the canvas so no corner gets cropped.

Example

Input

A 2×2 image of [10,20,30,255], [40,50,60,255], [70,80,90,255] and [100,110,120,255], 90° clockwise

Output

90° → [70,80,90,255], [10,20,30,255], [100,110,120,255], [40,50,60,255] (still 2 × 2)

90/180/270 are exact remaps with no interpolation; any angle uses nearest-neighbour sampling and grows the canvas to the bounding rectangle, leaving corners fully transparent.

Frequently asked questions

What is the difference between a 90° rotation and an arbitrary angle?

90°/180°/270° are exact pixel remaps with no interpolation and no blurring, and 90°/270° swap width and height; any angle uses nearest-neighbour sampling, so edges get slightly jagged, and the canvas grows to the bounding rectangle with the empty corners fully transparent.

Any-angle rotation enlarges the canvas — does it crop the image?

It does not crop. At any angle the output canvas grows just enough to hold the whole image, and the result panel shows "canvas enlarged: yes". The larger canvas also means more pixels, though, and the limit stays at 16,000,000, so a near-limit image can fail with an error after rotation.

Is the rotation clockwise or counter-clockwise, and what angles can I set?

Everything is clockwise: the any-angle slider runs from 0 to 359° (45° by default) and 90°/180°/270° are clockwise too. For counter-clockwise, use 360° minus the target angle (for example 330° for 30° the other way). Processing happens locally in your browser and the exported PNG never overwrites the original.

Keywords:rotate imagerotate 90rotate 180rotate image online

Related tools