Convert PNG to AVIF

Turn PNG images into AVIF. Same size, alpha kept.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PNG files on the dialor turn it to pick what to do

PNG to AVIF at the same size.The picture keeps its width and height and its transparency. The file is lossy.

  1. What you get

    One AVIF file with the same width and height as the PNG. Transparent areas stay transparent, because the alpha channel is kept.

    The conversion is lossy and runs at Quality 60 unless you set another value. The AVIF is usually a fraction of the PNG's size.

  2. Quality and size

    Quality takes a value from 1 to 100. A higher value keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    Because the conversion is lossy, the AVIF does not hold every pixel of the PNG. Pick a higher Quality if you want it to keep more detail.

  3. Resize and rotate

    Set Max width (px) or Max height (px) to shrink a large picture. The shape is kept. A picture that is already within the limit stays as it is, so nothing is enlarged.

    Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.

PNG and AVIF.What each format is, and the options this conversion takes.

  1. 01 · max_height

    Max height (px)

    Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.

    1 to 20000
  2. 02 · max_width

    Max width (px)

    Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.

    1 to 20000
  3. 03 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 60
  4. 04 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270

The formats

From · PNG

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images
To · AVIF

AVIF

AV1-based images with better compression than WebP and support for HDR and alpha.

Extensions
.avif
MIME type
image/avif
Kind
Images

In your code.The same PNG to AVIF conversion through the API, for your app or your agent.

terminal
$ cv convert photo.png photo.avif
$ cv convert photo.png photo.avif

Questions.What people ask about PNG to AVIF.

01OF 04

Yes. The alpha channel is kept, so transparent areas stay transparent.

No. It is lossy and runs at Quality 60 unless you set another value. Raise Quality to keep more detail.

Usually. At the default Quality 60 the AVIF is typically a fraction of the PNG's size. A higher Quality makes a bigger file.

The conversion stops with input_corrupted when the file could not be parsed. To go the other way, use AVIF to PNG.

More conversions.Other ways in and out of PNG and AVIF.