WebP vs AVIF: technical differences
To convert WebP to AVIF, drop your WebP file into the converter above and download the AVIF: a modern format, usually smaller than JPG and WebP at the same quality, that supports transparency. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
WebP and AVIF both descend from video codecs — VP8 and AV1 respectively — but AV1 is a decade newer, with larger and more flexible blocks, more prediction modes and better filtering. Moving a lossy WebP to AVIF is a second lossy encode, so the gain is real but smaller than going from JPG: commonly a further 15–30% saving at similar visual quality, sometimes less for images that WebP already compressed hard.
Both formats support alpha, so transparent WebPs stay transparent. Both can be animated, but Pixohub converts a still: an animated WebP becomes a single-frame AVIF. AVIF's 10/12-bit and HDR capabilities go unused, since the source WebP is 8-bit and the canvas is 8-bit.
| WebP (WebP) | AVIF (AV1 Image File Format) | |
|---|---|---|
| Compression | Lossy (VP8 intra-frame) or lossless (VP8L) | Lossy or lossless (AV1 intra-frame in a HEIF container) |
| Colour depth | 8 bits per channel, RGB(A); lossy mode uses 4:2:0 chroma | 8, 10 or 12 bits per channel; HDR and wide gamut capable |
| Transparency | Alpha in both lossy and lossless modes | Full alpha channel |
| Animation | Yes | Yes (image sequences) |
| Metadata | EXIF, XMP and ICC chunks | EXIF, XMP, ICC / CICP colour signalling |
| Typical file size | Roughly 25–35% smaller than JPG/PNG at similar quality | Usually the smallest — often half a JPG at similar quality |
| Support | All modern browsers; most current editors and OSes | Chrome, Edge, Firefox and Safari 16+; patchy in older desktop software |
When to convert WebP to AVIF
Squeezing a site that already uses WebP
Developers who moved to WebP years ago and now want further savings on their heaviest images can test AVIF on a handful of hero images. If the AVIF isn't at least noticeably smaller at the same look, keep the WebP — AVIF also decodes a little more slowly on low-end phones.
Transparent illustrations for a performance budget
Large transparent illustrations that are still hundreds of kilobytes as WebP can come down further as AVIF, which handles smooth gradients and alpha particularly well.
Testing AVIF before changing a build pipeline
Before switching an image CDN or build step to AVIF, it's useful to convert a few real WebP assets by hand and compare quality and size side by side. Ideally start from the original PNG or JPG masters rather than from the WebP, to avoid a double lossy generation.
What converting WebP to AVIF keeps and loses
What you keep
- Transparency (alpha channel).
- Pixel dimensions.
- Overall appearance at sensible quality settings.
What you lose
- Some detail from a second lossy encode.
- Animation — only the first frame is converted.
- EXIF, XMP and ICC metadata.
- A little compatibility: WebP is accepted by more software and upload forms than AVIF.
Our test: WebP to AVIF on two real files
For the photo the gain was small: 312 KB became 298 KB, under 5% smaller, while fidelity stayed high (44.32 dB, SSIM 0.992). Our WebP was already compressed efficiently, and at 85% libavif spent its bytes preserving what WebP had produced rather than shrinking it. The transparent graphic did better, falling from 43 KB to 32 KB with its alpha intact.
This was the slowest conversion in our PNG, JPG and WebP tests: 12.2 seconds for the photo and 3.5 for the graphic, because Chromium has no AVIF encoder and Pixohub runs libavif in WebAssembly.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | WebP in | AVIF out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 312 KB | 298 KB (−5%) | SSIM 0.992 · 44.3 dB | None in source | Removed | 12.2 s |
| Graphic, 800 × 600, transparent | 43 KB | 32 KB (−27%) | SSIM 0.998 · 48.5 dB | Kept | None in source | 3.5 s |
Last updated
Apps and sites that work with WebP and AVIF
Who can view the AVIF
Chrome 85+, Firefox 93+ and Edge 121+ display AVIF, as does current Safari. That is close to the WebP audience, but not identical: Edge before 121 shows WebP and not AVIF, which matters for managed corporate desktops that update slowly. Keep a WebP fallback in a picture element if your analytics show such visitors.
Image CDNs and build tools
Image CDNs and frameworks that negotiate formats can produce AVIF from your masters on request. If your pipeline already outputs WebP, switching it to AVIF at the source is better than converting finished WebPs, which adds a second lossy generation to every image.
Encoders outside the browser
On the command line, one route is to decode with dwebp to PNG and then encode with libavif's avifenc, which takes PNG input. GIMP 2.10.22 and later can open the WebP and export AVIF in one go. Either way the result is a second lossy generation, so start from a master where one exists.
Common WebP to AVIF problems and fixes
The AVIF is hardly smaller than the WebP
That is what our photo test showed at 85%: under 5% saved. AVIF's savings come at lower settings, where it softens instead of blocking. Try 60–70% and compare at 100% zoom. If the result still isn't clearly smaller, keep the WebP; converting a lossy file for a few kilobytes isn't worth the extra generation.
Ten seconds or more with no result
AV1 encoding is heavy, and in Chrome, Firefox and Edge it runs as single-threaded WebAssembly: our 1600 × 1200 photo took 12 seconds on an M2 Mac. Slower machines take longer. Keep the tab open and in front; for large batches, an encoder in your build pipeline is the faster route.
The animation stopped
Both WebP and AVIF can be animated, but Pixohub converts the first frame only, so an animated sticker or banner becomes a still AVIF. For animated content, keep the WebP or encode a video; for a still, check that the first frame is the one you want before converting. The AVIF shows no sign that frames were dropped.
Tips for better WebP to AVIF results
- AVIF encoding takes several seconds outside Safari, because Chrome, Firefox and Edge use a bundled WebAssembly encoder. If the result is not smaller than the WebP, keep the WebP.
- Where possible convert from the original master (PNG to AVIF or JPG to AVIF) instead of from a WebP copy.
How this converter works
Pixohub decodes your WebP and encodes the AVIF entirely inside your browser. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.