Crop and rotate an image by exact pixels

Use coordinates, aspect-preserving resizing and a local preview to prepare a still image.

Open this tool · All guides

Understand the settings

The crop rectangle is defined by its left coordinate, top coordinate, width and height in the loaded image. Coordinates start at zero. A rectangle must fit inside the image: left plus width cannot exceed the original width, and top plus height cannot exceed the original height.

Resizing preserves the crop’s aspect ratio. Rotation is applied afterward, so a 90-degree rotation swaps the output width and height. Horizontal flip is applied before rotation. The preview is scaled to fit the page; that on-screen size does not change the pixel dimensions of the downloaded file.

Browser canvas processing creates a new still image. It does not preserve original EXIF data, ICC profiles, animation or high-bit-depth samples. A transparent image remains transparent in PNG; JPEG needs a background, and this tool uses white. Repeated lossy JPEG/WebP exports can reduce quality.

Step by step

  1. Choose a PNG, JPEG or WebP and read its dimensions.
  2. Enter the crop rectangle. Set left/top to zero and use full dimensions to keep the whole image.
  3. Optionally choose a smaller output width, rotation or flip.
  4. Update preview, inspect the result, select the format and quality, then download.

Remove a border

For an 800 × 600 image with a 10-pixel border on every side, use left 10, top 10, width 780 and height 580. To make a smaller copy, set output width 390; the crop scales to 390 × 290 before any rotation.

Limits and what to check

Troubleshooting

Crop falls outside the image

Reduce the width/height or move the rectangle closer to the origin. The coordinates refer to the original image, not the scaled preview.

WebP download fails

The browser may not support that encoder. Choose PNG or JPEG.

The download is larger than the original

Different formats use different compression. A detailed photograph stored as PNG often grows.

Related tools

Updated October 9, 2026. Report an issue with this guide.