Images and files
Crop an image in pixels
Select an exact rectangular area of a local PNG, JPEG or WebP image by its left and top edge, width and height in pixels, and save it as a new PNG.
Create the image, inspect the preview and download PNG. Editing or resetting clears it.
Result
Formula / calculation:
Use PNG, JPEG or WebP up to 8 MiB and 8 million pixels. Coordinates start at the top left of the decoded, orientation-corrected image. Enter whole pixel coordinates and dimensions; an area outside the image is refused. The output is PNG with the selected pixels and transparency. Animated images are refused. Processing uses browser canvas; inspect the preview and downloaded file. Editing or reset discards the previous result.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Use PNG, JPEG or WebP up to 8 MiB and 8 million pixels. Coordinates start at the top left of the decoded, orientation-corrected image. Enter whole pixel coordinates and dimensions; an area outside the image is refused. The output is PNG with the selected pixels and transparency. Animated images are refused. Processing uses browser canvas; inspect the preview and downloaded file. Editing or reset discards the previous result.
Worked example
Editable example; inputs determine the snapshot.
Frequently asked questions
How do I crop an image to exact pixels?
Enter the left and top edge, width and height in whole pixels. Coordinates start at the top left of the decoded, orientation-corrected image.
Which image formats can I crop?
PNG, JPEG or WebP images up to 8 MiB and 8 million pixels. Animated images are refused.
In which format is the cropped image saved?
The output is a new PNG containing the selected pixels and their transparency.
What happens if the crop area is outside the image?
An area outside the image is refused, so the rectangle must fit within the image dimensions.
How is the image cropped?
Processing uses the browser canvas. Inspect the preview and the downloaded file; editing or reset discards the previous result.