Convert PNG to AVIF in your browser
Replace heavy PNG files with AVIF images that are often far smaller, with transparency kept. Add many files, compare the result and download everything as a ZIP.
Leave the size empty to keep the original. The ratio is kept and images are never enlarged. Camera data, location and colour profiles are removed.
| Preview | File | Format | Size in px | Original | New | Saving | Status | Actions |
|---|---|---|---|---|---|---|---|---|
How to convert PNG to AVIF
AVIF can store the same picture as a PNG in a fraction of the size. Encoding is slower than for WebP, so large batches take a little longer.
- Add your PNG files Drop them onto the box, paste an image or click to choose files.
- Keep AVIF and set the quality AVIF is already selected. Quality 60 suits most images; raise it for fine detail.
- Resize large images first Big files take long to encode. A maximum width of 1600 or 2000 pixels is enough for most pages.
- Compare and download Use the before and after view, then download the files or a ZIP.
Tips for PNG to AVIF
- AVIF shines on photos and gradients. For flat logos, lossless WebP or an optimised PNG can be smaller.
- Use a fallback format in your page for old browsers.
- Keep the PNG masters.
Common mistakes
- Choosing lossless AVIF Lossless AVIF is large. Use the lossy mode with a high quality instead, or PNG optimisation.
- Converting a huge batch of big images at once Encoding is demanding. Resize first or convert in several rounds.
- Ignoring the table For a few small graphics the AVIF is not smaller. Check the saving.
Open it pre-filled with a link
Every field accepts a query parameter with the same name, so a link, a script or an AI agent can fill the tool in and run it. Open an example: /tools/png-to-avif/?format=avif&quality=60&maxw=1600
| Parameter | Values | What it does |
|---|---|---|
format | webp · avif · png · jpg (default: avif) | Output format: webp, avif, png or jpg. |
quality | number (default: 60) | Quality from 1 to 100 for lossy output, and for the number of colours in PNG colour reduction. Higher is better and larger. |
mode | lossy · lossless · colors (default: lossy) | lossy or lossless for WebP and AVIF; lossless or colors for PNG (colors reduces the number of colours). JPG is always lossy. |
maxw | number | Maximum width in pixels. Empty keeps the original. Images are never enlarged. |
maxh | number | Maximum height in pixels. Empty keeps the original. Images are never enlarged. |
What this PNG to AVIF converter does
The full image tool with PNG input and AVIF output already chosen.
- Transparency kept The alpha channel of the PNG is stored in the AVIF.
- Quality slider From 1 to 100, with 60 as the starting point.
- Background workers Two images are encoded at a time and the page stays usable.
- Before and after Compare the original and the AVIF with a draggable divider.
- Batch and ZIP Up to 200 files and one archive to download.
PNG and AVIF compared
| PNG | AVIF | |
|---|---|---|
| Compression | Lossless | Lossy or lossless |
| Photos | Very large | Very small |
| Encoding speed | Fast | Slow |
| Support | Everywhere | All current browsers |
When to convert PNG to AVIF
When page weight matters more than encoding time.
Hero images and banners
The largest images on a page gain the most.
Product photography
Photos exported as PNG shrink dramatically.
Illustrations with gradients
Soft shading compresses very well in AVIF.
Apps and web apps
Smaller assets mean quicker first loads.
Want wider support with a still small file? Try the PNG to WebP page linked here.
Frequently asked questions
Is AVIF smaller than PNG?
For photos and images with gradients, usually by a very large margin. For small flat graphics, an optimised PNG can win. The table shows the real saving.
Is transparency kept?
Yes.
Why does it take longer than WebP?
AVIF compression is more demanding. Larger images use a faster setting to keep waiting times reasonable.
Which browsers show AVIF?
Current Chrome, Edge, Firefox and Safari. Provide a fallback for older ones.
Are my files uploaded?
No. Everything happens in your browser.
Can I open the tool with settings in the link?
Yes, for example ?format=avif&quality=60&maxw=1600. The list is in the first tab.
Have a project in mind? Let us talk it through.
Tell us what you want to build or improve. We reply with a clear next step.