GIF Crate

GIF Cropper

Cut a rectangle out of every frame. The file stays on your device.

Preview

Controls

Template

Aspect

Fill

Transparent edge

Size factors

Horizontal1.00×
Vertical1.00×

The clear border is still part of the file

A green shuttle crossing a gray card, with a clear border around the card and a black bar at the right
This loop is 560×280. Twelve frames, a tenth of a second apart. A green shuttle travels from the left of the gray card to the right. A black bar stands still near the card's right edge. The card does not fill the file. Forty pixels on the left and the right, and thirty-two on the top and the bottom, are clear. Those pixels are in the GIF. The checkerboard behind this picture is the page, so the gap is visible. It is not stored in the file. The cuts below are windows on this same file, one pixel to one pixel, with these delays.

Trim drops that border and nothing inside it

The same loop after the clear border is removed, leaving the gray card at 480 by 216
Source
560 × 280
After Trim
480 × 216
Left and right
40 px removed
Top and bottom
32 px removed

480×216, the gray card with the clear border removed. Forty pixels leave the left and the right. Thirty-two leave the top and the bottom. That is what Trim does. The shuttle, the rules, and the black bar keep the pixels they had. Nothing inside the card was scaled, and each frame is still a tenth of a second. Trim does not ask you to draw the window. It only drops the edge that is clear on every frame. A window you drag can still cover that clear edge, because the edge belongs to the file until Trim runs.

Three cuts share the left edge and lose height

A narrow left-hand crop of the card at full height, the shuttle leaving the strip
140×216, from x=40 and y=32. This is the left of the card at the card's full height, so the rules are all here and they stop at the right of the strip. The shuttle starts inside and walks out. Later frames show the empty card only. The black bar sits past x=180, so it never enters. These pixels match the full file. They were not squeezed into a taller box.
A wider, shorter crop from the same left and top, the lower rules left outside
280×144, from that same left and top. The window is wider and it stops at y=176, so the lower rules sit outside it. The shuttle is cut along the bottom where its body crosses that line. The black bar is still to the right of this cut. This is the same loop with a shorter rectangle, not a resized copy of the narrow strip.
The widest and shortest of the three cuts, a top band with only the top of the shuttle
420×72, again from x=40 and y=32. It is the widest of the three and the shortest, a top band of the card. The black bar begins to the right of x=460, so the bar is missing on every frame. Only the top of the shuttle reaches this band, and it reaches it in the same place on every frame. The three files share a left edge and a top edge. What is missing is the bottom of the picture.

The window stops at the picture

200×160, from x=320 and y=88. The right edge is x=520 and the bottom is y=248: the right and bottom of the card, not of the 560×280 file. The clear border outside the card is not in this crop. On this tool the frame cannot leave the picture, so the window cannot be dragged into space the GIF does not already contain. The black bar is inside this corner. The shuttle reaches the bar only near the end of the loop.

A crop flush with the card's right and bottom edges, the clear border left outside

A square cut from the middle of the track

A 160 pixel square from the middle of the card, the shuttle crossing it mid-loop
160×160, from x=200 and y=60. The sides match, and the window sits in the card rather than on its left edge. The shuttle crosses the square in the middle frames and is outside it at the start and at the end. The black bar stays outside. On the tool, a dragged edge snaps square when it comes within a few screen pixels of the other side. The opposite edge stays put. A locked ratio skips that snap.

One short band clips the shuttle on every frame

A short horizontal band across the card, clipping the shuttle and the black bar on every frame
480×56, from x=40 and y=112. The width is the full card. The height is shorter than the shuttle, so every frame loses the same pixels above the shuttle and below it. The black bar is cut by that same top and bottom, while the left and right of the card stay. One rectangle is applied to all twelve frames. The band does not follow the shuttle as it moves.

The fixed bar meets the shuttle only at the end

A strip at the card's right edge holding the black bar, the shuttle arriving only at the end

120×216, from x=400 and y=32. The right edge is the right edge of the card, and the height is the full card, so the black bar is in the strip on every frame. The shuttle is still on the left at the start. It enters this strip only in the last frames. The clear border to the right of the card is outside the strip. This crop keeps the bar and waits for the shuttle.

Save the GIF you already opened

  1. 01

    Open a GIF

    Drop it, pick a file, paste from the clipboard, or load a public link. Other image types are turned away. A GIF from this device stays on this device.

  2. 02

    Place one rectangle

    Drag the frame or type a width and height. That one rectangle is applied to every frame. It cannot cross the edge of the GIF. The width and height you set are the pixels you save.

  3. 03

    Download or apply

    Download runs in this browser and saves one GIF. The file name ends in -cropped. Apply leaves the result on the page when you want a second cut. Frame order and the original delays stay with the file.

Questions about cropping an animated GIF

Will the animation still play?
Yes. Every frame receives the same rectangle, in the same order, with the delays the file already had. You download one GIF, not a stack of stills.
Do I have to crop each frame myself?
No. The window is one rectangle. GIF Cropper cuts every frame to it. You do not export the frames and line them up again.
What is the difference between Trim and the rectangle?
Trim removes a border that is clear on every frame. The rectangle is the window you place, and it can include that clear border or cut into the picture. Trim does not scale the frames.
How is this different from resizing?
GIF Resizer can leave a margin around the picture or resample the window into new pixels. GIF Cropper only cuts. A file you open from this device is cropped here.