Skip to content

Convert PNG to AVIF

Output is typically about 90% smaller.

  • Files stay on your device
  • Free, no sign-up
All image tools

Questions

Is AVIF actually safe to use now?

Yes, for browsers. Chrome has decoded AVIF since 2020, Firefox since 2021 and Safari since 16.4 in 2023, so support is effectively universal on the web. What has not caught up is everything else: many desktop image viewers, older phones, and a good deal of design and office software still cannot open one. It is a format for serving pages, not for sending someone a file.

How much smaller than the PNG will it be?

For a photograph, dramatically — often a tenth of the size or less, because PNG is lossless and photographs are the worst case for lossless compression. For a logo or a screenshot the gap narrows sharply and can reverse, since PNG's predictors are very good at flat colour. The tool shows you the actual figure, which is more useful than any rule of thumb.

Does transparency survive?

Yes. AVIF supports a full alpha channel, not the one-bit on-or-off transparency of GIF, so soft edges and drop shadows come through intact. This is one of the main reasons to prefer it over JPEG when converting a PNG — JPEG would force you to flatten onto a background colour.

Should I use WebP instead?

WebP encodes in milliseconds rather than seconds and has a few more years of universal support behind it. AVIF produces smaller files at matching quality, usually by 20 to 30 percent. For a handful of images either is fine; for a large library, the practical question is whether your build can afford the encoding time. Serving AVIF with a WebP fallback via a picture element gets both.

Will converting PNG to AVIF make the file smaller?

Usually, yes. A 12-megapixel photo is around 14 MB as PNG and around 1.4 MB as AVIF — about 90% smaller. Because AVIF is lossless the result depends entirely on the image content — flat colour and text compress far better than photographic detail.

Does converting PNG to AVIF lose quality?

A little, by design. PNG is lossless and AVIF is lossy, so some detail is discarded in exchange for a much smaller file. At quality 80–90 the result is visually indistinguishable from the original for photographs. For screenshots, logos or anything with sharp text, stay with a lossless format instead — lossy compression creates visible halos around hard edges.

Is transparency preserved when converting PNG to AVIF?

Yes. Both PNG and AVIF support an alpha channel, so transparent and semi-transparent pixels carry across unchanged — a logo with a cut-out background stays cut out, and soft drop shadows keep their gradient rather than picking up a white halo. Because AVIF can compress lossily, a very hard edge against transparency may pick up slight softness at high compression; keep quality at 85 or above for cut-out graphics.

Should I use AVIF or WebP?

AVIF files are typically 25–35% smaller than WebP at the same quality, which is a real win on image-heavy pages. The trade-offs are much slower encoding and a support floor of Safari 16.4 (March 2023), so a small share of visitors cannot see it. Serve AVIF with a WebP fallback via a <picture> element if you want both.

How it works, and more about png to avif

How it works

  1. Add your PNG file. Drag a PNG file onto the drop zone, or click to browse. You can select several at once.
  2. Choose your settings. Adjust the quality slider if you want a smaller file or a sharper result. 80 suits most photographs.
  3. Download the AVIF. Conversion runs on your device as soon as each file is added — no upload, no queue. Download each result when it is ready.

Why people convert PNG to AVIF

Putting images on the web and wanting the smallest file that still looks right. Usually a PNG export from a design tool that turned out to be several megabytes, on a page that is being measured for Core Web Vitals.

AVIF is the right target if the image is photographic or has gradients — it is the best-compressing format with real browser support, and it keeps the transparency the PNG had. If the image is a logo, an icon or a diagram with flat colour and hard edges, keep the PNG: lossless compression handles that content better than any lossy codec, and the PNG is probably already small.

Worth knowing: Encoding is slow. AVIF descends from a video codec and spends real effort searching for the best result, so a large image can take seconds rather than the milliseconds a PNG or WebP takes. That is a one-time cost at build or upload time, not something your visitors pay.

PNG and AVIF side by side

 PNGAVIF
Full namePortable Network GraphicsAV1 Image File Format
CompressionLosslessLossy or lossless
TransparencyYes — alpha channelYes — alpha channel
AnimationNoYes, in the format
Browser supportUniversal — every browser since 1996Chrome 85+, Firefox 93+, Safari 16.4+ (March 2023), Edge 121+
Typical 12 MP photo~14 MB~1.4 MB
Usually used forScreenshots, logos, icons, diagrams and anything needing transparencyPerformance-critical web images where every kilobyte counts

On a typical 12-megapixel phone photo, the AVIF output comes out about 90% smaller than the PNG original. These are order-of-magnitude figures for one kind of image — your own results will vary a great deal, because flat colour, text and line art behave nothing like photographic detail, and the quality slider moves the figure substantially.

What this tool actually produces

Not estimates. Each row below was produced by running the file through this page in a real browser and measuring the result, at the default quality of 82.

Test imagePNG inAVIF outChange
Smooth gradient
1600 × 1200, broad tonal transitions — where banding and blocking show
1.8 MB82 KB-95%
UI screenshot
1440 × 900, dense text on flat panels — the hardest case for JPEG
97 KB35 KB-64%
Line-art diagram
1200 × 800, hard edges and large flat areas
19 KB10 KB-46%
Logo with transparency
512 × 512, flat colour on a transparent background
77 KB5 KB-93%

Every test image got smaller, though by very different margins — flat colour and text behave nothing like photographic detail, so treat the closest row to your own content as the useful one. Measured in Chrome 150.0.7871.46; other browsers encode slightly differently.

What to watch out for

  • Encoding is computationally expensive and noticeably slow
  • Requires Safari 16.4+ (2023), so a small share of users still miss it
  • Sparse support outside browsers — most desktop editors cannot open it

About the two formats

PNG stores every pixel exactly as it was, with no generation loss no matter how many times you re-save it. That fidelity is why it dominates screenshots, logos and UI assets, and also why it is the wrong choice for photographs — lossless compression simply cannot get a 12-megapixel photo down to a reasonable size.

AVIF currently produces the smallest files of any widely supported format — commonly half the size of JPEG at the same perceived quality, with excellent handling of gradients and noise. The cost is encoding time, which can be seconds per image rather than milliseconds, and support that only became universal with Safari 16.4 in 2023.

Other conversions

Everything runs on your device — nothing is uploaded, so there is no size limit, no queue and no copy left on a server afterwards. There is more on how browser-based conversion works if you want the detail. Otherwise, browse every image tool, or convert AVIF back to PNG.