Compress a GIF While Keeping Its Frames and Timing

Remove supported comments and metadata while keeping the image frames and timing. Compare the output bytes before saving.

Animation preservedLossless image dataBatch ZIP
GIF compression illustration
Processed in your browser · No file upload

JavaScript reads the GIF blocks and removes supported metadata without re-encoding the frames.

The tool loads its interface and processing files from the site. This workflow handles the contents you select or enter in the browser.

File picker filter: image/gif, .gif. The selected file must also pass this tool’s content and decoder checks.

Files per batch
25
Input per file
20 MiB
Total input
100 MiB
Image edge
8,192 px
Animation frames
500
ZIP output
100 MiB

Limits are safeguards, not a guarantee every file below them will process. Complex files and device memory can require a smaller input.

Read the privacy policy

See how MAGODUCK tests tool outputs

1

Add GIF files

GIF structure is parsed before optimization. Image descriptors, LZW image data, Graphic Control Extensions and looping instructions are preserved.

Drop GIF files here

or choose files from your device

25 files · 20 MB each · 100 MB selected · 8,192 px logical edge · 500 frames
GIF bytes are optimized locally in this browser tab.

Batch queue

No files selected

    Before & After

    Animated GIF previews remain animated in browsers that render GIF animation.

    HOW IT WORKS

    Lossless GIF optimization, not fake quality compression

    1. Parse blocks

    The GIF header, screen descriptor, color tables, extensions, image blocks and trailer are validated.

    2. Remove safe metadata overhead

    Comments and recognized XMP/ICC metadata can be omitted without changing frame pixels or animation timing.

    3. Verify animation structure

    The optimized file is parsed again and must keep the same logical dimensions and number of image frames.

    TECHNICAL BEHAVIOR

    What this GIF compressor does — and does not do

    Lossless safe mode

    This implementation does not reduce colors, drop frames, change delays or re-encode LZW image data. It therefore cannot promise large savings for already-clean GIFs.

    Animation kept

    Graphic Control Extensions and application loop extensions such as NETSCAPE2.0 are retained. Plain Text extensions are preserved because they may be visible content.

    Privacy

    No GIF upload/compression endpoint is implemented. Parsing and byte reconstruction happen locally in this tab.

    FAQ

    GIF Compressor FAQs

    Will every GIF become smaller?

    No. A GIF without removable comments/XMP/ICC metadata can remain exactly the same size. This tool reports the actual byte difference.

    Does it preserve animation?

    Yes. Frame image data, delays and looping instructions are preserved by safe mode and frame count is re-verified.

    Does it lower image quality?

    No. This implementation does not alter palette indices or LZW frame image data.

    Technical references checked October 2, 2026. GIF89a defines Comment, Graphic Control, Application and image-data block structures; safe optimization must distinguish metadata from timing/looping data. See the GIF89a specification.

    Optimize GIFs without discarding animation

    Safe mode removes overhead and tells you when there is nothing useful to remove.

    Optimize GIF

    GIF privacy

    Selected GIF bytes stay in the current browser processing workflow.

    Using GIF Compressor

    Inspect optimized animation before production use and keep your original file.

    GIF preview