Crop Image Online to Exact Pixel Dimensions
Remove distracting edges from a photo or isolate the part of a screenshot you want to share. Pixel-based crop values let you choose a precise rectangle before resizing or compressing the remaining image.
Cropping trims your pixel selection directly on a local HTML5 canvas inside this browser tab, with no server upload involved. Closing or refreshing the page clears the unsaved crop from memory.
Drop your image here
or choose an image from your device
Accepts JPG, PNG or WEBP. The crop box cannot extend beyond the image's own pixel size.
Need your documents as one PDF? Convert images to PDF.
After isolating the subject, set the cropped image's final display dimensions with Resize Image.
Trim an image to an exact pixel rectangle you define with X, Y, width and height — no drag-and-guess, and values are automatically kept inside the image bounds.
About Crop Image
How the crop rectangle works
X and Y set the top-left corner of the area you keep, in pixels from the image's own top-left corner; width and height set how much of the image survives. Entering values that would fall outside the source image are clamped automatically, so you can't accidentally request a crop bigger than the file.
Cropping is the cheapest 'compression' there is
Deleting a third of the frame removes roughly a third of the pixel data before any encoder even runs. Unlike a quality slider, nothing about the pixels you keep is degraded — you're just discarding pixels you didn't want.
Settings
X, Y, width and height fields
For a centred square crop, set width and height equal and centre X/Y using (image width − crop width) / 2 and the equivalent for Y. The social resizers do this math automatically for platform-specific frames if that's what you're after.
When to use it
- Removing dead space — empty sky, background clutter — before resizing or compressing further.
- Producing a specific aspect ratio (square, 4:5, 16:9) by choosing matching width and height values.
- Isolating one subject from a wider photo for a thumbnail or profile picture.
Limitations to know
- Crop values must be entered as exact pixel numbers — there's no free-hand drag selection.
- The kept area isn't resampled, so cropping alone doesn't shrink dimensions beyond what you cut away.
- Cropping can't recover anything outside the area you keep — it's a one-way trim.
Common problems and fixes
My crop values got adjusted automatically.
That's the bounds clamp — a crop rectangle that would extend past the edge of the image is pulled back inside it so you never get a broken output.
The cropped image is still too big in file size.
Cropping only removes the pixels outside your rectangle — it doesn't compress the ones you keep. Run the result through the Image Compressor afterwards if it still needs to shrink further.
How do I crop several photos to the same exact box?
The crop values persist after you download, so load the next image and press Crop again with the same numbers.
How to use it
- 1Drop the image you want to trim.
- 2Enter the crop rectangle: X and Y set the top-left corner in pixels, width and height set the size of the area you keep.
- 3Values are clamped to the image bounds, so you can't accidentally crop outside the frame.
- 4Crop, confirm the output dimensions in the result panel, and download the trimmed file.
What happens to your file
The crop rectangle is applied to decoded pixels in this tab, with a temporary browser URL for the preview. Your image is not uploaded for cropping. Refreshing removes the unsaved crop; a downloaded copy remains on your device. Analytics records tool and format events, not your picture or its filename.
The crop box cannot extend beyond the image's own pixel size.
Full details are in the Privacy Policy.
When not to use this
Cropping removes pixels for good in the new file, so do not crop away margins an authority requires around a face or document.
If you only need the picture scaled proportionally inside a target limit without losing any part of it, use a resizer or a social preset in Fit mode instead.
Frequently asked questions
Does cropping lose quality in the area I keep?
The kept pixels are copied at full resolution. The only quality change comes from re-encoding the output, so use a high quality value if the source was a JPG.
How do I crop to an exact aspect ratio?
Pick the width and height in that ratio — 1080 × 1080 for a square, 1200 × 630 for a link preview — and position X and Y to frame the subject. For platform-specific frames, the social resizers do the maths for you.
Does the output keep the original file format?
Yes, unless you choose otherwise — a cropped JPG stays a JPG, a cropped PNG stays a PNG, so transparency in a PNG survives the crop untouched.
Where is X = 0, Y = 0 measured from?
Coordinates start at the top-left corner of the image: X increases from left to right and Y increases from top to bottom, measured in exact source pixels.