Crop Image
Published Updated
Drag and resize the selection box to crop your image to exactly the area you want, then download the result — free, private, and processed entirely in your browser.
The crop is exact to the pixel
This tool crops by copying a rectangle of the original image into a new one. The rectangle is measured in the picture's own pixels, rounded to whole numbers, so nothing is resampled and sharp edges stay sharp. What you see in the preview is a scaled-down view, and the Selection line shows the real size of your box.
The preview is fitted into at most 640 × 420 pixels. That is why the smallest box you can draw is 32 preview pixels across, which on a 4000 × 3000 photo displayed at 560 × 420 works out to about 229 original pixels.
What the aspect presets do to a 4000 × 3000 photo
Choosing a preset refits the current box around its centre. These sizes are what you get by picking each preset from the untouched default box, which is 80% of the photo (3200 × 2400):
| Preset | Box size | Why |
|---|---|---|
| Freeform | 3200 × 2400 | No ratio is enforced. |
| 1:1 | 3000 × 3000 | Limited by the 3000 px height of the photo. |
| 16:9 | 3200 × 1800 | Width kept, height follows. |
| 4:3 | 3200 × 2400 | Same as the photo's own shape. |
| 7:9 | 2333 × 3000 | Portrait, limited by the height again. |
Cropping, step by step
Step 1
Add an image
Anything your browser can display works. A box covering the middle 80% of the picture appears.
Step 2
Drag the box and choose a shape
Move the box, pull a corner or edge, or pick Freeform, 1:1, 16:9, 4:3 or 7:9. The live Selection line shows the pixel size.
Step 3
Pick a format and crop
PNG is the default. Choose JPEG or WebP for photos. The result shows original and cropped size side by side.
Output formats
- PNG is lossless and the default. It keeps transparency in the source, and the file is large for photos.
- JPEG is quality 92 and has no transparency, so transparent areas are filled with white. Best for photographs and for keeping files small.
- WebP is quality 92 and supports transparency. Smaller than PNG for most photos.
Cropping always writes a new file
Even a tiny trim writes a new file from decoded pixels. With JPEG or WebP output that costs a little quality, since the lossy step runs again. If a photo must stay untouched, crop once and keep the original as your master copy. To change the pixel dimensions instead of the framing, use Resize Image.
What the Crop button does with the numbers
The crop box is kept in the picture's own pixels, even though the preview is drawn smaller: at most 640 wide and 420 high. When you press Crop, x, y, width and height are each rounded to a whole number, a canvas of that size is created, and the chosen region is drawn onto it at 1:1. The canvas is then saved with toBlob, as PNG with no quality setting or as JPEG or WebP at 0.92 (MDN, toBlob). A fractional box of x 120.4, y 80.6, 959.5 wide and 639.5 high came out as x 120, y 81, 960 by 640 in our test.
The smallest box you can drag is 32 preview pixels, which is 32 divided by the preview scale in picture pixels. For a 4032 x 3024 photo shown at 560 x 420 that is about 230 picture pixels.
Worked example: a 4032 x 3024 photo and a 1200 x 800 test image
The box geometry comes from the tool's own lib/cropBoxMath.ts, and the saving code was copied from the component, both run in Chromium 153 (Playwright build, not Google Chrome), version 153.0.8010.12, headless. The 1200 x 800 image is synthetic (a smooth gradient with grain), saved as PNG (1,812,977 B) and as JPEG at quality 85 (111,619 B). Each preset starts from the default box, which leaves a 10 percent margin on every side.
| Preset on 4032 x 3024 | Output size | Ratio of the output |
|---|---|---|
| Freeform (default box) | 3,226 x 2,419 | 1.33361 |
| 1:1 | 3,024 x 3,024 | 1.00000 |
| 16:9 | 3,226 x 1,814 | 1.77839 (16:9 is 1.77778) |
| 4:3 | 3,226 x 2,419 | 1.33361 (4:3 is 1.33333) |
| 7:9 | 2,352 x 3,024 | 0.77778 |
The ratios are close but not exact, because the box is rounded to whole pixels at the end. The 1:1 box is the full height of the photo, 504 pixels in from the left.
| Default box (960 x 640) saved as | From the PNG source | From the JPEG source |
|---|---|---|
| PNG | 1,478,743 B | 837,448 B |
| JPEG, quality 0.92 | 118,917 B | 75,932 B |
| WebP, quality 0.92 | 152,968 B | not run |
Cropping the 111,619 B JPEG to PNG gave 837,448 B, 7.5 times the source. Cropping it to JPEG gave 75,932 B, which is 68 percent of the source for 64 percent of the pixels. The sizes depend on the picture, and this is one synthetic image.
A phone photo that is stored sideways
We made a 400 x 300 JPEG with an orientation tag that asks viewers to turn it a quarter turn clockwise, red on the stored left half and blue on the right. In Chromium 153, the browser reported it as 300 x 400, and a full-frame crop came out 300 x 400 with red at the top and blue at the bottom. So the crop follows what the browser shows, and the box you draw is in those upright pixels.
Cropping an image, answered
Is the crop done at full resolution?
Yes. The box is stored in the pixels of the original image, and the cropped area is copied across one to one with no resizing. A 3,000 × 2,000 selection gives a 3,000 × 2,000 file.
Why is my cropped file bigger than the original?
The default output is PNG, which is lossless and often several times larger than a JPEG photo. Switch Output format to JPEG or WebP.
What quality are JPEG and WebP saved at?
Both use quality 92, and there is no slider. PNG ignores quality because it is lossless.
Can I type exact pixel dimensions?
No. You set the crop by dragging, with the Selection line showing the size. Aspect presets help you hit a ratio, and a very small box is not allowed.
Does cropping remove location and camera data?
The cropped file is drawn fresh on a canvas, so the original's embedded metadata is not written into it, including GPS tags.
What happens to an animated GIF or WebP?
You get a still image of the frame the browser draws. This tool does not crop animations.
Why is my 16:9 crop not exactly 16:9?
The box is rounded to whole pixels. On a 4032 x 3024 photo the 16:9 preset gave 3,226 x 1,814, a ratio of 1.77839 against 1.77778.
Why did cropping my JPEG to PNG make the file so large?
PNG stores the pixels without loss. In our test a 111,619 B JPEG cropped to PNG came out at 837,448 B, and as JPEG at 75,932 B.
How small can the crop box be?
The minimum is 32 pixels of the preview. For a 4032 x 3024 photo shown at 560 x 420 that is about 230 pixels of the real picture, so very small crops from large photos are not possible with the handles.
Can I crop a very wide panorama to JPEG?
Up to 65,500 pixels wide or tall, which is the largest JPEG this page saves. A wider crop box gets a message with its size and no file; choose PNG or a smaller box. WebP stops at 16,383 pixels a side and gets a similar message. The default box on an 81,900 x 10 strip is 65,520 x 8, and it got that message in Google Chrome 156, Chromium 153 and Playwright's WebKit build (not the Safari app); Firefox 155 could not read a strip that wide and showed its general cropping error.