Crop image

Crop JPG, PNG, WebP and GIF to a free selection or preset ratio right in your browser, pixel-exact, nothing uploaded.

How to crop an image

  1. Drop or pick a JPG, PNG, WebP or GIF file.
  2. Drag the selection or pick a ratio preset, then fine-tune the exact width, height and position with the number fields.
  3. Crop and save, all on your device.

Why crop images?

Cropping reframes a shot, drops dead space and hits the exact aspect ratio a layout or platform needs. OptImg crops in real image pixels (the on-screen selection maps precisely to the output), entirely on your device, with no upload and files as large as it can handle.

Frequently asked questions

Are my images uploaded to a server?
It runs at native speed entirely in your browser: nothing is uploaded, your image never leaves your device, and there are no size or file-count limits.
Can I crop to an exact size or ratio?
Yes. Pick a preset ratio (1:1, 4:3, 16:9 and more) or type the exact width, height and position in pixels. The visual selection and the number fields stay in sync.
Does cropping keep animation?
Yes. Every frame of an animated GIF is cropped to the same rectangle, and delay and loop are preserved.
Which ratio should I crop to for social media?
Square (1:1) is the safe default for profile pictures and still works everywhere in a feed. Portrait 4:5 takes up the most vertical space in a phone feed without being cut off, which is why it is the common choice for posts. Full-screen vertical formats such as stories and short video covers are 9:16. Link previews and blog headers are usually 1.91:1 or a plain 16:9. When in doubt, crop to the tallest ratio you want to support and let the platform crop inwards from there.
Does cropping make the file smaller?
Yes, roughly in proportion to the pixels you remove, since there is simply less image to store. Cropping away half the area typically lands somewhere near half the file size, though the exact figure depends on how detailed the part you kept is: a busy area of foliage costs more per pixel than an expanse of plain sky.
Can I crop without losing any quality?
The pixels you keep are taken from the original, so nothing is resampled or scaled. What follows is a re-encode, and for a lossy format like JPG that costs a small amount of quality, the same as any other save. Crop to PNG or WebP lossless if you need the kept region to be bit-for-bit identical, for example when the crop is one step in a longer editing process.
How do I crop to an exact pixel size?
Type the numbers instead of dragging. The width, height, X and Y fields accept exact values and stay in sync with the on-screen selection, so you can position a 400×400 region precisely and see what you are getting. This is the reliable way to hit a fixed requirement such as a 512×512 avatar or a banner slot with a specified size.