How to trim an animated GIF
- Drop your GIF file on the box above, or click it to choose the file — or press Load a sample to try it first.
- Check the settings below the box; the defaults suit most files.
- Press Convert. Long jobs show a progress bar and can be cancelled; you then see what was made and its real size.
- Download the .gif file.
What is kept when you trim an animated GIF
- Keep the frames you choose (first and last frame, shown with their times), then optionally change the speed, reverse the order, set one delay for every frame, or change how often it loops.
- Each frame is taken exactly as the browser shows it, so cutting into the middle of an optimised GIF never leaves broken frames.
- Delays are kept to GIF’s hundredths of a second and never below 20 ms — browsers slow faster frames down to 100 ms.
Example
Cutting the sample to frames 5–12 and doubling the speed:
Input
sample.gif — 16 frames, 160 × 120 px, 1.28 s, loops forever (11.0 KB)
Frames 5–12, twice as fast Output
8 frames, 160 × 120 px, 0.32 s, loops forever (5.9 KB)
About GIF files
A GIF holds one or more frames, each with up to 256 colours, a display time in hundredths of a second, and a rule for what happens to it when the next frame appears. It plays everywhere, which is why it survives. It opens in every browser, chat app and image viewer.
Good to know
- Browsers play frame delays of 0 or 10 ms as 100 ms, so 20 ms (50 frames per second) is the fastest a GIF really plays.
Privacy and limits
The file is read and converted by this page in your browser; there is no upload and no account. Frame count, size and memory are checked from the file’s structure before any frame is decoded, so a hostile GIF cannot exhaust the tab. A GIF may have up to 500 frames and 2,048 pixels on each side. Files up to 50 MB are accepted; a file of the wrong type or a damaged file is rejected with the reason.