What Is an AVIF File? How to Open, Use and Convert It
·
You saved an image from a website and it turned out to be a .avif file that nothing wants to open. AVIF is a newer format that makes pictures much smaller, but it is not supported everywhere yet. This guide explains what it is, when it is a good idea and how to deal with it.
What AVIF is and where it comes from
AVIF stands for AV1 Image File Format. It uses the compression from the AV1 video codec, which was developed by the Alliance for Open Media, a group that includes Google, Apple, Microsoft, Netflix and Mozilla. Unlike HEIC, it is royalty free, which is a big reason websites like it.
It can store photos with some data loss or without loss, and it supports transparency, 10-bit and 12-bit color, HDR and animation. In other words, it can replace JPG, PNG and even GIF in many cases.
How AVIF compares with WebP and JPG
| Feature | AVIF | WebP | JPG |
|---|---|---|---|
| Typical size at similar quality | Smallest | Smaller than JPG | Largest of the three |
| Transparency | Yes | Yes | No |
| Animation | Yes | Yes | No |
| HDR and 10-bit color | Yes | Limited | No |
| Time to create a file | Slow | Fast | Fast |
| Support outside browsers | Limited | Good and growing | Everywhere |
At the same visual quality an AVIF photo is commonly 30 to 50 percent smaller than a JPG, and noticeably smaller than WebP too. For a website this means faster pages and lower bandwidth costs.
Pros and cons of AVIF
Pros
- Excellent compression, which means faster pages and less data.
- Supports transparency, animation and wide color, so one format covers many uses.
- Royalty free and backed by major browser makers.
Cons
- Encoding is slow, and very large images can take a while.
- Many photo viewers, editors, print shops, email clients and upload forms still do not understand it.
- Very aggressive compression can smooth out fine texture such as skin or grass.
- Slightly less universal than WebP, so you need a fallback.
Where AVIF works and where it does not
Current versions of Chrome, Edge, Firefox and Safari display AVIF in web pages, and recent Android and iOS releases can open the files. The trouble starts outside the browser: older photo viewers, many image editors, printers, email clients and upload forms still do not understand it.
That is why you often download an AVIF from a site and then cannot use it. The picture is fine. The program you are using just does not know the format.
Step by step: open or convert an AVIF file
- 1Try opening it in a current browser. Dragging the file into a Chrome, Edge, Firefox or Safari window usually shows it.
- 2Decide where it needs to go. If the destination only accepts common formats, you need to convert it.
- 3Pick the output. Choose JPG for photos and a small file with AVIF to JPG. Choose PNG when the image has transparency or sharp text with AVIF to PNG.
- 4Convert and download. A browser-based converter does the work on your device, so nothing is uploaded and it is safe for private pictures.
- 5Keep the original in case you want AVIF's smaller size later.
Should you use AVIF on your own website?
If you care about speed, it is worth considering, as long as you keep a fallback. Serve AVIF to browsers that support it and WebP or JPG to the rest, using a picture element with several sources, as shown in the responsive images guide. Test the results, because strong AVIF compression can smooth out fine texture. The format guide for websites compares all the options, and PNG to WebP is a simple first step if you prefer WebP.
Common mistakes
- Serving AVIF without a fallback, which breaks images for older browsers and tools.
- Using AVIF for files you share by email or print, where JPG is safer.
- Cranking compression too far, which removes texture and makes pictures look plastic.
- Converting AVIF to JPG and back, which loses quality each time.
Frequently asked questions
Is AVIF better than WebP?
AVIF often produces smaller files at similar quality and supports HDR, but it takes longer to create and is slightly less universal. WebP is simpler and widely supported, so many sites use WebP first and add AVIF where it helps.
Can Windows open AVIF files?
Support depends on your version and installed extensions. If a program cannot open a file, drag it into a modern browser to view it, or convert it to JPG or PNG.
Does AVIF support transparency?
Yes. That makes it a possible replacement for PNG in some cases, though PNG is still more widely accepted by software.
Is AVIF lossless?
AVIF can be saved with or without data loss, but most AVIF files on the web are lossy to keep them small.
Why do websites send AVIF when I save an image?
A site can send AVIF to browsers that support it. Your browser saves whatever it received, so the downloaded file is AVIF even though the picture looked normal on the page.