Why convert AVIFS to WEBP?
Converting .avifs to .webp trades AVIF's cutting-edge but less-supported animation for WebP, which is smaller than GIF and plays in nearly every current browser while still keeping transparency.
How to convert AVIFS to WEBP
FFmpeg OPEN-SOURCE
Run ffmpeg -i in.avifs -c:v libwebp_anim -lossless 0 -q:v 75 -loop 0 out.webp to produce a looping animated WebP.
About these formats
An .avifs file is an animated image built from a sequence of AVIF frames, wrapped in the same ISOBMFF container that MP4 and HEIF use. The Alliance for Open Media created it as the animated…
Open .AVIFS details →A WebP file is a raster image format made by Google that stores photos and graphics at smaller file sizes than JPEG or PNG. Any web browser opens it instantly - drag the file onto a tab. On…
Open .WEBP details →Quality & what to watch
- This is a lossy-to-lossy re-encode, so a small amount of AVIF detail is lost unless you force
-lossless 1. - AVIF generally compresses better than WebP, so the WebP may be slightly larger at matching quality.
- FFmpeg must be built with both libavif (to decode) and libwebp (to encode) support.
Frequently asked questions
Does WebP keep the transparency?
Will the WebP be smaller than the AVIF?
How do I make it loop forever?
-loop 0 in FFmpeg, which sets infinite looping for the animated WebP.Can I convert losslessly?
-lossless 1 with libwebp_anim, but the output file will be considerably larger.