Image Cropper — Select Pixels and Export PNG, JPEG or WebP

Image Tools

Loading tool...

About This Tool

Crop PNG, JPEG or WebP images by dragging a selection or entering exact pixel coordinates. Export the selected area with bounded dimensions and format checks.

How to Use

  1. Select PNG, JPEG or WebP up to 10 MiB.
  2. Drag across the image, or enter X, Y, Width and Height in original-image pixels and click Apply selection.
  3. Choose PNG, JPEG or WebP and the quality setting.
  4. Check the selected dimensions, then Crop & Download.

Crop an image using its original pixels

Drag inside the preview to select a region, or enter X and Y for its top-left corner and Width and Height in source pixels. Coordinates start at zero. The numeric fields offer an alternative to dragging and require Apply selection. For example, X=100, Y=50, Width=200 and Height=100 selects that rectangle from an image large enough to contain it.

Ratios and selection behavior

Free dragging uses both drag dimensions. The ratio menu constrains a dragged selection to square, landscape or portrait proportions; integer rounding can change the ratio slightly. Numeric entry uses your exact rectangle independently of the ratio menu. Changing the ratio or editing a coordinate clears the previous selection until you draw or apply another. Reset clears the selection rather than restoring the original file.

The selection is stored in source coordinates, so changing the browser window size does not change the exported rectangle. Pointer input supports mouse and touch paths; practical touch behavior still depends on your device and browser.

Input and output limits

PNG, JPEG and WebP inputs are accepted up to 10 MiB. Decoding has a 15-second timeout. The 40-million-pixel source limit is checked after loading and cannot prevent every decoding memory spike. Output is limited to 8192 pixels per side and 16 million pixels total. Invalid, fractional, empty or out-of-bounds rectangles are rejected.

Export choices

The selected pixels are drawn at the selected dimensions without resizing. PNG preserves transparency; JPEG composites transparent pixels onto white. WebP depends on browser encoding support. If the browser returns another format or cannot encode the image, the tool reports an error instead of giving the wrong extension. The quality slider is passed to JPEG and WebP encoders; it has no effect on PNG and is not a target file size.

This is a still-image crop and re-encode, not lossless JPEG cropping or metadata-preserving editing. It does not rotate, straighten, batch process or preserve animation. The processing code uses the file locally; loading the website still uses network requests. For resizing the output, use Image Resizer.

Frequently Asked Questions

Are X and Y measured from the preview or original?
They are original-image pixels, starting at the top-left at zero.
Does the ratio menu change numeric selections?
No. It constrains dragging; numeric fields use your exact rectangle.
Why is the JPEG background white?
JPEG cannot retain transparency, so the crop is composited onto white.