Rasp

Convert PNG to AVIF

The largest saving available, with transparency intact. Encoded on your own machine — nothing is uploaded.

Ready
Uploaded0 B

What next

How do I convert PNG to AVIF?

To convert a PNG to AVIF, drop the file onto this page and download the AVIF it returns. Everything runs in your browser, so nothing is uploaded. AVIF keeps the PNG's transparency and compresses harder than any other format here: on our test image a 3.97 MB PNG became a 109 KB AVIF, about 97% smaller.

How to do it

  1. Open the converter. Open this page in any modern browser. The AVIF encoder downloads on first use and is then cached.
  2. Add your PNG files. Drag them onto the panel or click to choose. Alpha transparency is carried through.
  3. Set the quality. 82 is the default. AVIF degrades gracefully, so lower settings stay usable for longer than they would in JPG.
  4. Wait, then download. AVIF encoding is slow by design — the search for an efficient encoding is what produces the small file. It runs in a Web Worker so the page stays responsive.

At a glance

ConvertsPNG to AVIF
TransparencyPreserved
CompressionLossy — quality is adjustable, default 82
Where it runsIn this browser tab. The file is not uploaded
File size limitNone imposed — your device memory is the ceiling
CostFree
Account neededNo
WatermarkNone
Works offlineUsually after first use, but not guaranteed — there is no offline app

What it actually produces

Measured, not estimated. A procedurally generated 2400×1600 (3.8 MP) test image built to carry photographic entropy: value noise across nine octaves down to near-pixel scale, a dense field of small high-contrast features, a smooth gradient, hard edges and light grain. It is not a photograph — it is reproducible, which a photograph is not. Each figure below comes from running that image through this page.

InputOutputChange
3.97 MB109 KB97% smaller

Your own files will differ — a photograph, a screenshot and a diagram compress very differently. The point of a fixed image is that the formats can be compared with each other, not that your result will match.

The biggest saving on this site

AVIF is a still image wrapped in the AV1 video codec, developed by a consortium including Google, Netflix, Amazon and Mozilla to cut streaming bandwidth. It brings a decade of compression research that PNG, standardised in 1996, was never designed to compete with.

On the fixed test image used throughout this site: 3.97 MB as PNG, 109 KB as AVIF. Around 97% smaller.

For comparison, the same source came out at 247 KB as WebP and 375 KB as JPG.

Transparency survives

This is what makes AVIF a real PNG replacement rather than a partial one. AVIF stores a full alpha channel, including semi-transparent pixels, so a logo with soft edges or a product shot with a cut-out background converts cleanly.

JPG cannot do this — it has no alpha channel and fills transparent areas with white.

The cost is time

AVIF encoding is by a wide margin the slowest operation here. A large image takes seconds rather than milliseconds, because the codec is searching hard for an efficient encoding — and that search is precisely what produces the tiny file.

For a handful of hero images, encoded once and served millions of times, that trade is obviously right. For a bulk conversion of hundreds of files, WebP will finish in a fraction of the time for a file that is still far smaller than the PNG.

When to keep the PNG instead

Screenshots, diagrams, code samples, and anything where text must stay perfectly crisp.

Those images are mostly flat colour and hard edges — the content PNG compresses efficiently and stores exactly. Lossy compression of any kind softens text, and no quality setting fully avoids it. Optimising the PNG losslessly keeps every pixel and still reduces the file.

Questions

Does AVIF support transparency?
Yes, fully — including semi-transparent pixels. A PNG's alpha channel survives the conversion, which makes AVIF a genuine replacement for PNG on the web rather than a partial one.
How much smaller is AVIF than PNG?
On the fixed test image used here, a 3.97 MB PNG became a 109 KB AVIF — around 97% smaller. That is the largest reduction any converter on this site produces. Flat graphics and screenshots save less, since PNG already handles those well.
Is AVIF better than WebP for this?
On size, clearly: the same test image reached 109 KB as AVIF against 247 KB as WebP. On speed, clearly not — AVIF encoding takes seconds where WebP takes milliseconds. Both keep transparency, so the choice comes down to how many images you are converting.
Which browsers support AVIF?
Chrome, Edge, Firefox, Opera and Safari, along with their mobile versions. Safari added support in 2022, so AVIF is safe for general web use but less forgiving than WebP for audiences on old devices.
Why does it take so long?
AVIF is built on the AV1 video codec, which searches much harder for an efficient encoding than older formats do. That search is exactly where the file size saving comes from, so the slowness is the feature working.
Is my image uploaded?
No. Both decoding and encoding run in this browser tab. The Uploaded readout beside the result measures the page's outbound traffic directly, so a successful conversion reads 0 B.
Is there a file size limit?
None imposed. Large images take longer to encode rather than being rejected.
Should I convert screenshots to AVIF?
Usually not. Screenshots are mostly flat colour and sharp text, which PNG stores efficiently and losslessly. Lossy compression softens text. Optimising the PNG losslessly is a better fit.
Can I use AVIF outside a web page?
Rarely. Most desktop photo software, print workflows and upload forms still reject it. Convert to JPG for anything that has to open on someone else's machine.
Will there be a watermark?
No. Nothing is added to the image and no feature is held back.

About these formats

Sources

Related tools