ToolsArena24

Crop Image

Maintained by the ToolsArena24 team. Methodology and test scope

Quick answer: Crop a rectangular area from an image using pixel coordinates. Enter the distance from the left and top edges, then choose the width and height of the area that should remain in the downloaded PNG.

About this crop image

Crop a rectangular area from an image using pixel coordinates. Enter the distance from the left and top edges, then choose the width and height of the area that should remain in the downloaded PNG.

The upper-left corner of the source is coordinate zero, zero. The canvas copies only the chosen rectangle into an output with the crop dimensions. No rescaling is performed, so the retained pixels keep their original coordinate scale.

The entire rectangle must fit within the decoded image. Negative offsets and fractional dimensions are rejected. This coordinate crop has no drag handles or automatic subject detection; inspect the preview and adjust numbers to refine the composition.

Using Crop Image starts with the Source image and Left offset and Top offset and Crop width and Crop height controls. On an 800 by 600 image, left 100, top 50, width 300 and height 200 extract a 300 by 200 rectangle. Select Create image to update the result below the controls. Read the output together with the crop image limitations described here before using it in a document, project or decision. Change one input at a time when comparing alternatives so that you can identify which change affected the result.

Which controls should I check first?

The Crop Image form labels its controls as Source image; Left offset; Top offset; Crop width; Crop height; Result. Use those labels to keep the source and settings separate. A sample argument that selects a mode is not additional source text. Choose the setting matching your intended operation before copying a result, and change it explicitly when comparing another mode. The labels describe what this form accepts; the worked examples below demonstrate only the stated supplied values.

How should I interpret this specific operation?

Coordinates start at the source's upper-left corner. The selected width and height define the retained rectangle, not a resizing scale. A crop of 300 by 200 pixels keeps that many source pixels when its origin lies within the valid bounds. Check the chosen origin and the far edge together. A valid-looking width alone cannot tell you that the rectangle stays inside the source image.

Worked helper values

These values come from the reproducible calculation examples supplied with this tool. Each row identifies the complete supplied arguments and the returned value. A visible ↵ denotes a line break and ⇥ denotes a tab in text examples. Settings appear alongside source data so that a different mode is not mistaken for an identical input. These are helper calculations, not observations of a live device, fetched target, image decoder, browser preview or downloaded file. Use the stated method above to relate the returned fields to the actual operation.

Supplied valuesCalculated return value
800; 600; 100; 50; 300; 200{"x": 100, "y": 50, "width": 300, "height": 200}

What actually happens to the picture?

The file is decoded to a raster pixel buffer before a new file is encoded. A filename extension does not perform either step. The preview represents decoded pixels; the download's bytes determine whether another application can open it. Keep the original file until the receiving application accepts the converted copy. An output can have the correct extension and still be unsuitable for an older editor because that editor lacks the required codec. Where the browser cannot encode the requested type, this workflow reports the limitation instead of handing you a renamed PNG.

How should I compare file size and detail?

Compare output dimensions first, then file size, then the appearance at one hundred percent zoom. A smaller download can reflect lossy compression or a smaller color palette rather than improved efficiency with identical detail. Look at text edges, smooth gradients, hair, foliage and other fine textures. Encoding an already lossy source again can add artifacts; a lossless destination prevents another lossy save at this step but cannot restore details previously removed. Byte size by itself is not a quality score, and a converted file can be larger than its source without anything being broken.

How do transparent edges behave?

Alpha-capable destinations can retain decoded transparent pixels, while formats without alpha require a background. Inspect semitransparent edges as well as fully transparent areas, since a soft shadow can change visibly after flattening. A white background suits some documents but can make a dark-site logo appear inside a white rectangle. Choose the background deliberately when the destination uses it. Palette formats may reduce transparency to an on-or-off decision rather than retaining every opacity level. Keep an alpha-capable source if you expect to place the image over several different backgrounds later.

Why can a small compressed file need substantial memory?

A raster buffer stores four channel bytes per pixel before overhead. An 800 by 400 picture contains 320000 pixels, so one RGBA buffer alone uses 1280000 bytes. Decoding and previewing may require additional buffers at the same time. Compressed disk size therefore does not predict memory use. The format-pair converters cap individual files at 40 MiB and decoded images at 24 megapixels. Other image editors use their stated dimension and pixel limits. Work on a smaller copy if the browser runs out of memory; selecting many images does not remove the per-file and per-image limits. A successful small-file example cannot prove that a very large source will decode.

How do I use crop image?

On an 800 by 600 image, left 100, top 50, width 300 and height 200 extract a 300 by 200 rectangle.

What does crop image support?

The upper-left corner of the source is coordinate zero, zero. The canvas copies only the chosen rectangle into an output with the crop dimensions. No rescaling is performed, so the retained pixels keep their original coordinate scale.

What are the limits of crop image?

The entire rectangle must fit within the decoded image. Negative offsets and fractional dimensions are rejected. This coordinate crop has no drag handles or automatic subject detection; inspect the preview and adjust numbers to refine the composition.