My Learning

Keep this for later

Sign in or create a free account to save it. You’ll return to this page afterward.

Sign inCreate an account

Image Cropper

Crop an image using pixel offsets and dimensions.

JPEG, PNG, WebP and still GIF images are supported. Maximum 2 MB and 4 megapixels. Images are processed for this response and are not published as files.

How to use this tool

Upload an image, then enter left and top offsets plus crop width and height.

Important to know

Crop an image using pixel offsets and dimensions.

The crop rectangle must fit inside the source. Coordinates begin at the top-left corner. Output is PNG.

Formula and methodology

Select the rectangle [x, y, width, height] from the decoded image and encode it as PNG.

Example

For a 100 × 80 image, x=10, y=10, width=50, height=40 extracts a 50 × 40 region.

Frequently asked questions

Can a crop extend beyond the source?

No. Out-of-bounds crop rectangles are rejected.