AVIF Converter

Encodes PNG, JPEG, WebP or SVG images to AVIF. At the lowest quality setting, a full-page screenshot came out 26 percent smaller than the WebP converter's default, but grainy images can come out larger, so compare the two. Browsers cannot write AVIF, so a lossless copy goes to our own encoder, which never stores it. Five images per batch.

Last updated

Target Format
avif
80%
Up to 5 images per batch

How to convert images to AVIF

01

Load up to five images

The browser decodes each one and prepares a lossless PNG intermediate, which is what gets sent to the encoder. Sources can be PNG, JPEG or WebP.

Tip: Start from the highest quality original you have. Encoding AVIF from an already-compressed JPEG preserves that JPEG's artefacts.
02

Pick a quality target

AVIF holds up at settings that would visibly damage a JPEG, so start lower than you would for WebP. The slider goes down to 60, and on a screenshot of this site that setting came out a quarter smaller than WebP at its default.

Tip: At the default of 80 the AVIF keeps more detail than the WebP does, and the file is often no smaller. If size is why you came, use 60.
03

Encode and collect the ZIP

Requests are queued rather than fired all at once. If the encoder is busy the page pauses, shows a countdown and resumes on its own.

Tip: Encoding is genuinely slower than WebP. A large image can take several seconds, and that is the codec working, not a stall.

What this AVIF converter does

Smallest at the low end

At 60, the lowest setting here, AVIF came out 26 percent below WebP on a full-page screenshot and 31 percent below on a flat illustration. On an image covered in fine grain it was larger at every setting, so compare before you commit.

Graceful at low bitrates

Where JPEG breaks into visible blocks and WebP smears into a waxy texture, AVIF holds edges and fine detail together. It fails softly, which matters when you are optimising aggressively.

Encoder settings stated plainly

The encode runs at effort 4 of 9 with 4:2:0 chroma, the trade most image CDNs make: nearly all of the size win of the slow settings in a fraction of the time. Output is 8-bit, because the image reaches the encoder from a browser canvas.

Server-side encode, plainly stated

Unlike the WebP and PNG tools, AVIF encoding runs on this application's server because AV1 is too heavy for a browser tab. Images are processed in memory for the length of the request and never stored.

Queued and rate limited

Requests go through a client-side queue that respects the encoder's limits. If it returns a rate limit response the batch pauses, counts down and retries automatically instead of failing the whole run.

Validated on both ends

Files are checked by magic bytes in the browser and checked again on arrival at the encoder, which accepts only PNG. Anything else is refused before it reaches the codec.

Frequently Asked Questions

Does my image get uploaded for AVIF?+
Yes, and it is the one place in this application where that happens. AV1 encoding is far too demanding to run in a browser tab, so the browser sends a PNG intermediate to this site's encoder and receives the AVIF back.

The image lives in memory for the duration of the request. It is not written to disk, not logged and not retained. Every other tool here, including background removal, runs entirely on your device.

Which browsers can display AVIF?+
Chrome and Edge from version 85, Firefox from 93, and Safari from 16.4 which shipped in March 2023. That covers the overwhelming majority of live traffic, but it is younger support than WebP, so a fallback source is still worth having.
Why does encoding take so long?+
AV1 searches a very large space of block partitionings and prediction modes to find the smallest encoding. That search is where the size advantage comes from, and it cannot be had cheaply. The encoder here runs at a middling effort setting to keep response times reasonable.
Is AVIF always the right choice?+
No. For small interface assets the difference between AVIF and WebP is often a few hundred bytes, which is not worth the extra decode cost on the client or the narrower browser support. Images full of grain or sensor noise can come out larger as AVIF than as WebP. AVIF earns its keep on large images with smooth areas, at a low quality setting.
Why is my AVIF bigger than the WebP?+
Because the same slider number does not mean the same thing to both encoders. At 80 this AVIF encoder keeps more detail than WebP does, and grain or noise is detail it works hard to preserve. Set the slider to 60 and convert again; if the AVIF is still larger, that image is better served as WebP.
What does the countdown mean?+
The encoder is rate limited. When the limit is reached the page stops sending requests, shows how long until it can resume, and continues automatically. You can also retry immediately with the button if you think the limit has cleared.
Can I encode more than five at once?+
No, the batch limit is five here as everywhere else. With AVIF the constraint is as much about the encoder queue as about browser memory, since each image occupies the encoder for a noticeable stretch of time.

Format Comparison

Feature SpecificationAVIF encodingAlternative
Size against WebP at 80, measured here26% smaller at 60 on a screenshot; larger on grainy imagesBaseline
Encoding speedSeconds per imageNear instant
Bit depth8, 10 or 12 bit8 bit
Browser support sinceSafari 16.4, March 2023Safari 14, September 2020
Where it runsThis site's encoderEntirely in your browser

Technical Overview & Specifications

Deep dive into AVIF encoding architecture and processing.

Show Details

Platform Overview

AVIF is what you reach for when WebP is not small enough. It is the still-image profile of AV1, the video codec that Netflix, YouTube and most of the streaming industry moved to, and it inherits a decade of compression research that JPEG and WebP predate. Its strength shows at the low end: where JPEG has collapsed into blocks and WebP has gone soft and waxy, AVIF is still producing something a person would accept. The same number on the quality slider is not the same file size, though. This encoder keeps more detail at 80 than the WebP converter does at 80, so at the default the two often come out level, and on a picture full of fine grain AVIF can be the larger of the two. It also handles things the older formats cannot: ten and twelve bit colour depth, wide gamut, and HDR.

Measured through this page, against the WebP converter at its default of 80. A full-page screenshot of this site came out at 159 KB as WebP and 159 KB as AVIF at 80, then 118 KB as AVIF at 60, a quarter smaller. A flat illustration went from 5.2 KB as WebP to 4.5 KB as AVIF at 80 and 3.6 KB at 60. An image covered in fine grain went the other way: 75 KB as WebP, 171 KB as AVIF at 80 and still 139 KB at 60, because grain is exactly the kind of detail AVIF works hardest to keep. The practical rule is to set the slider to 60, convert, and keep whichever file is smaller.

The catch is encoding cost. AV1 gets its results by searching an enormous space of possible encodings, and that search is slow and memory-hungry in a way that does not fit comfortably in a browser tab. So this page works differently from the others: the browser prepares a clean PNG of your image, sends it to this site's own encoder, and receives the AVIF back. Your file does go over the network, to this application and nowhere else, and it is held only for the duration of the request. It is not written to disk, not logged, and not retained. If that trade is not acceptable for a particular image, the WebP converter will do the whole job locally and get you most of the way there.

The split between browser and server

The browser does the preparation. Your file is validated, decoded at its original dimensions, and then written out as a lossless PNG. Lossless matters here: sending a JPEG intermediate would bake that JPEG's artefacts into the AVIF and waste bits describing them. The PNG is posted to the encoder endpoint along with your quality setting. On arrival the bytes are checked against the PNG signature before anything else touches them, which is a cheap guard against a malformed or mislabelled payload reaching the image library.

Encoding itself uses sharp, which wraps libvips and libaom, at effort level 4 with 4:2:0 chroma subsampling. Effort 4 is a deliberate middle setting: pushing it higher shaves a few more percent off the file but multiplies the time per image, and at some point a user staring at a spinner costs more than the bytes are worth. Chroma subsampling at 4:2:0 discards three quarters of the colour resolution while keeping full luminance detail, which is nearly invisible on photographic content and is the same trade JPEG has been making since 1992. The encoded buffer is returned directly in the response body and the client drops it straight into the ZIP alongside anything that was encoded locally.