AVIF to GIF Crop Converter

Load an AVIF image, drag the crop handles to define exactly the area you need, preview the result, then download a GIF. Everything runs in your browser — your image never leaves your device.

🖼️

Drop an AVIF here

or Browse Files  ·  AVIF supported

What This Tool Does

This tool loads an AVIF image directly in your browser, presents an interactive crop overlay with draggable handles, and converts the selected area to a GIF file. No server upload is required. The full workflow — loading, cropping, encoding — runs entirely in client-side JavaScript using the HTML5 Canvas API. AVIF files use AV1 compression that requires full pixel decoding before the canvas can draw them; this tool uses img.decode() to guarantee the decode is complete before drawing, preventing the silent blank-canvas problem that affects standard Image element loading with AVIF. The output is a GIF using an 8-bit 256-color palette with Floyd-Steinberg dithering, the universally supported format expected by legacy web workflows, simple web graphics, icons, and any context where broad compatibility is the priority.

Who This Is For

  • Web designers who need to deliver a specific cropped region of an AVIF as a GIF for legacy site compatibility
  • Developers converting next-gen AVIF assets to GIF for email clients or legacy CMS platforms that lack AVIF support
  • Anyone who needs to extract a portion of an AVIF image and produce a widely-compatible GIF without installing software
  • Archivists and content managers who need GIF output from AVIF source files for maximum compatibility

AVIF vs GIF: Format Comparison

PropertyAVIFGIF
CompressionLossy or lossless (AV1)Lossless (LZW)
Color depthUp to 12-bit per channel (millions of colors)8-bit palette (max 256 colors)
Animation supportYes (AVIF sequence)Yes (multi-frame)
TransparencyYes (full alpha channel)Yes (1-bit, binary transparency)
File size for photosVery small — best compressionLarger — palette quantization overhead
Browser supportModern browsers (Chrome 85+, Firefox 93+, Safari 16+)Universal — every browser, email client, device
Best forModern web delivery, high-quality imagesLegacy compatibility, simple graphics, icons

Frequently Asked Questions

Why does this tool use img.decode() instead of the standard Image element?
AVIF uses AV1 video codec compression that requires asynchronous GPU-accelerated decoding. When you load an AVIF with new Image() and a data URL, the browser fires the onload event before AV1 pixel decoding completes. Calling ctx.drawImage() at that point silently draws a blank canvas — no error, no warning, just empty output. img.decode() is a Promise that resolves only after the full pixel decode is ready, so the canvas always receives real pixel data.
Why does the GIF look different from my AVIF?
GIF is limited to 256 colors per frame. AVIF images may contain millions of colors, so the conversion uses color palette quantization and Floyd-Steinberg dithering to approximate the original. This results in some visible color banding, especially in smooth gradients. For logos, flat-color illustrations, and simple web graphics, GIF output looks excellent.
How precise is the crop tool?
The crop operates at native pixel accuracy on the original AVIF dimensions. The canvas is scaled to fit your screen for display, but the actual crop coordinates are mapped back to the full-resolution image before the GIF is generated. You get a GIF at the exact pixel dimensions shown in the crop dimensions badge.
Can I move the crop selection after setting it?
Yes — click and drag inside the crop rectangle (away from the handles) to reposition it anywhere within the image. Handles resize; the interior pans.
What dithering method is used?
The GIF encoder uses Floyd-Steinberg dithering, which distributes quantization error to neighboring pixels for a smoother visual appearance. This produces the best-looking GIF output from photographic AVIF source material.
Is there a file size limit?
There is no server-imposed limit because no upload occurs. The practical limit is your browser's available RAM. Most modern desktops handle AVIF files comfortably. Very large files on memory-constrained mobile devices may be slower to process.