March 23, 20264 min read

How to Crop a GIF: 3 Free Methods

Three ways to crop a GIF and remove unwanted borders or parts of the frame — browser-based, desktop, and command-line approaches compared.

gifcroptutorialhow-to

Why crop a GIF?

Cropping removes unwanted parts of the frame — black bars, watermarks, empty space, or distracting backgrounds. It also reduces the pixel count (and therefore file size) proportionally to how much you trim.

Method 1: GifMash Crop GIF (browser, free)

GifMash's Crop GIF tool crops a GIF using gifsicle's --crop flag entirely in your browser — no upload, no software install.

  1. Open GifMash Crop GIF
  2. Upload your GIF
  3. Enter the crop coordinates: X and Y (top-left corner of the area to keep), then width and height
  4. Click "Crop GIF" and download

The coordinate system starts at (0, 0) in the top-left. If your GIF is 640 × 480 and you want to remove 50 px from each side, set X=50, Y=50, Width=540, Height=380.

Method 2: EZGIF (browser, free)

EZGIF offers a visual crop with a drag-to-select interface, which is easier if you don't know the exact pixel coordinates. Upload your GIF, use the crop box, and download. The limitation is that files are uploaded to their servers.

Method 3: FFmpeg (command line, free)

FFmpeg can crop GIFs (by converting through a video pipeline) with precise control:

ffmpeg -i input.gif -vf "crop=540:380:50:50" output.gif

The crop filter arguments are width:height:x:y. FFmpeg re-encodes the GIF, which may change color palette and quality — use gifsicle for lossless crop if quality is critical.

Cropping vs resizing: what's the difference?

Crop removes pixels from the edges — the content doesn't scale, just less of it is visible. Resize scales the entire image to a different size. Both reduce file size, but for different reasons: crop removes pixels, resize reduces the per-pixel count.

For best results on oversized GIFs: crop first (remove unwanted areas), then resize to the target width, then compress.

Crop GIF online

GifMash's Crop GIF tool lets you crop any GIF by pixel coordinates directly in your browser.

Try it free