Convert PNG to AVIF

Much smaller images with transparency kept, encoded on your device.

Convert PNG images to AVIF in your browser, transparency kept. It is free, needs no account and adds no watermark, and your files are not uploaded: everything runs in your browser on your device. The first run downloads the AVIF encoder (about 3.5 MB) and the WebAssembly engine that runs it to your browser, and after that the tool works offline.

Drop PNG files hereor click to choose files. Batches welcome.

    Working…

    Done

    Free, no ads. Support StayPut

    Your files are processed on this device and never sent to a server. Reload the page to clear everything from memory.

    AVIF can hold transparency like PNG, but lossy, so the file is a fraction of the PNG’s size: a 12-megapixel photo saved as an 8.0 MB PNG came out at 83 KB to 185 KB here at quality 60, depending on which encoder ran.

    The first run downloads the AVIF encoder (about 3.5 MB) and your browser keeps it afterwards. Chrome has no AVIF encoder for web pages, so a WebAssembly one does the work in your tab; browsers that can write AVIF themselves (Safari’s engine does) use their own and skip the download. A large image takes seconds on a recent Mac and can take far longer on a phone. Transparent areas stay transparent. The quality scale is not JPG’s, so judge by eye.

    Related converters

    How it works

    1. Drop your PNG files onto the page, or tap to pick them. Batches are fine, but each AVIF takes a while to encode.
    2. Pick a quality from 1 to 100 (60 is a good start), tick "Faster encode" to trade a little size for speed, or downscale the image.
    3. Download each AVIF, or all of them as one zip.

    In your browser, not on a server

    Stayput first reads the opening bytes of each file, where every image format writes its signature, so it knows what the file really is whatever it is called. Your browser decodes JPG, PNG, WebP, GIF, BMP, AVIF and SVG itself; TIFF goes through UTIF.js, HEIC through the libheif WebAssembly decoder, and JPEG XL (or AVIF, in a browser without native support) through the Squoosh decoders, all served from this site and cached. The browser re-encodes JPG, PNG and WebP; PDF, ICO, GIF, BMP and TIFF files are written by small encoders in the page. Nothing here needs a server.

    Compared with upload-based tools: Online converters upload your image, convert it on their machine, keep it for hours and cap you at a few files a day. This does the same conversion on your device, for as many files as your device’s memory can hold, with no upload to wait for.

    Verify it yourself. Give the page a short while after your first run to save itself for offline use, then turn off Wi-Fi or switch to airplane mode and run the tool again. Or open your browser's developer tools (F12, or Cmd-Option-I on a Mac), pick the Network tab, and watch it while you convert. The panel above does the same count for you.

    Questions

    Is transparency preserved?

    Yes. The alpha channel is encoded along with the colour, at the same quality you set.

    Is AVIF lossless?

    This page writes lossy AVIF, so small differences from the PNG are expected. At quality 100 they are very hard to see, but the file is much larger. If you need an exact copy, keep the PNG.

    Will every app open the AVIF?

    Not every program does. The files this page writes opened in Chrome, in Safari’s engine and in the image tools built into macOS, and the page’s own AVIF to JPG and AVIF to PNG converters read them back. We have not tested Windows apps, Microsoft Office or photo editors, and older software may refuse AVIF. If a program will not open it, convert it back with AVIF to JPG on this site.

    Why does it take so long?

    AVIF is expensive to compress. Where you see “Faster encode (lower effort)”, tick it for a quicker, slightly larger file, or downscale the image first. You can cancel an encode at any point.

    More image tools

    Other conversions

    Guides