This tool cuts a rectangle out of an image using four numbers: how far the rectangle starts from the left edge and from the top edge, and how wide and how tall it is, all in pixels. There is no box to drag; the crop is exact because you type it. The result comes back in the same format, so a PNG keeps its transparency.
How to use it
- Drop your image on the page, or click to choose it.
- Enter Left (px) and Top (px): the position of the top-left corner of the area to keep. Leave both at 0 to start from the corner of the image.
- Enter Width (px) and Height (px): the size of the area to keep.
- Click Crop image and download the result.
Working out the four numbers
Positions are counted from the top-left corner of the image, the way image editors count them. Left 100 and Top 50 with Width 800 and Height 600 keeps the area that begins 100 pixels in and 50 pixels down and extends 800 pixels right and 600 down.
You need to know the size of the image first. Image metadata reports its width and height, and so does the file properties panel on your computer. To remove 40 pixels from every side of a 1000 by 800 image, for example, enter Left 40, Top 40, Width 920 and Height 720.
The rectangle has to lie inside the image. If the left offset plus the width, or the top offset plus the height, goes past the edge, the crop is refused and the message tells you the actual size of the image in pixels.
What happens to the file
The cropped image is saved in the format it arrived in: JPG, PNG, WebP, GIF, TIFF or AVIF. HEIC is the exception, because it cannot be written here; a cropped HEIC photo comes back as a JPG. A PNG is cut without any loss and keeps transparent areas. A JPG is compressed again when it is saved, as it would be in any editor.
Camera information stored in the file, such as the EXIF block with the date and location, is not carried into the cropped copy. An animated GIF stays animated: the same rectangle is cut from every frame.
When a different tool is quicker
To get a fixed size cut from the middle of a photo, such as a square for a profile picture, use Resize image with Crop to fill; it needs only the target size. To trim the margins of a PDF, use Crop PDF, and for video there is Crop video.
Questions
Why does it say the area runs past the edge?
The rectangle you described does not fit inside the image. The message gives the real width and height; make sure Left plus Width is no more than the width and Top plus Height is no more than the height.
Can I select the crop area by dragging on the picture?
No. This tool takes typed pixel values only, which makes it precise and repeatable but less convenient for cropping by eye.
How do I crop an image to a square?
Enter the same number for Width and Height and set Left and Top to place the square. For a centred square without the arithmetic, Resize image with Crop to fill does it from the target size alone.
Does cropping reduce image quality?
The pixels you keep are not scaled. A PNG comes back identical within the kept area. A JPG is re-saved, which compresses it once more; the effect is small but not zero.
Which corner are Left and Top measured from on a phone photo?
The top-left corner of the photo as you see it. Many phones save a portrait shot turned, with a tag telling viewers to show it upright; that tag is applied before the crop, so the offsets and the size given in the error message both refer to the upright picture.
Is the cropped-off part really gone?
Yes, in the copy you download: unlike a cropped PDF, a cropped image holds only the pixels inside the rectangle. Your upload and the cropped copy are deleted from the server within one hour.