Image center crop
Crop the largest area of a chosen aspect ratio (1:1, 4:3, 16:9 or a custom w:h) from the centre of an image, optionally scale it to a target width, then export PNG or JPEG.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are processed locally in your browser with Canvas and never uploaded.
Scales the crop to this width; leave it blank to keep the cropped pixel size.
Pick an image first (PNG / JPEG / WebP / GIF all work).
Result details
Pick an image and the centred crop preview shows up immediately.
What this tool does
- Turn a landscape or portrait photo into the ratio a platform asks for — 1:1 for avatars, 4:3 for product shots, 16:9 for video covers — with the crop locked to the centre so nothing has to be dragged.
- Preview a thumbnail pipeline before automating it: crop, see the real output pixel size and file size, then decide on the batch settings.
- Remove distracting background from old photos by cropping to a ratio close to the subject and scaling the result to a target width.
- Check exact dimensions before uploading: the result card reports the original size, the crop rectangle and the final output size.
Example
Input
Source 1600 × 1200, target ratio 16:9, output width left blank
Output
Crop area x=0, y=150, 1600 × 900 Output size 1600 × 900 (1,440,000 pixels)
This is the real result of the pure pixel logic: a 16:9 crop fills the width, the height is 1600 / (16/9) = 900, and the vertical offset is (1200 - 900) / 2 = 150. Cropping and encoding happen in the browser through Canvas and cannot be verified offline, but the numbers above are reproduced by the unit tests.
Frequently asked questions
Are my images uploaded?
No. The image is decoded by the browser, drawn onto a local canvas, cropped, scaled and encoded in memory. There is no upload endpoint, so it also works offline.
How is the centring offset computed when the difference is odd?
The offset is (source size − crop size) / 2 rounded down. Odd differences produce a half pixel; rounding down keeps the crop coordinates identical across browsers.
Does choosing "no crop" still change pixels?
No. With no crop the output is a pixel copy of the source. Filling in an output width adds one nearest-neighbour scale step, which is what changes pixels.
Can I use a large output width to upscale?
Yes, but it is nearest-neighbour upscaling: pixels are enlarged rather than invented, which suits pixel art. For smooth upscaling use a dedicated upscaler.
How large can the image be?
Up to 8,000,000 pixels per image (for example 4000 × 2000). Larger images are rejected with an explicit dimension error instead of freezing the tab.
Keywords:center crop1:116:9