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.
| AVIF | WebP | JPG | PNG | |
|---|---|---|---|---|
| Compression | Lossy and lossless | Lossy and lossless | Lossy only | Lossless only |
| Transparency | Yes, full alpha | Yes, full alpha | No | Yes, full alpha |
| Animation | Yes | Yes | No | No (APNG is a separate format) |
| Colour depth | Up to 12 bits per channel, HDR | 8 bits per channel | 8 bits per channel | Up to 16 bits per channel |
| Browser decoding | Chrome 85+, Firefox 93+, Safari 16.4+ | Universal | Universal | Universal |
| Browser encoding via canvas | Chromium only | Universal | Universal | Universal |
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?
Is AVIF actually smaller than WebP?
What quality setting should I use?
Can everyone see an AVIF image?
How do I open an AVIF file I was sent?
Does converting to AVIF keep transparency?
Is EXIF metadata preserved?
How to use the avif converter
- 1Add one or more images — AVIF files to decode, or any other format to encode.
- 2Choose the target format; leave it on AVIF to encode.
- 3Set the quality — 50 to 65 is a normal range for AVIF photographs.
- 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
Related tools
Last updated
More image tools