GIF Ready

GIF Background Remover

Remove the background from an animated GIF and get a transparent GIF. Key out a solid background color, or switch to AI cutout to separate a person or pet from a busy photo background. Every frame is processed on your device, with nothing uploaded.

Your GIF is processed on your device and never uploaded.

Files over 25 MB and batch ZIPs: free preview, download with Pro.

How it works

  1. 1Drop a GIF, or paste one with Ctrl+V. The background color is detected from the edges.
  2. 2Click the background to pick its color, or choose AI cutout and download the model once.
  3. 3Remove the background, check the preview on the checkerboard and download.

How AI cutout works

AI cutout downloads nothing until you click Download model. The model, MODNet, predicts how much of each pixel belongs to the subject, and the edge threshold decides where the cut falls, since a GIF pixel is either solid or clear. Each frame is softened by one pixel before the model sees it, because the dithering speckle in GIF backgrounds otherwise reads as part of the subject. Frames are scaled to fit 480 px and a GIF can have up to 150 frames. It runs on the CPU at about a second per frame, and the page shows an estimate before you start. MODNet was trained mostly on people, so portraits and pets come out cleanest; thin objects and text are a job for the color key.

How the color match works

The tool measures how far each pixel is from the background color, using red, green and blue values. Tolerance sets how far a pixel may be and still be removed, as a share of the distance between black and white. At 0% only the exact color goes. Flat artwork needs a low value. A background with noise, dithering or compression speckle holds many near-matching shades and needs more, up to the 60% maximum. The detected color is the middle of a coarse color bucket, so it can be a few shades off the real one. The default 15% absorbs that. Clicking the background instead reads the exact color of the pixel you click. The color is always read from the first frame, so click a spot that is background there.

What Background only needs

In this mode the tool starts at the edge pixels that match the color, then spreads inward through matching pixels that touch side to side or top to bottom, one frame at a time. Two things follow. If no edge pixel matches, such as when a border is drawn around the picture, nothing is removed, so crop the border off first with Crop GIF. And a patch of background walled in by the subject, like the middle of a ring, is never reached and stays. Every matching pixel mode removes those patches too, but it also removes the same color anywhere inside the subject.

Where it works and where it does not

Check the result

Each frame is cleared on its own, and GIF transparency is on or off per pixel, so there is no soft edge. Look at the result on the checkerboard and think about the page it will sit on. If one frame still shows background, use GIF to PNG Frames to inspect the frames one by one. A background that changes shade slightly between frames is a common cause, and a slightly higher tolerance usually fixes it.

FAQ

More GIF tools