PNG vs AVIF: technical differences
To convert PNG to AVIF, drop your PNG file into the converter above and download the AVIF: a modern format, usually smaller than JPG and WebP at the same quality, that supports transparency. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
AVIF stores each image as a single AV1 video keyframe. AV1's large, variable block sizes, directional prediction and in-loop filters mean that, where JPG would show blocks, AVIF degrades by gently smoothing. That is why a PNG photo converted to AVIF can end up roughly half the size of the equivalent JPG, and a tiny fraction of the PNG.
The trade-off is that AVIF tends to blur very fine texture — fabric weave, hair, film grain — before it shows any other artifact. Flat graphics with hard edges compress extremely well. AVIF also keeps a full alpha channel, so transparent PNGs stay transparent.
AVIF can carry 10- and 12-bit colour and HDR, but that capability goes unused here: Pixohub works on an 8-bit canvas and writes standard 8-bit sRGB AVIF, using Safari's own encoder or, in Chrome, Firefox and Edge, a bundled WebAssembly build of libavif. Encoding is also much slower than WebP or JPG, so even a medium-sized PNG takes several seconds.
| PNG (Portable Network Graphics) | AVIF (AV1 Image File Format) | |
|---|---|---|
| Compression | Lossless (DEFLATE with per-row prediction filters) | Lossy or lossless (AV1 intra-frame in a HEIF container) |
| Colour depth | 1–16 bits per channel; truecolor, greyscale or 256-colour palette | 8, 10 or 12 bits per channel; HDR and wide gamut capable |
| Transparency | Full 8/16-bit alpha channel | Full alpha channel |
| Animation | Only via the APNG extension | Yes (image sequences) |
| Metadata | Text chunks, ICC profile, gamma; EXIF via the newer eXIf chunk | EXIF, XMP, ICC / CICP colour signalling |
| Typical file size | Large for photos (often 2–3× a JPG); tiny for flat graphics | Usually the smallest — often half a JPG at similar quality |
| Support | Universal — every browser, OS and editor | Chrome, Edge, Firefox and Safari 16+; patchy in older desktop software |
When to convert PNG to AVIF
Squeezing every byte out of a performance-critical page
Landing pages chasing a fast Largest Contentful Paint on mobile benefit most. A PNG hero illustration of 1–2 MB can often drop to well under 150 KB as AVIF. Serve it inside a picture element with a WebP or JPG fallback if you still care about very old browsers.
Transparent illustrations and UI artwork
Large transparent illustrations — onboarding art, empty-state graphics, mascots — are where PNG is at its heaviest and AVIF at its best: smooth fills, clean edges and alpha all compress efficiently.
Portfolio sites with many large images
Designers and photographers who exported their portfolio as PNG to avoid JPG artifacts can switch to AVIF and keep the clean look while cutting total gallery weight dramatically. Check fine-texture work (textiles, sketches) at 100% zoom before replacing originals.
What converting PNG to AVIF keeps and loses
What you keep
- Transparency, including semi-transparent edges.
- Exact pixel dimensions.
- A visually clean image at the default 85% quality — AVIF artifacts show up as softness rather than blocks.
What you lose
- Losslessness: the encoder produces lossy AVIF at the chosen quality.
- 16-bit precision; the result is 8-bit even though AVIF could hold more.
- Metadata and ICC profiles from the PNG.
- Universal compatibility — current browsers display AVIF, but many desktop tools, email clients and CMS uploaders still do not accept it.
Our test: PNG to AVIF on two real files
At the default 85% the photo came out at 308 KB: slightly larger than the WebP (228 KB) or JPG (301 KB) made from the same PNG, but closer to the source, with SSIM 0.9899 against 0.977 for WebP. The same number on the quality slider does not mean the same quality in different encoders, so to compare sizes fairly, lower the AVIF quality until it looks like your WebP. The transparent graphic shrank from 225 KB to 33 KB and kept its alpha channel.
The cost is time. The photo took 7.1 seconds and the graphic 2.6 seconds, because Chromium has no AVIF encoder of its own and Pixohub runs libavif as WebAssembly in the tab; the other formats from the same PNG took about a second.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | PNG in | AVIF out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 2.1 MB | 308 KB (−85%) | SSIM 0.990 · 33.2 dB | None in source | Removed | 7.1 s |
| Graphic, 800 × 600, transparent | 225 KB | 33 KB (−85%) | SSIM 0.998 · 46.3 dB | Kept | None in source | 2.6 s |
Last updated
Apps and sites that work with PNG and AVIF
Browsers that display the result
Chrome has displayed AVIF since version 85 and Firefox since 93; Microsoft Edge only turned it on by default in version 121, released in January 2024. Current Safari displays AVIF too. An AVIF hero image therefore works for nearly every visitor, but a picture element with a PNG or WebP fallback still covers older Edge and Safari installs.
WordPress and the server's image library
WordPress accepts AVIF from version 6.5, but only when the server's GD or Imagick build can handle it, because WordPress generates the smaller sizes itself. Tools › Site Health › Info › Media Handling lists the formats your host supports; if AVIF is missing there, ask the host or use WebP.
Editors and command-line tools
GIMP has imported and exported AVIF since 2.10.22. The libavif project's avifenc tool takes PNG input directly if you want to script a batch. On Windows, viewing AVIF in Photos and seeing thumbnails in File Explorer depends on Microsoft's AV1 Video Extension from the Microsoft Store.
Common PNG to AVIF problems and fixes
The progress seems stuck
It is almost certainly still encoding. AV1 compression is slow, and outside Safari it runs as single-threaded WebAssembly, so a 2-megapixel PNG takes several seconds and a large camera-sized PNG longer still (Pixohub switches libavif to a faster speed setting above 4 megapixels). Leave the tab in the foreground until it finishes, or resize first with the image resizer if the image is larger than you will display.
WordPress says the file type isn't allowed
On WordPress versions before 6.5 an AVIF upload is refused with "Sorry, you are not allowed to upload this file type." On 6.5 and later the same file can still fail if the host's image library lacks AVIF. Updating WordPress or asking the host fixes the first case; for the second, PNG to WebP gives a file every WordPress host accepts.
AVIF came out bigger than the WebP
That is what our own photo test showed at 85%, and it is not a fault: libavif spent the extra bytes on higher fidelity. If file size is the goal, try 65–75%; AVIF at those settings still tends to look cleaner than WebP at 85%, because it softens instead of blocking. Compare the two downloads side by side before deciding.
Tips for better PNG to AVIF results
- AVIF export works in all current browsers: Safari uses its own encoder, while Chrome, Firefox and Edge use a bundled WebAssembly encoder, which is why it takes several seconds. If the AVIF is not clearly smaller than a WebP of the same image, PNG to WebP is the more compatible choice.
- Inspect fine detail at 100% zoom; if textures look waxy, raise the quality rather than accepting the blur.
How this converter works
Pixohub decodes your PNG and encodes the AVIF entirely inside your browser. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.