Crop an Image Online

Load a picture, set an exact crop rectangle in pixels, preview it, and download the cropped PNG — all on your device.

Image Cropper

Drop an image here or click to choose

Source
Cropped preview

🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.

How it works

Cropping trims an image down to just the region you care about. This tool loads your picture, shows its full size in pixels, and lets you describe the crop as four numbers: the X and Y of the top-left corner and the Width and Height of the rectangle you want to keep.

The fields are pre-filled to the whole image, so you can start from the full frame and pull the edges in. Press Crop to render a live preview, then Download PNG to save a lossless copy. If your numbers run past an edge, the crop is clamped to fit rather than failing.

Everything happens on your device through the Canvas API — the file is never uploaded — so it is safe for screenshots, ID photos, or anything private. PNG output preserves transparency and every pixel of quality inside your chosen box.

Examples

A 1920×1080 screenshot → X 300, Y 200, W 800, H 600 → a tight 800×600 crop of one panel.
A scanned document with a white margin → pull Width and Height in to remove the border.
A square avatar from a wide photo → set equal Width and Height to get a 1:1 crop.

Frequently asked questions

What do X and Y mean?
They are the pixel coordinates of the crop's top-left corner, measured from the top-left of the image. X is horizontal, Y is vertical.
What happens if my rectangle is bigger than the image?
The tool clamps the width and height so the crop stays inside the image bounds, then reports the size it actually produced.
Does cropping reduce quality?
No. The output is a PNG copied pixel-for-pixel from the region you selected, so there is no re-compression of the kept area.
Is my image uploaded?
No. The file is read locally with FileReader and drawn to a canvas in your browser. Nothing is sent anywhere.
Can I crop transparent PNGs?
Yes. Transparency is preserved because the output is PNG, which supports an alpha channel.