The short answer
The fastest way is the online image cropper: open the picture, drag the box over the part to keep, and download the result. For work you do often, every operating system and office program also has a crop tool. Menu names change between versions, so look for Crop or Edit if something has moved.
| Where | How |
|---|---|
| Online | Image cropper |
| Windows | Photos: Edit image, Crop. Paint: Select, then Crop |
| Mac | Preview: Tools, Rectangular Selection, then Tools, Crop |
| iPhone and iPad | Photos: Edit, Crop |
| Android | Google Photos: Edit, Crop |
| Word, PowerPoint | Select the picture, Picture Format, Crop |
| Command line | ImageMagick, ffmpeg or jpegtran |
Windows
Open the picture in the Photos app, choose Edit image, then Crop. Drag the corners or pick an aspect ratio, then save a copy. In Paint, use Select to draw a rectangle around the part to keep, then choose Crop. Save with a new name so that the original stays untouched.
Mac
Open the picture in Preview. Choose Tools, then Rectangular Selection, drag over the part to keep, and choose Tools, then Crop (Command+K). Use File, Export to save a copy.
iPhone, iPad and Android
Open the photo, tap Edit, then the crop tool. Drag the corners, or choose an aspect ratio such as square or 16:9, and save. On the iPhone the edit can be reverted later. Android phones use Google Photos or the gallery app in much the same way.
Word and PowerPoint
Select the picture, choose Picture Format, then Crop. The cropped part is hidden, not deleted, so you can crop again later. To remove the hidden parts and make the file smaller, use Compress Pictures and keep Delete cropped areas of pictures switched on.
Command line and code
# ImageMagick: width x height + left + top
magick input.jpg -crop 800x600+100+50 +repage output.jpg
# ffmpeg: width:height:left:top
ffmpeg -i input.jpg -vf "crop=800:600:100:50" output.jpg
# Lossless JPEG crop (offsets snap to the JPEG block grid)
jpegtran -crop 800x600+96+48 -copy all input.jpg > output.jpg
# Python with Pillow: left, upper, right, lower
from PIL import Image
Image.open("input.jpg").crop((100, 50, 900, 650)).save("output.jpg")
// JavaScript canvas: source x, y, width, height, then the destination
ctx.drawImage(img, 100, 50, 800, 600, 0, 0, 800, 600);
Aspect ratio maths
To crop to a ratio, keep one side and work out the other. For a ratio of W:H, the height of the box is its width x H / W, and its width is its height x W / H.
| Ratio | Width to height | Example |
|---|---|---|
| 1:1 | height = width | 1000 x 1000 |
| 4:3 | height = width x 0.75 | 1200 x 900 |
| 3:2 | height = width x 0.667 | 1500 x 1000 |
| 16:9 | height = width x 0.5625 | 1920 x 1080 |
| 4:5 | height = width x 1.25 | 1080 x 1350 |
| 9:16 | height = width x 1.778 | 1080 x 1920 |
Ready-made pages: 1:1, 4:3, 16:9 and Instagram.
Crop without losing quality
- Crop from the original file, not from a copy that was already cropped or compressed.
- PNG is lossless, so a PNG crop keeps every kept pixel exactly.
- JPG and WebP are saved again, so use a quality of 90 or higher, and avoid cropping the same file many times.
- Do not enlarge a small crop. Making it bigger only blurs it.
Crop, resize and compress
Crop cuts away parts of the picture. Resize changes the pixel size of the whole picture. Compress lowers the file size without changing the pixels you see. A common order is to crop first, then resize, then compress.
Composition tips
The thirds lines on the crop box divide the picture into nine parts. Place the subject on a line or an intersection instead of the centre, leave room in the direction the subject faces, and cut away distractions near the edges.
Related tools
Crop with the image cropper, or open a ready-made page for JPG, PNG, WebP, squares and passport photos. Convert with JPG to WebP and read the JPG vs WebP guide.
Crop your image now. Drag the box, choose a ratio or exact pixels, and download. Free, in your browser.