Cookies for analytics and advertising
We use cookies for analytics and advertising, both sent to Google. Refusing changes nothing you can see.Read the privacy page
Converting WebM to AVIF takes one frame of the video and encodes it in the most efficient still format in general use — the right choice when the kilobytes on a page are a number somebody is measuring. It is slower to produce than a WebP and smaller to serve, and it runs entirely in your browser at the video’s own resolution.
Up to 100 files at once. Mixed formats are fine.
They convert one after another and download together as a ZIP.
WebM to AVIF
AVIF is worth its awkwardness only when the size of an image is a number somebody is actually looking at: a largest-contentful-paint figure that will not come down, a page-weight target in a performance budget, a Lighthouse score being argued about in a pull request. If none of those apply, the WebP version of the same frame is smaller than a JPG, encodes instantly and needs no fallback — take that and move on.
Where the budget is real, AVIF is the strongest option available and the difference on a hero image or a large poster frame is not marginal. The cost is paid twice: in encoding time now, and in a fallback in your markup later. Both are manageable. Neither is free, and a page that pretended otherwise would be selling you complexity you did not need.
AVIF is not a new image codec. It is an AV1 intra frame — a single keyframe from the video codec — wrapped in the same container family as HEIC. And AV1 is one of the codecs a WebM can carry: newer browser recorders and most modern web video use it.
So when the source is an AV1 WebM, this conversion decodes a frame that AV1 encoded and hands it back to AV1 to encode again as a still. The round trip is unusually kind, because the artefacts the first pass introduced are exactly the shapes the second pass is efficient at describing. It is not lossless — the frame is fully decoded to pixels in between — but it is the closest thing to a family conversion in this bundle, and it is one reason AVIF stills from video hold up so well at small sizes.
A JPG or a WebP appears essentially at once. An AVIF takes seconds, and on a 4K frame on a modest laptop it can take rather more than a few. This is not the page being slow; it is what AV1 encoding costs.
The reason is the search. AV1 gets its efficiency from an enormous number of ways to describe each block of pixels, and the encoder tries a great many of them before choosing. That is a fine trade for a file that will be served a million times and a poor one for a file you are going to look at once. If you find yourself converting thirty frames and waiting, that is the signal to use WebP for the thumbnails and reserve AVIF for the one image at the top of the page.
The frame comes out at the video’s own pixel dimensions, unscaled, encoded at a fixed quality of 82. A 1080p recording yields a 1920 by 1080 AVIF; a 4K capture yields one four times the area and takes noticeably longer to produce.
Resize afterwards rather than here. Whatever generates your responsive sources knows the widths your layout needs, and it will do better work starting from the full frame than from a reduced one. It is also the place to decide how many sizes are worth the encoding time, which for AVIF is a real question in a way it is not for JPG.
Every current major browser decodes AVIF, but support landed years after WebP and older installations persist — particularly on devices that no longer receive updates. Serving AVIF alone is a decision to lose those visitors’ images rather than to slow them down.
The remedy is a `<picture>` element with an AVIF source, a WebP source and a JPG as the final `<img>`. Three lines, no JavaScript, and the browser picks the first one it understands. If you are already doing that for your other images, this frame slots into the same pipeline. If you are not, adding it is the prerequisite for using AVIF at all.
A still lifted out of compressed video carries whatever the video codec did to it. Bits were spent on motion, colour is stored at half resolution in each direction, and a frame taken during a scroll or a pan was never sharply encoded in the first place. AVIF preserves all of that very efficiently; it does not repair any of it.
The practical consequence is that the timestamp matters more than the format. A frame taken at a still moment and saved as JPG beats a frame taken mid-motion and saved as AVIF by a wide margin, on every measure including size — because a smeared frame is full of detail the encoder has to spend bits describing. Choosing the moment is the optimisation; choosing the codec is the rounding.
Anything that is not a web page. Email clients do not render it. Office software largely does not. Print workflows do not. Upload forms on other people’s sites frequently reject the extension outright, and a colleague sent an AVIF will more often than not reply asking what it is.
Its entire case rests on being decoded by a browser and served over a network you are paying for. For a slide, a document or a message, take the JPG; for an archive or a print job, take the TIFF. Using AVIF outside the case it was designed for produces a smaller file that nobody can open, which is not an optimisation.
AVIF encoding is expensive enough that services which offer it either charge for it, queue it or limit how many you may do. Here it runs in your browser, which is why the only ceilings are the ones printed above the drop zone — 100 files in a batch, 100 MB per file — and no daily allowance is spent behind them: the cost is your own processor, and you were the one who decided the trade was worth it.
It also means the video never leaves the machine. That is the usual privacy argument and it has a practical edge on this pair — a large recording uploaded to produce a 40 KB image is an absurd amount of network for the result, and it is the shape almost every other converter for this pair takes.
| WebM | AVIF | |
|---|---|---|
| Full name | WebM Video | AV1 Image File Format |
| File extension | .webm | .avif |
| Media type | video/webm | image/avif |
| Compression | Lossy — file size is bought with quality | Either, depending on the setting |
| First published | 2010 | 2019 |
| Published by | Alliance for Open Media | |
| Specification | — | AV1 Image File Format |
| Licensing | Open standard | Open standard |
| Standing today | Current | Current |
| Bit depth | — | 12 |
| Colour it can describe | — | RGB, YCbCr, wide gamut |
| Largest image | — | 65,536 px per side |
| Opens in a browser | Every browser | Current browsers |
| Considered instead | MP4, MKV | WebP, JXL, JPG |
Transparency survives. Both WebM and AVIF store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.
Current browsers read AVIF; older ones do not. It is the less portable of the two, so it is worth being sure the program at the other end accepts it before sending one.
AVIF is a container rather than a single format. What actually plays is the codec inside it — usually AV1 — which is why two files with the same extension can behave differently on the same device.
The usual programs do not overlap: WebM opens in VLC and FFmpeg, AVIF in GIMP, Squoosh and ImageMagick — so whoever receives the result needs something from the second list.
AVIF comes from Alliance for Open Media and dates from 2019, specified as AV1 Image File Format. GIMP, Squoosh and ImageMagick all read it.
Meaningfully, though the gap narrows on the kind of content video stills contain. AVIF is the most efficient still format in general use and is smaller than WebP at matched quality; on flat interface content the two are closer than on photographic footage, because there is less detail for the better codec to be better at. Measure both on your own frames before committing to the slower one.
Because AVIF encoding is genuinely expensive. It is AV1 intra-frame coding, and AV1 buys its efficiency with an enormous search space — the encoder is doing far more work per pixel than a JPG or WebP encoder does. For one still it is a few seconds; the trade only becomes annoying at volume.
Depends on your audience. Current versions of every major browser decode AVIF, but support arrived years after WebP and older installations are still out there. A `
No. The still is encoded at a fixed quality of 82. The only control on this page is the timestamp — which second of the video to take — because the frame extractor is built around choosing the moment rather than tuning the encoder.
No. The WebM is decoded and the frame encoded inside your browser. That also explains where the time goes: the several seconds an AVIF takes are your own processor doing the work, not a queue on somebody else’s server.
Yes, with the same caveat as any AVIF. Every browser that plays a WebM with AV1 inside it can display an AVIF, so if you are already serving AV1 video the poster is safe. If the video falls back to VP9 for older clients, those same clients may want a WebP poster.
The claims this page makes about WebM and AVIF are checkable, and these are the documents that settle them.