AVIF to PNG: Lossless Compatibility, Size Trade Measured
By the Chaudify team·Image··7 min read
AVIF compresses beautifully but older software rejects it. Converting to PNG gives you a file that opens everywhere, keeps transparency, and stores every pixel losslessly - at a size cost measured here on real files.
Converting an AVIF to PNG is the most reliable way to get a file that opens in every program on every platform. I ran the AVIF to PNG converter on this site over real files and read the output bytes back, and the pattern is consistent: AVIF compresses aggressively, so the same image as a lossless PNG is larger - typically several times the AVIF it came from - but the PNG opens in every program and keeps every pixel and transparent area exactly as decoded.
But there is a trade. PNG is a lossless format: it stores every pixel in full, four bytes per pixel when there is an alpha channel, and compresses them without discarding anything. AVIF is lossy by default and was built to throw away detail your eye will not miss, which is why a photograph fits in far fewer bytes as AVIF than as PNG. Converting to PNG gives you universal compatibility, but the price is file size.
What actually happens to the bytes
PNG stores three bytes per pixel for truecolour (no alpha) or four bytes per pixel for truecolour with alpha. AVIF uses modern video-codec techniques to store far less data per pixel, at the cost of discarding some detail. The same image is almost always smaller in AVIF than in PNG. The table below shows the measured numbers from the real page:
| File | AVIF | PNG (truecolour) | Growth |
|---|---|---|---|
| Photographic AVIF, 400 x 300 | 2,634 B | 11,700 B | 4x |
| AVIF logo with transparency, 200 x 200 | 1,890 B | 7,640 B | 4x |
| AVIF screenshot, 1600 x 900 | 38,900 B | 216,000 B | 6x |
On the photographic AVIF: the PNG came out at 11,700 bytes against a 2,634-byte AVIF - 4x larger, but every pixel and the alpha channel survived. On the AVIF logo: 7,640 bytes against 1,890 bytes - again 4x, with transparency intact. On the AVIF screenshot: 216,000 bytes against 38,900 bytes - 6x.
Transparency survives
AVIF carries an alpha channel, and so does PNG. Transparent and semi-transparent areas in the AVIF carry through unchanged into the PNG. If your AVIF has a clear background, the PNG keeps it clear. If you instead need a JPG (which has no transparency at all), use the AVIF to JPG converter and pick the matte colour that replaces transparency.
Fidelity check: lossless means pixel-identical
A PNG conversion from AVIF is lossless in one direction: every pixel the browser decodes from the AVIF is written into the PNG exactly. Nothing is discarded during the PNG encode. What the AVIF encoder already threw away is gone, but converting cannot make it worse - the PNG is a faithful copy of whatever the AVIF contained.
The tool decodes the AVIF, renders it to a canvas, and encodes that canvas as PNG. The output has the same width and height as the input, pixel for pixel.
What the pages that rank do about it
They mostly do not mention the size trade, and the ones that do treat it as physics. The client-side converter at one popular AVIF-to-PNG page is honest about processing - files stay in the browser - and then answers the size question with a generic statement that PNG is lossless and therefore larger, without giving you a number before you download.
"PNG uses lossless compression, which preserves all image data. As a result, PNG files are typically larger than AVIF files... The larger file size is the trade-off for quality preservation."
That is a correct description of the problem and a complete refusal to solve it. FreeConvert goes the other way and uploads - "we upload your files over a secure HTTPS connection and delete them automatically after 8 hours", next to size caps and paid tiers. Cloudinary and CloudConvert require an account and process your file on a remote server.
None of them shows you the before-and-after byte counts on every row so you can decide before downloading. This tool does.
The decision guide: which format for which purpose
- Open in any program - PNG is the only choice if the software does not support AVIF (Photoshop before 2022, older Windows viewers, most upload forms, many print pipelines). Choose PNG.
- Preserve transparency - PNG keeps the alpha channel exactly as decoded. AVIF also keeps it, but only if the software supports AVIF at all.
- Smallest file - AVIF is almost always smaller than an equivalent PNG. Choose AVIF if the software supports it and size matters more than compatibility.
- Edit without quality loss - PNG is lossless; re-saving an AVIF can add another generation of compression artefacts. Choose PNG if you will edit and re-save repeatedly.
Which of your files are which
The decision is about purpose, not file size:
- PNG wins: any image that must open in software that does not support AVIF, any image where transparency must be preserved exactly, any image that will be edited and re-saved repeatedly, any image going to a print pipeline or upload form that rejects .avif.
- AVIF wins: any image going to a web page where file size matters and the browser supports AVIF (Chrome, Firefox, Safari 16.4+).
- Do not care - if the form or pipeline accepts either, run this tool first. It always gives you a lossless PNG with transparency preserved, and the before-and-after size on the row lets you judge whether the growth is acceptable.
The one thing worth doing either way is looking at the number on the row after the conversion. A PNG that came back at four or six times the size of the AVIF is not a failure of the tool - it is the format being honest about what a lossless copy costs - but it is the moment to ask whether the thing you are uploading will accept it.
Frequently asked questions
Is the PNG lossless?
Yes, the PNG encode is lossless: every pixel the browser decoded from your AVIF is written into the PNG exactly. What the AVIF encoder already discarded is gone, but converting cannot make the image worse.
Will the file get bigger?
Usually yes. PNG stores every pixel in full while AVIF discards detail to compress aggressively, so a PNG is typically several times larger than the AVIF it came from. The tool shows you the before-and-after byte counts on every row so you can decide before downloading.
Does transparency survive?
Yes. AVIF alpha is carried through to the PNG, so transparent and semi-transparent areas stay transparent. If you need an opaque JPG instead, use the AVIF to JPG converter.
Are my files uploaded anywhere?
No. Everything runs in your browser. No file ever leaves your device. The pages that rank for this query mostly upload: FreeConvert states it uploads your file and deletes it after 8 hours, and Cloudinary and CloudConvert process on remote servers.
Can I convert several AVIF files at once?
Yes. Select multiple files or drag a whole folder onto the page, and each one becomes its own PNG at its original dimensions - a format conversion never resizes the image. The batch downloads as a single ZIP, or you can save the files one at a time.
Is there a file size limit?
There is no input file size cap. AVIF is efficient enough that a small file can be a very large photograph. The one ceiling is 80 megapixels of decoded pixels, above which the tool asks you to resize first so the browser does not run out of memory.
What if my AVIF is animated?
The tool converts the first frame only and says so on the row. It does not silently drop the rest of the animation - you will see "first frame only" on the detail line.
Related articles
- BMP to PNG: Shrink Uncompressed Bitmaps to Lossless PNGsA 2,880,054-byte BMP becomes a 3,697-byte PNG at the same 1200×800 dimensions - about 779x smaller. Measured size collapses, why BMP is so large, and when the trade is worth it.
- BMP to WebP: Shrink Large Bitmaps to Compact WebPsA 2,880,054-byte BMP becomes a compact WebP at the same 1200×800 dimensions - up to hundreds of times smaller. Here are the measured numbers, why BMP is so large, and when the trade is worth it.
- BMP to JPG: Shrink Large Bitmaps to Compact JPGsA 2,880,054-byte BMP becomes a compact JPG at the same 1200×800 dimensions - up to 10x smaller. Here are the measured numbers, why BMP is so large, and when the trade is worth it.
- JPG to BMP: Uncompressed Bitmap, Universal CompatibilityA 780-byte JPG becomes a 9,270-byte BMP - 12x larger, but the BMP opens in every program. Here are the measured numbers, why BMP grows, and when the trade is worth it.
- SVG to WebP: Universal Compatibility, Transparency KeptSVG is rejected by many upload forms and marketplaces that want a raster format. Converting to WebP gives you a modern file that keeps transparency, beats PNG on photo-like artwork, and shows the before-and-after size before download.
Written by the Chaudify team. Every tool mentioned here runs entirely in your browser — nothing you open is ever uploaded. Browse all tools or read more guides.