Skip to content

PNG to AVIF Converter

Convert PNG images to AVIF for much smaller files, with transparency kept.

Processed in your browser. Files never leave your device.No signup

Add up to 30 PNG images (up to 50 MB each) and convert them to AVIF with libavif at the quality you choose (10 to 100, default 85). Transparency, including soft edges, carries over. AVIF output here is always lossy, so for pixel-perfect copies choose WebP with the lossless option instead, which this page also offers. The conversion runs in your browser.

Convert PNG to AVIF for faster pages

AVIF, based on the AV1 video codec, is one of the most efficient image formats browsers support. Converting PNG files to lossy AVIF usually makes them many times smaller while looking the same at normal viewing size. For websites that serve PNG photos, screenshots, hero images or illustrations, the savings are large.

How PNG and AVIF compare

PNG compresses losslessly with DEFLATE, a method from the 1990s that keeps every pixel. AVIF uses the much newer AV1 coding tools and discards detail the eye barely notices, so it needs far fewer bytes. Photos and screenshots with many colors shrink the most. Flat graphics with sharp edges and text also shrink, but at low quality settings their edges can soften.

Lossy AVIF and when to keep lossless

This converter writes lossy AVIF. At high quality settings the result is very close to the original, but not identical. For images that must stay pixel-perfect, such as technical diagrams, interface mockups and text-heavy infographics, choose WebP with the lossless option on this page, or keep the PNG.

Transparency

Both PNG and AVIF support alpha channel transparency, and the converter keeps it, including semi-transparent areas and anti-aliased edges. That makes AVIF a good replacement for PNG on websites for logo overlays, cut-out product photos and other images with transparent backgrounds, which JPG can't do at all.

When to choose AVIF over PNG for graphics

Serve AVIF on your website for hero graphics, illustrations, photos saved as PNG and large decorative images, and keep the original PNG for editing. For small icons and logos with very few colors, a PNG or lossless WebP may already be tiny, so compare the sizes before switching.

Encoding time

AVIF encoding takes much more computation than PNG, JPG or WebP, so a batch takes longer to convert. On a website the cost is paid once and every visitor downloads the smaller file. If you need results right away, WebP encodes faster.

Browser support and fallbacks

Current versions of Chrome, Firefox, Safari (16.4 and later) and Edge display AVIF. For older browsers, use the <picture> element: list the AVIF source first, then WebP, and keep the PNG in the <img> tag as the final fallback.

Frequently Asked Questions

Is AVIF better than WebP for PNG conversion?

For lossy compression, AVIF files are usually smaller than WebP at similar quality, and both keep transparency. WebP encodes faster, offers a lossless mode, and works in more older software.

Does PNG to AVIF conversion preserve transparency?

Yes. The alpha channel is kept, including semi-transparent areas and anti-aliased edges. At very low quality settings, edges can soften a little.

Should I use lossless or lossy AVIF for PNG?

This converter produces lossy AVIF only. Use it for photos, screenshots and illustrations where a tiny loss doesn't matter. For text, diagrams and logos that must stay pixel-perfect, choose WebP with the lossless option, or keep the PNG.

Why does AVIF encoding take longer than PNG conversion?

The AV1 codec tests many ways to predict and compress each part of the image, which takes far more computation than PNG's DEFLATE compression. The cost is paid once, for files that are smaller on every download.

Can I edit AVIF files like I edit PNG files?

Support is growing, but many image editors still can't open or save AVIF properly. Keep your original PNG files for editing and use AVIF for web delivery.

Is AVIF suitable for print from PNG?

Not really. Print workflows expect PNG, TIFF, PDF or high-quality JPG, and many print services don't accept AVIF. Use AVIF for the web.

What happens to my PNG metadata when converting to AVIF?

It isn't copied. The converter writes the pixels only, so text chunks and other PNG metadata are left out of the AVIF. Keep the PNG if you need that information.

Learn more: AVIF vs WebP: which format to use?