Convert AVIF to PNG

A .avif decoded once by your browser and stored exactly as a .png, with a see-through background still see-through.

Format settings

AVIF · up to 20 MB

  • Processed on your device
  • No image upload
  • No account
  • No watermark
How it works

A PNG built from an AVIF stores the decoded picture exactly — no quality dial, no second round of lossy compression — and a see-through background stays see-through. That is what a design tool, an icon pipeline or a form naming PNG is actually asking for, and it is the reason to take this route rather than the lighter JPG. Resizo pins the pair at AVIF to PNG, so you add the file and press one button: the decoder already inside your browser reads it and hands the samples to a WebAssembly PNG encoder the page downloads, both running on your own device. The price is weight and a little time, and the colour arrives as 8-bit sRGB whatever the source held.

What this tool changes

Pixels
Decoded and written again
EXIF
Removed
GPS
Removed
XMP
Removed
ICC profile
Removed
DPI record
Removed — the new file claims no print size
Transparency
Kept

An AVIF is opened by your browser's own decoder rather than by code this page downloads, and that decoder hands over 8-bit sRGB samples whatever the file stored: a 10- or 12-bit picture arrives reduced to 8-bit, and a wide-gamut or HDR one arrives converted to ordinary sRGB. A file holding an animation is refused before any of it happens.

Accepts AVIF. Saves PNG.

What this changes

  • Stores the decoded frame losslessly, at the width and height the AVIF recorded.
  • Copies the alpha channel across as the decoder produced it, so a cut-out stays a cut-out.
  • Writes 8-bit sRGB samples, which is where a 10- or 12-bit source lands after the browser reads it.

What stays the same

  • No quality figure is applied, because a lossless encoder has nothing for one to change.
  • The frame is not scaled or trimmed on the way through, so the pixel count is unchanged.
  • Nothing the container held around the picture survives: capture fields, XMP, the profile, the print resolution.

How to turn an AVIF into a PNG

  1. Add the .avif. Drop it on the panel above or press Browse files. The pair is fixed at AVIF to PNG, so there is no format menu to get wrong and nothing else is accepted.
  2. Run it. Nothing needs setting first, because a lossless format has no quality to choose. Your browser decodes the picture and the encoder stores every sample it produced.
  3. Download it, then look through it. Put the download over a dark background if the transparency is the point. A white rectangle where you expected nothing means the source was already flattened, and that happened before the file ever reached you.

When PNG is the right thing to ask for

For an ordinary photograph it usually is not, and the JPG route will be both lighter and more widely accepted. Three situations change the answer.

  • The background is see-through and has to stay that way. If the picture is a logo, an app icon, a sticker or a cut-out, PNG is the output that carries its alpha channel through without composing anything behind it.
  • A run of edits is coming. One decode now, with nothing thrown away, beats re-saving a lossy file until the artefacts stack up on top of each other.
  • Something downstream has named PNG and will not negotiate — a design tool, an asset pipeline, a form written before either format existed. That decision was made somewhere out of reach, and matching it is the whole job.

What happens to the see-through background

Both formats carry an alpha channel, so the one the decoder produced is written straight into the result. Nothing is composed behind it and nothing is filled in, and a soft edge stays soft instead of turning into a hard fringe against a colour it was never sitting on.

What this page cannot do is invent the channel. If the source was flattened onto white by whatever produced it, the download holds a white rectangle, because that information is gone from the file rather than hidden inside it. Removing a background is retouching: it needs an editor with a selection tool, and changing the container around the pixels will never do it for you.

The opposite journey — a transparent picture that has to become a JPEG — means choosing a colour for it to sit on, which the AVIF to JPG page does with a control beside its button.

Where "lossless" needs a qualifier

The encoding step loses nothing. What it is faithful to, though, is the output of your browser's decoder rather than the contents of the file — and those two are not always the same thing.

  • A source may store 10 or 12 bits a channel. The decode returns 8, so a long smooth gradient can band very slightly, and the download then records that banding perfectly.
  • A picture tagged with a PQ or HLG transfer curve is brought back to ordinary range by the browser before this page is handed a single pixel, so the download looks like the picture on an ordinary screen rather than like the high-range master. On an HDR screen, the original may have looked brighter than the download.
  • A wide-gamut or profile-tagged source is converted to sRGB on the way in, and no profile is written into the download. The colours are the converted ones, which is what an ordinary screen would have shown you regardless.

A lossless copy of a photograph is heavy

The two formats are built for opposite goals: one makes pictures small, the other makes them exact. Converting between them undoes the first goal entirely. Photographic detail and sensor grain are close to random, they barely shrink under lossless compression, and the download routinely lands at many times the weight of the file that went in. Writing it takes real work too, and a few seconds of an apparently idle tab on an older phone is the tab compressing rather than stalling.

Where a ceiling on file size exists, this is the wrong output and no control on the page changes that. Take the JPG, or put the result through the compressor — which, given something lossless, can only rewrite it as WebP or hand back fewer pixels.

Limits

  • One file per run, up to 20 MB. A folder of them can go through the bulk converter instead, which reads AVIF and writes JPEG, PNG or WebP.
  • There is no quality or compression control, because a lossless encoder has nothing to expose.
  • How large a picture goes through is a question about your device rather than a policy: a full decode followed by a lossless encode needs room for several copies of the frame at once, and a phone short of free memory is told the job will not fit before anything is allocated.
  • An animated AVIF is turned away before decoding, and no page here exports the frames of one.
  • Reading the file at all needs a browser with AVIF support of its own, because this site ships no decoder for it.
  • A photograph saved as a PNG, many times heavier than it needs to be — PNG to JPG
  • Something downstream demands a PNG and will not take the JPG you have — JPG to PNG
  • Photos going onto a web page, where 30 percent off every file is the whole point — JPG to WebP
  • A transparent graphic that has to get smaller and stay transparent — PNG to WebP
  • You saved an image from a web page and now nothing on your computer will open it — WebP to JPG
  • A WebP with a see-through background, headed somewhere that will not take a WebP — WebP to PNG
  • A picture saved off a modern web page that your editor, your print shop or a form will not open — AVIF to JPG

Frequently asked questions

  • Does the PNG keep my transparent background?

    Yes, and that is the main reason this route exists. Both formats carry an alpha channel, so the one your browser's decoder produced is written straight into the download — full transparency, partial transparency and soft edges alike. Nothing is placed behind the picture, which is precisely what does happen if you take the JPG route.

  • Is the PNG really lossless if the source was lossy?

    The encoding step is lossless; the file it starts from was not. Your browser decodes the picture once and every sample it produces is stored with no quality figure applied, so what you get is an exact record of that decode rather than a recovery of how the image looked before somebody compressed it. No conversion anywhere can undo that first step.

  • Why is the download so much bigger than the file I started with?

    Because the two formats want opposite things. One borrows its compression from modern video and discards what your eye will not miss; the other discards nothing and has to encode every speck of grain across the whole frame. A photograph converted this way commonly multiplies in size.

  • My browser says it cannot open the file — why?

    Because the decoder belongs to the browser and this site ships none of its own. The browsers this site supports are Chrome 111, Firefox 111 and Safari 16.4 and later, and in any browser where Resizo cannot open the file, the panel says so at once instead of failing partway through.

  • Can I convert an animated AVIF into an animated PNG?

    No. A file whose header says it holds a sequence is recognised and turned away before decoding begins, and an animated PNG is not an output on this site in any case. Taking one still frame out of a sequence nobody asked to flatten is the sort of quiet substitution this site does not make.

  • Does the picture leave my computer?

    No. The decoder is part of your browser and the encoder arrives as a WebAssembly module the page fetches into the same tab, so the file is read and written where it already sits. Nothing about it travels, and there is nowhere for it to travel to: the build has no image endpoint at all, which is a stronger guarantee than a promise about what happens after it arrives somewhere.

You are on the Convert Format tool.