Convert AVIF to PNG

Converting AVIF to PNG gives you a lossless file with the transparency intact — the format image editors, design tools and build pipelines expect when they refuse an AVIF. Nothing further is thrown away, and nothing the AVIF already discarded comes back. Expect a much larger file, and expect that to be the point.

  • Where it runs In your browser. The file is never uploaded.
  • Lossless Nothing is discarded. The PNG holds exactly what the AVIF held.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

What AVIF to PNG actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as AVIF.

AVIF17 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as PNG.

PNG139 KB8.1× larger

A photographic scene — smooth gradients, soft edges, grain. This is the case PNG is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as AVIF.

AVIF3 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as PNG.

PNG7 KB2.0× larger

A transparent background and a gradient across the shape. PNG either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as AVIF.

AVIF5 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as PNG.

PNG3 KB49% smaller

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

The reader for AVIF to PNG is about to edit the image

This is not the conversion you do to send somebody a picture. It is the one you do when the image is going into an editor, a design file or a build step — Photoshop, GIMP, Paint.NET, a sprite sheet, an app’s asset folder, a tool whose importer lists PNG and JPEG and stops there. What those destinations have in common is that the image will be worked on again, which changes what the right target format is.

Anything about to be re-encoded, layered, masked or cropped should be lossless while it is being worked on. Every additional lossy pass is paid for permanently, and the whole point of moving to PNG is that this conversion is the last one that costs anything. A JPEG would start a chain; a PNG ends it. That is the split between this page and the JPG one: the same source format, the opposite advice, because there the file is being handed to somebody and here it is being worked on.

Lossless into PNG does not undo what AVIF did

PNG has been lossless since 1996, standardised as ISO/IEC 15948, and it writes out exactly the pixels it is given. The conversion adds no compression artefacts of its own and no further softening: what the AVIF decoded to is what the PNG holds, byte for byte in the picture.

That is a narrower promise than it sounds and it is worth being precise about it. If the AVIF was compressed by a website — and almost every AVIF anyone holds was — then the smoothing, the lost fine texture and the flattened gradients are already part of the picture. A lossless container around a lossy image is still a lossy image. PNG stops the damage; it does not reverse it.

Expect the PNG to be several times the size of the AVIF

The size difference here is not a detail, it is the defining property of the pair. AVIF describes a picture as compactly as a modern video codec can manage; PNG stores every pixel and then compresses that losslessly. A few hundred kilobytes of AVIF routinely becomes several megabytes of PNG, and on a photograph the gap is at its widest, because photographs are exactly what AVIF is best at and what lossless compression is worst at.

Large files are the failure mode this registry lists against PNG, and this is where you meet it. Which makes the target worth checking: if the PNG is going back onto a web page, it is the wrong format and you have made the file five times bigger for nothing. If it is going into an editor, into a design tool or into a repository as a working asset, the size is what a lossless copy costs. It is also worth knowing before you start on a folder rather than a file, because a few hundred web images that fitted comfortably in a mail attachment will not fit in one as PNGs.

Transparency is the reason this pair exists

Both formats carry a real alpha channel, so this conversion moves transparency across with nothing lost. Soft edges, feathered shadows, antialiased type on nothing, semi-transparent overlays: all of it survives at the same precision it had in the AVIF, and no background colour has to be chosen because none has to be invented.

That is the one thing the JPEG route cannot offer at any quality setting, because JPEG has no alpha channel in its specification. If the picture you saved is a logo, an icon, a product cut-out or a UI element that has to sit on an unknown background, PNG is not a preference here, it is the only correct target among the widely accepted formats.

The tell that you needed this page rather than the JPG one is a white rectangle appearing behind something that was supposed to float. That is not a mistake in the conversion — it is JPEG doing the only thing it can with an alpha channel it has no way to store — and it cannot be undone afterwards, because by then the transparent pixels are white pixels like any other.

PNG could hold sixteen bits; this conversion hands it eight

PNG supports up to sixteen bits per channel and AVIF supports up to twelve, so on paper a high-bit-depth AVIF could survive the trip. In this engine it does not: every image is decoded into an eight-bit RGBA buffer before anything else happens, so the PNG that comes out is an eight-bit PNG whatever the source held.

For images saved off web pages that is a difference on paper only — they were eight bits per channel when they were served. It matters if the AVIF came from a camera pipeline or an HDR export and you intended to grade it afterwards, because the headroom for that grading is gone at the decode step rather than at the encode step. If you have the original, keep working from the original.

There is no quality slider on the PNG side

You will notice the control missing and it is deliberate. A lossless encoder has nothing to trade: there is no dial between fidelity and size because the fidelity is fixed at exact. The only settings that apply here are the maximum width and whether metadata is dropped.

The maximum width control is the one that actually reduces the file, and it does it honestly — fewer pixels rather than a worse description of the same pixels. It sits at 0, which keeps the original size. If the PNG is enormous and you know it will only ever be displayed at 800 pixels wide, setting that here is far better than compressing a lossless format, which is a contradiction anyway.

oxipng runs over the result afterwards

After the PNG is written it goes through oxipng at optimisation level 2, which re-examines the filtering and compression choices and rewrites the file smaller. Nothing about the picture changes — the pixels that come out are the pixels that went in — so this is free size, not a quality setting in disguise.

It is the reason a PNG from this page is usually smaller than one saved out of a graphics program that did not bother. The saving is a percentage rather than a multiple, so it does not change the arithmetic against the AVIF: a small optimised PNG is still a large file next to the AVIF it came from. Level 2 is chosen because the levels above it spend a great deal more time for a very small further gain, and this runs in a browser tab while somebody waits.

Screenshots and line art: where the AVIF was the wrong choice

PNG’s natural material is screenshots, diagrams, charts and flat artwork, and that is precisely the content AVIF handles least well. On flat colour with hard edges AVIF’s advantage narrows and it can produce a file larger than a well-made PNG of the same image, which is measured on this site’s own WebP and AVIF comparison.

So for that kind of image the conversion is often not a compromise at all. A screenshot of an interface, a bar chart, a logo, a scan of a line drawing: converting one of those from AVIF to PNG can cost far less than the general rule suggests, and the result is both lossless and universally readable. Photographs are where you pay.

PNG as a working file, AVIF as a delivery file

AVIF is a delivery format. It exists to make a page load quickly and it is regenerated whenever the page is rebuilt, which is why the formats it competes with are all delivery formats too. Nobody archives in it and no editor treats it as a project file.

PNG is on the other side of that line. It is lossless, every chunk in the file carries a CRC so corruption is detected rather than silently displayed, and it is read by everything back to the mid-nineties. If the AVIF is the only copy of an image you care about, converting it to PNG and keeping that is a defensible way to stop the copy degrading — though it is second best to finding whatever produced the AVIF in the first place.

Converting a folder of AVIFs without uploading them

The decoding and the encoding both happen in the browser tab, on your processor, so nothing is sent anywhere and there is no account, no queue and no daily allowance. The free ceiling is 100 MB per input file, which no web-delivered AVIF will approach. Drop a folder in and the results come back as a single ZIP with per-file progress.

The practical benefit is that it works on a machine that cannot open the format at all. If double-clicking the AVIF does nothing and the editor you need it in refuses to import it, the browser is the one piece of software on the machine that definitely reads it, and this runs inside the browser.

How to turn an AVIF into a PNG

  1. Drop the AVIF here — the browser decodes it even if your editor cannot.
  2. Set a maximum width if the source is larger than you need; there is no quality dial.
  3. Download the PNG, lossless and with the transparency intact.

AVIF and PNG: an approximation rewritten exactly

AVIF compared with PNG
AVIFPNG
Full nameAV1 Image File FormatPortable Network Graphics
File extension.avif.png
Media typeimage/avifimage/png
CompressionEither, depending on the settingLossless — nothing is discarded
First published20191996
Published byAlliance for Open MediaPNG Development Group
SpecificationAV1 Image File FormatISO/IEC 15948
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth1216
Colour it can describeRGB, YCbCr, wide gamutRGB, greyscale, indexed palette
Largest image65,536 px per side2,147,483,647 px per side
Opens in a browserCurrent browsersEvery browser
Considered insteadWebP, JXL, JPGWebP, SVG, JXL

What is lost

PNG holds a single still image. An animated AVIF keeps its first frame and loses the rest, so a conversion is a way to take a still out of one, not a way to move it.

What survives

Nothing is discarded. AVIF and PNG both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.

Transparency survives. Both AVIF and PNG store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

Opening the result

PNG opens in every current browser. AVIF has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

GIMP reads both AVIF and PNG, so there is a way to check the result against the original without a second tool.

What each format is for

AVIF is Alliance for Open Media's format, published in 2019. It records 12 bits per channel.

PNG comes from PNG Development Group and dates from 1996, specified as ISO/IEC 15948. Adobe Photoshop, GIMP and Paint.NET all read it.

PNG was published in 1996 and AVIF in 2019. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

AVIF to PNG: size, transparency and editing

Are my AVIF files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is jSquash, WebAssembly builds of the reference image codecs; your browser fetches it once and caches it.

Does converting AVIF to PNG lose any quality?

Nothing further is lost. PNG is lossless, so the pixels the AVIF decoded to are written out exactly. What it cannot do is undo the compression the AVIF already carried — a lossless container around a lossy image is still a lossy image.

Why is the PNG so much larger than the AVIF?

Because PNG stores every pixel exactly and AVIF stores an approximation cleverly. A few hundred kilobytes of AVIF routinely becomes several megabytes of PNG, and on a photograph the gap is at its widest. That is the price of lossless, not a fault in the conversion.

Is the transparency preserved?

Yes, completely. Both formats carry a full alpha channel, so soft edges, feathered shadows and partial transparency all survive with the same precision they had in the AVIF. This is the pair to use when a cut-out has to stay a cut-out.

Why is there no quality setting?

Because PNG has nothing to trade. Lossless means the encoder has no dial between size and fidelity, so the only controls that apply here are the maximum width and whether to drop metadata.

Should I use PNG or JPG?

PNG if you are going to edit the image, if it has transparency, or if it is a screenshot, a diagram or line art. JPG if it is a photograph you are handing to somebody and the file size matters more than a second round of compression does.

Is the image uploaded?

No. The AVIF is decoded and the PNG written inside your browser tab, so the file stays on your machine. There is no account and no daily allowance, and a folder converts in one pass into a ZIP.

More about these formats

Where these figures come from

The claims this page makes about AVIF and PNG are checkable, and these are the documents that settle them.