Skip to content

PNG to AVIF converter

PNG → AVIF kept alpha well enough to round-trip back to RGBA PNG, while our 1,084 byte sample became a 1,689 byte AVIF.

  • Converted with Image engine · input deleted within 24 h
  • Free: 5 conversions a day · 5 MB each
  • Higher limits →

From real runs

What you get — and what changes

  • Transparency Kept

    The AVIF made from our transparent PNG round-tripped through AVIF → PNG with transparent corner pixels intact.

  • PNG text chunks Lost

    The Comment and Source strings from the PNG were not recoverable after converting through AVIF.

  • ICC profile Changed

    The AVIF path carried color information differently; the round-tripped PNG exposed ICC but not the original text chunks.

  • 16-bit grayscale Changed

    A 16-bit grayscale PNG converted successfully to AVIF, but this route is not a preservation path for sample depth.

  • Small graphics size Changed

    The 96×64 transparent PNG increased from 1,084 bytes to 1,689 bytes at quality 90.

  • Browser compatibility Changed

    The pair used the server our image engine API because AVIF output is not part of the browser image writer set.

Sample conversions

Alpha logo export

Input
A 96×64 transparent PNG with overlapping semi-transparent shapes, two tEXt chunks, and an sRGB profile.
Output
A 1,689 byte AVIF at quality 90. A later AVIF → PNG conversion came back as RGBA with transparent corners.

16-bit grayscale strip

Input
A compact 64×32 16-bit PNG gradient, 247 bytes, built to check high-bit-depth behavior.
Output
A 305 byte AVIF. The conversion succeeded, but AVIF is the delivery copy, not the archival grayscale master.

A real PNG → AVIF run

We converted our PNG sample (20 KB) with Image engine on 2026-10-20. It took 173 ms and produced a 15 KB AVIF file, 24% smaller than the input. The engine raised 1 warning, listed below.

Input · sample.png · 20 KB

1200 × 800 px, 8-bit, colour type 6

Width
1,200
Height
800
Encoding
8-bit, colour type 6

Output · sample.avif · 15 KB

1200 × 800 px, avif

Width
1,200
Height
800
Encoding
avif
  • Image metadata stripped from output.

Is your file a scan?

PNG → AVIF is an image delivery conversion. If the PNG is a scanned page, use OCR or Deep Read before replacing it with a harder-to-inspect image format.

Options and when to change them

quality
Lower it for large photographic PNGs headed to modern browsers; raise it for gradients or translucent edges.
width
Resize oversized PNG exports while producing AVIF variants for a known display width.
height
Set height with width when making exact AVIF cards or thumbnails.
fit
Use contain for letterboxed boxes, cover for uniform cards, and fill only when stretching is acceptable.

Do it yourself

ImageMagick 7 with AVIF support

bash
magick in.png -quality 90 out.avif

AVIF support depends on the installed codec stack, and metadata handling varies between builds.

PNG to AVIF by API or MCP

The HTTP API and the MCP server run the exact engine this page uses (Image engine); the response carries the same warnings the web converter shows. Check support first with GET /api/v1/pairs?from=png&to=avif.

curl
curl -X POST https://filetypeconverters.com/api/v1/convert \
  -H "Authorization: Bearer $FTC_API_KEY" \
  -F "file=@input.png" -F "from=png" -F "to=avif" \
  -F 'options={"dpi":96}' \
  --output output.avif

Options this engine accepts for PNG → AVIF

KeyApplies toTypeDefault
dpiReading PNGnumber96
API reference

When this is the wrong conversion

  • Keep PNG for editing masters, screenshots with exact pixels, or assets that require simple universal decoding.
  • Use PNG → WebP when the publishing target supports WebP but not AVIF.
  • Use PNG → PDF if the image needs to be uploaded as a document page.

PNG to AVIF questions

Does PNG → AVIF keep transparency?

Yes in the tested alpha case. The AVIF converted back to PNG as RGBA with transparent corners.

Why was my small PNG larger as AVIF?

Tiny flat artwork can be too small to benefit from AVIF compression. Our 1,084 byte PNG became a 1,689 byte AVIF.

Is PNG → AVIF good for 16-bit source files?

It is fine for a delivery derivative, not for preservation. Keep the original high-bit-depth PNG if channel precision matters.