Skip to content
Convertto

AVIF Converter — Encode to AVIF or Decode AVIF to PNG, JPG and WebP

Convert images to and from AVIF in your browser, with a real encoder check so you never get a PNG renamed to .avif.

To convert an image to AVIF, add it above, leave the format on AVIF and press Run — the file is encoded by your own browser and never uploaded. Going the other way, an AVIF file converts to PNG, JPG or WebP the same way. The browser's AVIF encoder is tested before anything runs.

Runs in your browser
Privacy
Runs entirely in your browser — images are never uploaded
Encoding support
Probed at run time with a two-pixel test encode, not guessed from the user agent
Decoding support
Chrome 85+, Firefox 93+, Safari 16.4+ — effectively every current browser
Codec
AVIF stores AV1 intra-frames inside an ISOBMFF/HEIF container
Cost
Free, unlimited, no sign-up

What AVIF is

AVIF is a still image wrapped in video technology. The pixels are coded as an AV1 intra-frame — the same compression a single still frame of an AV1 video gets — and stored in the ISOBMFF container that HEIF defines, which is why an AVIF file and an iPhone HEIC file are structurally cousins despite using different codecs. The format is specified by the Alliance for Open Media and is royalty-free, which is the practical reason it spread across browsers while HEIC did not.

AVIFWebPJPGPNG
CompressionLossy and losslessLossy and losslessLossy onlyLossless only
TransparencyYes, full alphaYes, full alphaNoYes, full alpha
AnimationYesYesNoNo (APNG is a separate format)
Colour depthUp to 12 bits per channel, HDR8 bits per channel8 bits per channelUp to 16 bits per channel
Browser decodingChrome 85+, Firefox 93+, Safari 16.4+UniversalUniversalUniversal
Browser encoding via canvasChromium onlyUniversalUniversalUniversal
Encoding support is what limits this tool; decoding support is what limits who can open the result.

Why a converter can silently lie about AVIF

The HTML specification is explicit: when toBlob or convertToBlob is asked for an image type the browser cannot produce, it does not throw — it returns a PNG. A converter that takes the resulting blob, renames the file to .avif and offers it for download has produced something that is not AVIF, is several times larger than the JPG it replaced, and will still display correctly in most places because browsers sniff content rather than trusting extensions. The failure is completely invisible until someone measures their page weight.

When to use AVIF, and when not to

  • Photographs on the web, served from a <picture> element with a WebP or JPG fallback. This is where AVIF earns its keep, often at half the bytes of a comparable JPG.
  • Large hero images where the bandwidth saving is measured in hundreds of kilobytes and the fallback costs one extra <source> line.
  • Not for logos, icons or screenshots of text — flat colour and sharp edges are what lossless PNG and lossless WebP are good at, and AVIF's advantage largely disappears.
  • Not for files you are sending to someone else. Design tools, office suites and older phones still refuse AVIF regularly. Convert to PNG or JPG first.
  • Not when you need the metadata. Re-encoding through a canvas drops EXIF and ICC profiles. Use the EXIF remover if stripping metadata is the actual goal, and keep the original if it is not.
<picture>
  <source srcset="hero.avif" type="image/avif">
  <source srcset="hero.webp" type="image/webp">
  <img src="hero.jpg" alt="…" width="1600" height="900">
</picture>

The browser takes the first <source> whose type it can decode and ignores the rest, so no fallback is downloaded and nothing needs feature detection on your side. Keep the width and height attributes on the <img> regardless of which source wins — they are what reserve the space and stop the page shifting as images load.

Frequently asked questions

Why does it say my browser cannot encode AVIF?

Because it tested and found out. Writing AVIF from a canvas is currently a Chromium capability — Chrome, Edge, Brave, Opera and Arc can do it; Firefox and Safari can display AVIF but not produce it. The HTML specification says an unsupported type silently falls back to PNG, so a tool that does not check the result would hand you a PNG with an .avif extension. This one refuses instead.

Is AVIF actually smaller than WebP?

Usually, and the gap widens as quality drops. AVIF is built on AV1 intra-frame coding, which has much better prediction and transform tooling than WebP's VP8 keyframes, so it holds detail at bitrates where WebP starts to blur. On flat graphics and small images the advantage narrows and can reverse — the file sizes reported after each run are the honest answer for your images.

What quality setting should I use?

Lower than you would for JPG. AVIF at 50–65 typically looks like JPG at 80–85, and pushing to 90 or above gives up most of the size advantage for detail nobody sees. For logos, screenshots and line art, PNG or lossless WebP is usually the better choice than AVIF at any setting.

Can everyone see an AVIF image?

Every current browser can decode AVIF — Chrome since 85, Firefox since 93, Safari since 16.4. What is not guaranteed is everything else: older phones, email clients, desktop image viewers, and design and office software still commonly refuse it. Serving AVIF from a <picture> element with a JPG or WebP fallback is the safe pattern on the web.

How do I open an AVIF file I was sent?

Convert it here: add the file, choose PNG or JPG and press Run. Your browser already has the decoder, so the conversion happens on your device without an upload. That is usually quicker than installing a codec pack for the program that refused the file.

Does converting to AVIF keep transparency?

Yes. AVIF supports a full alpha channel, so a transparent PNG converts without a background being baked in. Converting to JPG is the case that cannot keep it — JPG has no alpha channel at all, so transparent areas are flattened onto the background colour you pick.

Is EXIF metadata preserved?

No. The image is decoded to pixels on a canvas and re-encoded, which drops EXIF, ICC profiles and any other metadata. That is a privacy benefit when you are publishing a photo — GPS coordinates and camera serial numbers do not survive — and a loss if you were relying on the colour profile.

How to use the avif converter

  1. 1Add one or more images — AVIF files to decode, or any other format to encode.
  2. 2Choose the target format; leave it on AVIF to encode.
  3. 3Set the quality — 50 to 65 is a normal range for AVIF photographs.
  4. 4Press Run and download the results, individually or as a zip.

Sources & specifications

Embed this tool

Put the working avif converter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More image tools