Skip to content
Lite Editor

Convert PNG to AVIF

Drop the PNG and download it as AVIF, the smallest format there is.

Drop an image here

or

PNG, JPG, WEBP, HEIC, AVIF, JXL, GIF, BMP, TIFF and SVG · up to 20 MB

AVIF saves the most, with two conditions

AVIF is currently the most efficient image format browsers understand. It's built on AV1, the video codec pushed by Google, Netflix and Mozilla, and applied to still images it compresses 20–30% better than WEBP, which already compressed far better than JPG.

Against a PNG the comparison isn't even fair: if the PNG holds a photograph, the AVIF can land at a tiny fraction of it. And unlike JPG, it keeps transparency, so it works as well for a cut-out logo as for a photo.

The two conditions

That your audience is on current browsers. Chrome has supported it since 2020, Firefox since 2021 and Safari since 2023. That's broad coverage, but not universal: if you get visits from older machines, the right move is to serve AVIF with WEBP as a fallback:

<picture>
  <source srcset="image.avif" type="image/avif">
  <source srcset="image.webp" type="image/webp">
  <img src="image.png" alt="…">
</picture>

That the image can take advantage of it. AVIF shines on photographs and gradients. On a 32-pixel icon or a four-colour flat graphic the saving can be zero or negative, because the file's own structure has a fixed cost. Lossless WEBP usually wins there, or even the original PNG.

Keep the PNG

As with any publishing format, the original rules. AVIF is what you serve; the PNG is what you keep to re-edit, or to generate other versions the day the next efficient format shows up — and it will.

Common questions

How much does it save over WEBP?
Another 20–30%, and against the original PNG the difference can be enormous if the image is photographic. On flat graphics with few colours the margin narrows considerably.
Is transparency preserved?
Yes, AVIF has an alpha channel. That's one of the reasons to pick it over JPG when the image is a logo, an icon or a cut-out product.
Do all browsers support it?
Current ones do: Chrome since 2020, Firefox since 2021 and Safari since 2023. If your audience carries older browsers, serve WEBP as a fallback using the picture element.
Why does it take longer to convert?
Because it searches much harder while compressing. AVIF comes from the AV1 video codec and its encoder does considerably more work than WEBP's. On a single image you won't notice; across a batch of hundreds you will.
Is it good for small logos and icons?
On very small or very low-colour images AVIF sometimes gains nothing and can even come out larger, because its header isn't free. Try lossless WEBP for that case.