Picture Batch PNG to AVIF
PNG to AVIF
This is the conversion that actually saves you something. A photographic PNG is enormous because it stores every pixel exactly; the same image as AVIF is routinely a twentieth of the size and, above quality 60 or so, indistinguishable at normal viewing sizes. The encoding is done here by libaom — the reference AV1 encoder — compiled to WebAssembly and run inside your browser.
Drop PNG images here
PNG files — or any of JPEG, WebP, AVIF, BMP, ICO, TIFF, GIF or camera raw (CR2, CR3, NEF, ARW, DNG, RAF, ORF, RW2). Everything runs on this device.
Your images never leave this device. They are decoded and re-encoded by your own browser, and the security policy on every page blocks this site from sending them anywhere.
The smallest of the common formats at a given quality, with transparency and HDR support.
A good range for photographs — around here AVIF matches a high-quality JPEG at about half the size.
Images keep their original dimensions.
Kept. AVIF stores a full alpha channel, so cut-outs and soft edges come through exactly.
AVIF output carries no metadata block, so camera, date and location tags are dropped whichever option you pick.
AVIF has nowhere to store Exif metadata, so it is dropped whatever you choose here.
What happens to your image
Expect a substantially smaller file — commonly half the size of an equivalent-quality JPEG, and a small fraction of a PNG for photographic images.
| Property | Outcome |
|---|---|
| Transparency | Preserved: Kept. AVIF stores a full alpha channel, so soft edges and cut-outs survive exactly. |
| Image quality | Partly preserved: AVIF is lossy: the image is re-compressed and detail is discarded to make the file smaller. The quality control decides how much. |
| Colour | Partly preserved: Converted to sRGB. Decoding an image colour-manages it into the browser's own space, so the output is sRGB and is left untagged, which every viewer reads as sRGB. A wide-gamut source is reported before conversion. |
| Exif metadata | Not preserved: AVIF output from this tool carries no metadata block, so camera and location tags are dropped. |
| Orientation | Preserved: Applied to the pixels, and the tag is reset to upright afterwards so nothing rotates the image a second time. |
No browser can encode AVIF on its own
Browsers decode AVIF but none of them will encode it: a canvas can produce PNG, JPEG and WebP and nothing else. That is why every other in-browser AVIF converter either uploads your file to a server or ships a codec, and why this one downloads a 3.5 MB encoder the first time you ask for AVIF output and not a moment before.
It is fetched from this site rather than a content delivery network, cached by your browser afterwards, and never loaded at all if you only ever convert to other formats. That is the whole reason the initial page is small despite the tool being able to do this.
Flat artwork is encoded differently from photographs
AVIF, like JPEG, normally stores colour at half resolution — chroma subsampling. On a photograph this is invisible and saves a great deal of space. On a logo, a screenshot or a diagram it is very visible indeed: crisp coloured edges acquire a smeared fringe, and red text against a dark background turns to mush.
So the encoder here counts the distinct colours in a sample of the image first. Images with few enough colours to be artwork rather than photography are encoded at full chroma resolution, and their transparency is encoded losslessly, because a soft edge on a logo cut-out is the first thing anyone notices. This happens automatically and the result tells you when it did.
When to keep the PNG instead
If the image has to survive further editing, keep the PNG. AVIF at any quality setting — including 100 — is lossy in this build, and repeated rounds of lossy re-encoding degrade an image in a way that cannot be recovered.
If the image is a small icon, a PNG may well be smaller than an AVIF anyway. AVIF carries container overhead that a 32×32 image cannot amortise.
If it needs to open in software older than about 2022, AVIF will not open. WebP is the safer modern choice, and JPEG the universal one.
If something goes wrong
The AVIF encoder takes several seconds per image.
AV1 encoding is genuinely expensive, and it is running in WebAssembly inside a browser tab rather than on a server farm.
What to do: This is expected. Large batches are worth starting and leaving; progress is real and you can cancel at any point.
"The AVIF encoder returned nothing."
The encoder ran out of the memory a browser tab allows, which happens on very large images.
What to do: Use the resize control to bring the image under about 20 megapixels, or convert it to WebP instead.
The AVIF came out larger than the PNG.
The source is small, or is flat artwork with very few colours — exactly the case PNG was designed for.
What to do: Keep the PNG. The result warns you when this happens rather than letting you ship a worse file.
Questions
Is AVIF better than WebP?
For photographs at the same visual quality, AVIF files are usually 20 to 30% smaller, and it handles gradients and dark areas noticeably better. WebP encodes far faster, is supported by more software, and is the safer choice if you cannot control what will open the file.
Does AVIF support transparency?
Yes, a full alpha channel like PNG, and it is preserved here. For flat artwork the alpha is encoded losslessly so cut-out edges stay crisp.
Can I convert a PNG to AVIF without any quality loss?
Not with this tool. The encoder here is always lossy, including at quality 100. If you need a byte-exact result, PNG is already the format for that.