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.
Safari can’t save WebP images, and neither can any browser on an iPhone or iPad. To convert to WebP, use Chrome, Edge or Firefox on a computer or an Android phone.
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
- Current versions of Chrome, Edge, Firefox, and Safari all show AVIF, so it's safe on a website. Email is different: some email programs can't show AVIF, so keep PNG for pictures you send that way.
- Keep the original PNG for anything you'll edit again. A lossy file loses a little more detail every time it's edited and saved.
- Saving AVIF takes much more work than saving PNG or WebP. While a large image converts, the page can stop responding until it's done.
- The AVIF encoder runs inside the page instead of relying on the browser, so the converter saves AVIF in Safari and on iPhones and iPads too.
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
- Image converter
- HEIC to JPG converter
- JPG to PDF converter
- WebP to PNG converter
- WebP to JPG converter
- PNG to JPG converter
- JPG to PNG converter
- SVG to PNG converter
- AVIF to JPG converter
- AVIF to PNG converter
- PNG to WebP converter
- JPG to WebP converter
- SVG to JPG converter
- PDF to JPG converter
- PNG to SVG converter
- JPG to SVG converter
- JPG to AVIF converter