Convert PNG to AVIF

PNG stores every pixel but pays for it in file size — screenshots, graphics and anything with transparency can get heavy fast. AVIF is the most compact format modern browsers display, and it fully supports alpha, so you can shrink a PNG dramatically without flattening its transparency. This tool converts PNG to AVIF entirely in your browser: it reads the image with your browser's own decoder and encodes AVIF with the libaom encoder compiled to WebAssembly. Honest and important: the AVIF encoding step is WASM-based, not a built-in browser transcoder — everything still runs locally, with no uploads, no watermarks, no usage limits, and offline support once the encoder loads. The quality slider (default 50%) balances size against fidelity; raise it for crisp UI screenshots, lower it for photos. Two caveats we won't hide: AVIF is lossy at these settings, so if you need every single pixel keep the PNG (or try JPEG XL's true-lossless mode), and flat-color graphics sometimes shrink less than photographs do. For everyday web images, though, this is one of the biggest size wins available.

Drop PNG files here or click to browse

Processed locally — files never leave your device

How to use

  1. Drop your PNG files into the box, or click it to browse.
  2. Adjust the quality slider (50% default); transparency is carried over automatically.
  3. The AVIF encoder (WebAssembly) runs locally on your device.
  4. Download the .avif files.

Frequently asked questions

Is transparency preserved?

Yes. AVIF supports an alpha channel, so transparent PNG logos, icons and overlays keep their transparency after conversion.

Are my PNG files uploaded?

No. Decoding uses the browser's built-in image engine and the AVIF encoder is a WebAssembly module running in your tab. Nothing leaves your device, and it works offline once loaded.

Is this lossless like PNG?

Not at the quality settings here — AVIF is lossy, trading a little fidelity for much smaller files. If you must keep every pixel, keep the PNG or use PNG to JXL in true-lossless mode.

How much smaller will it be?

Photos and complex screenshots often drop by a large margin — commonly well under half the PNG size. Flat-color graphics with sharp edges can shrink less dramatically; results vary by content.

Is AVIF encoding done by the browser natively?

No — browsers display AVIF but don't expose a built-in encoder to web pages, so this tool uses libaom compiled to WebAssembly. Still 100% local on your device.

Related tools

Need lossless? See PNG to JXL or Compress PNG. From JPG? Use JPG to AVIF. Want a WebP instead? PNG to WebP. To turn AVIF back into PNG, decode it with AVIF to JPG's PNG output option.