99digest is in early access — tools are free while we grow.
Guide

How to Crop an Image to an Exact Size

Profile pictures, thumbnails and banners often need an exact size. A precise crop beats eyeballing a selection box.

How the rectangle is defined

The Image Cropper takes four numbers in pixels: x (distance from the left edge), y (distance from the top edge), width and height. The top-left corner of the image is 0, 0. For a 1,200 × 800 photo, x = 200, y = 100, width = 600 and height = 400 keeps a 600 × 400 area starting 200 pixels in and 100 pixels down.

Using the tool

  1. Choose an image, up to 25 MB.
  2. Enter x, y, width and height.
  3. Download the cropped picture.

Width and height must be above zero. If the box extends past the image edge, the tool shows an error that includes the original dimensions so you can adjust.

Working out the numbers

  • For a centred square, set width and height to the shorter side, and x or y to half the leftover on the longer side.
  • For a 1,200 × 800 image, a centred 800 × 800 square uses x = 200, y = 0.
  • To match a ratio such as 16:9, use the ratio calculator to find the height for a given width.

Cropping versus resizing

Cropping removes part of the picture and keeps the pixels unchanged. Resizing changes the size of the whole image. For a thumbnail, crop first, then resize with the resizer.

Frequently asked questions

Is there a drag-to-select box?

No, the tool uses exact numbers. Check the original size with the browser’s image information if you are unsure.

Try the Image Cropper Free, instant, and runs in your browser.