Image Cropper by Pixel Coordinates

Crop PNG, JPEG or WebP by pixel coordinates. Set the origin, width and height with keyboard-accessible fields.

Drop files here. Files stay on your device.

How to use

Coordinates start at the top-left of the decoded image: X increases to the right and Y downward. Enter an integer origin and crop dimensions. A blank width or height extends from the origin to that image edge.

For a 200 × 100 image, X=20, Y=10, width=80 and height=40 extract an 80 × 40 region. The selected rectangle must fit completely inside the source. This tool uses numeric controls rather than a drag selection.

Choose a ratio preset to fit the largest exact integer-multiple rectangle inside the requested crop box, anchored at X/Y. Free uses the dimensions as entered.

Behavior and limits

Input limit: 40 MiB, 40 million pixels and 10,000 pixels per side. Preview the result before downloading. JPEG uses a white background for transparency; metadata and color profiles may change during re-encoding.

Questions & answers

Can the rectangle extend outside the image?

No. Out-of-bounds coordinates produce an error instead of silently padding or shrinking the selection.

Can I use this without uploading data?

Processing runs on your device. Input is not sent to a conversion API. Keep the page open until the result is ready.

Other Languages

Image Cropper — Base64.sh

Image Cropper by Pixel Coordinates

Crop PNG, JPEG or WebP by pixel coordinates. Set the origin, width and height with keyboard-accessible fields.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Check actual shared size/coordinate/quality functions against explicit geometry results, including invalid/out-of-bounds inputs.
Comparison reference
Fixed geometry/parameter assertions: swapped dimensions for rotation, crop bounds, resize ratios and compression type/quality.
Verification scope
These parameter checks are not independent image-codec or visual-quality verification.
Test source and cases (select a file to read it)
  • file-extra.test.js
    • image crop coordinates stay within the source and blank dimensions extend to the edge
    • file hashing accepts bounded batches and crop presets produce exact ratios

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.