WebP to AVIF converter
Convert WEBP images to AVIF format
Both formats were built for the web and both keep transparency, so this is one of the few conversions that costs almost nothing structurally. The question is whether it is worth doing. AVIF usually squeezes a photograph further than WebP at the same perceived quality, sometimes by a wide margin, but it encodes far more slowly and it is written here only by Chromium browsers. On flat illustration the picture reverses: a lossless WebP can already be smaller than what AV1 produces, so it pays to compare on your own images.
Key facts about WebP to AVIF converter
| What happens | The WebP is decoded by the browser and the pixels are re-compressed as an AV1 intra frame inside a HEIF container. |
|---|---|
| Encoder availability | Chromium browsers write real AVIF. Firefox and Safari decode it but cannot encode, so the canvas hands back PNG bytes with an .avif name. |
| Alpha | Carried across intact - AVIF stores transparency in a separate plane, so cut-outs and soft edges are preserved. |
| Generation loss | A lossy WebP re-encoded as AVIF is a second lossy pass; a lossless WebP source gives the encoder clean input and a better result. |
| Typical saving | Photographic content commonly drops another 20-40 percent below the WebP at quality 90; flat graphics may not shrink at all. |
| Encode time | Seconds per image against milliseconds for WebP - AV1's search is where the extra compression comes from. |
| Animation | An animated WebP loses its timeline; the canvas supplies one frame and the output is a still image. |
| Metadata | Nothing is transferred. EXIF or XMP stored in the WebP stops at the canvas, and the AVIF contains pixels only. |
| Decode support | Chrome 85, Firefox 93, Safari 16.4, macOS Ventura Preview and Windows 11 with the AV1 extension. |
What happens to your file
Both codecs involved are already inside your browser: its WebP decoder produces the pixels and its AV1 encoder consumes them through a canvas.toBlob call with the image/avif type. Nothing is fetched to make this work and nothing is sent while it runs, which is also why the tab becomes busy during a large batch - your processor is doing the compression that a conversion service would otherwise bill for.
About this tool
- 1
Open the page in Chrome or Edge
A Chromium browser is required for genuine AVIF output; elsewhere the download will quietly contain PNG data.
- 2
Add the WebP files
Up to twenty per run. Photographic sources benefit most, so start there if you are testing the gain.
- 3
Choose a quality
Default 90 is a safe comparison point. AVIF holds detail well below that, so 75 is worth trying for delivery assets.
- 4
Convert and compare the sizes
The result shows the before and after bytes. If the saving is negligible, the WebP was already efficient for that content.
| Input and output | Takes .webp only (image/webp) and returns .avif with the image/avif type; any other extension is refused before decoding. |
|---|---|
| Conversion path | WEBP to AVIF runs in three steps: an <img> element decodes the WebP and passes frame one to the canvas; the pixels land on a 2D canvas in this tab; then canvas.toBlob with the image/avif type returns the finished file. |
| Browser support | The WebP side needs Chrome 32, Firefox 65, Edge 18 or Safari 14 to decode, while writing the AVIF needs a Chromium browser, since Firefox and Safari return PNG bytes under the .avif name. |
| Controls for this pair | A 30 to 100 quality slider (steps of five, default 90) drives the AVIF encode, max-dimension presets from 3840 down to 200 px resize the WEBP first, and the strip-metadata toggle is moot on this pair. |
| Batch, caps and naming | Twenty WEBP files per run at 500 MB each; one result downloads as a single AVIF, several as converted-avif-files.zip, zipped by JSZip 3.10 in page memory. |
| Device ceiling | The canvas caps it: past roughly 16,384 px a side Chromium refuses the bitmap and iPhone Safari gives up sooner, so an oversized WEBP fails before any AVIF bytes exist. |
- Run one representative image through first: whether AVIF beats WebP depends heavily on the picture, and a whole batch is a slow way to find out.
- Lossless WebP graphics often stay smaller as WebP - test flat artwork rather than assuming the newer format wins.
- Offer AVIF first and WebP second in a picture element; the browser picks what it can decode and you keep full coverage.
- Downscale before encoding, since AV1 cost scales with pixel count and an oversized source wastes most of the encode time.
- Squeezing the last bandwidth out of a site whose images are already served as WebP.
- Building an AVIF variant of an asset set for a picture element with a WebP fallback.
- Measuring the real-world saving AVIF would bring before changing a build pipeline.
Related tools
View allNeed the opposite? Try AVIF to WEBP
Works well with this4
Other AVIF tools12
Updated