OmniFeed Search

PNG to AVIF converter

Turns PNG images into AVIF files that are usually a fraction of the size, with transparent areas kept transparent. The AVIF is lossy at every quality setting, 100 included, so zoom in on text and thin lines in the result before you replace the PNG. It runs in your browser; nothing you enter is uploaded.

For the reverse, use the AVIF to PNG converter.

You can also drop images on this box. Your images never leave your browser: the site doesn't store them, and all the converting happens on your device.

Resize

Fill in one to keep the image's proportions. Fill in both to fit the image inside that size, still keeping its proportions.

Saving AVIF takes longer than the other formats, and the first time, the page downloads an AVIF encoder of about 3 MB.

Lossy at every setting

A PNG stores every pixel exactly. The AVIF this converter saves never does: even at quality 100, the encoder drops some detail, so the result comes close to the PNG without matching it. Most of what it drops is color detail. The AVIF keeps color at half the width and half the height of the brightness detail, as most JPGs do. Photos and soft illustrations hide that well. Red or blue text, thin colored lines, and colored edges on a flat background are what blur first.

The quality slider starts at 60, which suits photos and artwork. For a screenshot, a chart, or anything with small text, try 80 or higher. Each time you let go of the slider, every image is converted again, so set it on one image before you add the rest. The preview next to each file is small; open the downloaded AVIF and zoom in to judge it. The size before and after is listed under each file.

Transparent PNGs

AVIF stores transparency, including the partly transparent pixels along soft edges and shadows, so a logo or a cutout keeps its see-through background. The checkerboard behind each preview shows which parts are transparent. No background color gets filled in, unlike a conversion to JPG.

Before you replace your PNGs

Lossless AVIF on the command line

When the AVIF has to match the PNG pixel for pixel, use avifenc, the encoder from the libavif project. Its --lossless option keeps every pixel, at the cost of a much larger file than a lossy AVIF. On Linux, Debian and Ubuntu include it in the libavif-bin package.

avifenc --lossless logo.png logo.avif

Without that option, avifenc -q 80 image.png image.avif saves a lossy file, with -q setting the quality from 0 to 100. For an exact copy you can make in the browser, the PNG to WebP converter saves lossless WebP at quality 100 in Chrome and Edge.

Questions

Is AVIF better than WebP?

For photos and detailed artwork, AVIF usually gives a smaller file than lossy WebP at the same visual quality. WebP is much faster to save and opens in more programs outside the browser. Current browsers show both.

Can I convert the AVIF back to PNG?

Yes, with the AVIF to PNG converter. The PNG will be much larger than the AVIF and won't get back the detail the AVIF dropped.

More in image converters

Other tools