You save a photo from the web and it arrives as a .avif file. Your editor will not open it, your phone gallery shows a blank thumbnail, and you wonder whether you should have saved it as a WebP instead. Or you run a website, and you have read that AVIF files are even smaller than WebP, but you are not sure whether your visitors’ browsers can display them. Both questions have the same answer at their core: AVIF and WebP are both modern formats built for the web, and AVIF is the smaller of the two, but WebP is the safer of the two. This guide compares them in plain terms, with real file size numbers measured on this site, so you can choose correctly every time. If you already have an AVIF file that needs to become a JPG, our AVIF to JPG converter does the conversion in your browser, with no upload and no sign-up.
1. The short answer: AVIF for photos on the web, WebP for everything else
Use AVIF for photographs on a website you control, where the smallest possible file matters and every visitor uses a current browser. At the same visual quality, an AVIF file is about 20 percent smaller than a WebP file and about half the size of a JPG, according to research published by Netflix. That saving adds up across a whole page of images, and it is the reason AVIF exists. Use WebP for every other web image: graphics, logos, screenshots, thumbnails, and any image where encoding speed, editing tools, or older browsers matter. WebP is a little larger than AVIF, but it encodes far faster, opens in far more apps, and works in browsers that are years older.
That short answer covers most decisions, and the rest of this guide is the evidence behind it. A product photo on your own shop can be an AVIF, because you control the page and every visitor arrives in a modern browser. A logo with transparency can be a WebP, because WebP handles transparency well and opens in the design tools you already use. A photo you send to someone else should be neither: it should be a JPG, because JPG opens everywhere with no exceptions, and neither AVIF nor WebP can promise that. If you remember only one line, remember this: AVIF wins on file size, WebP wins on compatibility, and JPG still wins when the file has to travel beyond your control.
There is one case that decides the format for you before anything else. If the image needs to keep a transparent background, both AVIF and WebP can do it, and JPG cannot. That makes the AVIF against WebP choice a real choice for logos and graphics, while JPG is not in the running at all. If the image needs high dynamic range, or HDR, only AVIF can do it, because WebP is limited to 8-bit colour. Section 9 covers HDR and colour depth in full.
2. What AVIF is: the newest format, built on the AV1 video codec
AVIF stands for AV1 Image File Format. It is built on the AV1 video codec, the same technology that streams video on YouTube and Netflix, and it was standardized by the Alliance for Open Media, a group whose members include Google, Netflix, Apple, Mozilla, Amazon, and Meta. The AVIF 1.0 specification was published in February 2019. The idea behind it is simple: a video codec is very good at compressing a single frame of video, so take that same compression and use it for a still photograph, and the photograph comes out far smaller than a JPG or a WebP at the same quality.
AVIF is the newest of the common web image formats, and it shows in the features it carries. It supports lossy compression, which throws away detail the eye is unlikely to notice, and lossless compression, which keeps every pixel exactly. It supports transparency with an alpha channel, so parts of the image can be see-through. It supports animation, storing a sequence of frames in a file whose brand is “avis” rather than “avif”. And it supports colour depths of 8, 10, and 12 bits per channel, which means it can store far more shades of colour than the 8-bit formats, and it can store HDR images with a much wider range between the darkest and brightest parts of the picture.
You can tell an AVIF file from its contents even if the file extension is wrong. The file signature is in the first bytes of the file: bytes 4 to 7 read “ftyp”, and bytes 8 to 11 read “avif” for a still image or “avis” for an animated sequence. The converter pages on this site check that signature when they read a file, rather than trusting the extension, so a text file renamed to .avif is rejected with a clear message instead of producing a broken download.
AVIF has two honest weaknesses, and both matter in practice. The first is encoding speed. Compressing an image into AVIF takes much longer than compressing the same image into WebP or JPG, because the AV1 codec does far more work to find the smallest possible representation. Section 8 measures that difference. The second is support outside the browser. Browsers have mostly caught up, but desktop software, email clients, office programs, and upload forms have been slower, and an AVIF file that displays perfectly in Chrome may be refused by the very next app you try. That gap is closing, but it has not closed, and it is the reason WebP still has a job.
3. What WebP is: Google’s format, built from the VP8 codec
WebP is an image format developed by Google for pictures on the web. Google announced it in September 2010, building it from the VP8 video codec, with one clear goal: make web images smaller without making them look worse. Websites serve billions of images every day, and a format that shrinks each image by a quarter or a third saves an enormous amount of loading time and bandwidth. That is why so many websites now serve WebP versions of their images by default, and why so many of the files you download from the web arrive with a .webp extension even when you never asked for one.
WebP is unusual because it does two jobs in a single format. It supports lossy compression, like JPG, which throws away detail the eye is unlikely to notice in order to shrink the file. It also supports lossless compression, like PNG, which keeps every pixel exactly. One format can therefore cover jobs that used to need two different formats. A photograph can be a lossy WebP, small and good looking. A logo can be a lossless WebP, exact and transparent. No other common format from the same era does both.
The format also handles transparency with an alpha channel, so a WebP image can have see-through areas just like a PNG. It can even be animated, like a GIF, although most WebP files you download from a website are still pictures, not animations. And it stores colour at 8 bits per channel, the same as JPG, which means 256 levels each of red, green, and blue, or about 16.7 million possible colours in total. That is more than enough for a photograph, which is why WebP photos look natural, but it is also the hard limit of the format: WebP cannot store the deeper colour or the HDR range that AVIF can.
Google published figures for the size saving, and the numbers are specific. Lossy WebP is roughly 25 to 34 percent smaller than a comparable JPG, and lossless WebP is about 26 percent smaller than a comparable PNG. Those are Google’s own published figures, and they match what the converter pages on this site report. The saving comes from a more modern compression method than the one JPG uses. JPG was published in 1992, and its compression was designed for the computers of that time. WebP was designed nearly twenty years later, with better maths and more computing power available, so it squeezes the same picture into fewer bytes.
WebP has one honest weakness, and it is the same one AVIF has, only smaller. It is acceptance outside the browser. Browsers have supported WebP for years, but older desktop software, email clients, office programs, and upload forms have been slower to catch up. A WebP file that displays perfectly in Chrome may be refused by an older photo editor on the same computer, or by a job portal upload form that only lists JPG and PNG as accepted formats. That gap is closing every year, but it has not closed completely. The difference from AVIF is that WebP has had a ten year head start, so the gap is much smaller.
4. File size head to head: the measured numbers
The table below puts the two formats side by side on the points that decide a real choice. Read it as a checklist rather than a scoreboard. Neither format wins overall. AVIF wins on file size and colour depth. WebP wins on speed, tools, and support. Each one wins the job it was designed for.
| Feature | AVIF | WebP |
|---|---|---|
| Compression | Lossy or lossless, both in one format | Lossy or lossless, both in one format |
| File size for photos | Smaller, about 50 percent smaller than JPG and about 20 percent smaller than WebP at the same quality | Smaller than JPG, typically 25 to 35 percent smaller, but larger than AVIF |
| Image quality | Very good, often the best quality per byte of any web format | Very good at similar quality, slightly larger file for the same look |
| Transparency | Full alpha channel, including soft and partial transparency | Full alpha channel, including soft and partial transparency |
| Animation | Yes, sequences stored as “avis” files | Yes, WebP can be animated like GIF |
| Colour depth | 8, 10, or 12 bits per channel, HDR and wide colour gamut | 8 bits per channel only, about 16.7 million colours, no HDR |
| Encoding speed | Slow, several times slower than WebP | Fast, a fraction of a second for most images |
| Browser support | All current browsers: Chrome 85 and later, Firefox 93 and later, Safari 16 and later, Edge 121 and later | All current browsers: Chrome, Edge, Firefox, Safari 14 and later, Opera |
| App and device support | Uneven, many older apps and upload forms refuse AVIF | Good in modern apps, still uneven in older software and office programs |
| Best for | Website photos where the smallest file matters, HDR images | Website images of every kind, graphics, fast workflows |
| Year published | 2019 | 2010 |
Two rows of that table do most of the work. The file size row explains why websites are switching to AVIF, and the encoding speed row explains why they are not switching faster. The rest of this section puts real numbers behind the file size row, with the arithmetic shown in full so you can check it yourself.
Example 1: an AVIF photo converted to JPG, from the AVIF to JPG converter page. The test image is a 200 by 150 pixel AVIF weighing 1.2 KB. Convert it to JPG at quality 90, the converter’s default, and the JPG weighs 6.8 KB. The JPG is larger because JPG compresses far less efficiently than AVIF. Divide 6.8 by 1.2 and you get 5.67, so the JPG is about 5.7 times larger than the AVIF, for the same picture at the same size. Convert the same AVIF to JPG at quality 10 instead, and the JPG weighs 2.4 KB, which is exactly twice the AVIF, because 2.4 divided by 1.2 is 2.0. Even at the lowest quality setting, where the JPG looks visibly damaged, it is still twice the size of the AVIF. The quality 90 JPG is 6.8 divided by 2.4, which is 2.83, so about 2.8 times larger than the quality 10 JPG. The lesson is plain: AVIF stores a small photo in far fewer bytes than JPG, and no quality setting closes the gap.
Example 2: an AVIF photo converted to PNG, from the AVIF to PNG converter page. The same kind of test, with a 200 by 150 pixel AVIF weighing 1,194 bytes, becomes a PNG of 4,302 bytes. Divide 4,302 by 1,194 and you get 3.60, so the PNG is about 3.6 times larger than the AVIF. The increase is 4,302 minus 1,194, which is 3,108 bytes, and 3,108 divided by 1,194 is 2.60, so the PNG is about 260 percent larger. The conversion changes nothing about the picture itself: there is zero quality change, because PNG is lossless, and transparency is kept, because PNG stores the alpha channel. What changes is the file size, and the AVIF is far smaller because it compresses the same pixels with a much newer method. If you need a PNG for an app that cannot open AVIF, the converter gives you one, but you pay for it in bytes.
Example 3: a WebP photo converted to JPG, from the WebP to JPG converter page. A product photo saved from an online store lands on your computer as a WebP and weighs 240 KB. Drop it into the converter and you download a JPG at about 310 KB. The JPG is larger because JPG compresses less efficiently than WebP. The increase is 310 minus 240, which is 70 KB, and 70 divided by 240 is 0.292, so the JPG is about 29 percent larger than the WebP. Look at it the other way: the WebP is 70 KB smaller, and 70 divided by 310 is 0.226, so the WebP is about 23 percent smaller than the JPG. That sits just below the typical range of 25 to 35 percent smaller, because this particular photo compresses well in both formats. Now compare that with example 1. The AVIF in example 1 came out nearly six times smaller than its JPG, while the WebP in example 3 came out less than a third smaller than its JPG. The two examples use different photos, so the numbers are not directly comparable, but the direction is clear: AVIF compresses harder than WebP, and WebP compresses harder than JPG.
Example 4: the published research figures, from Netflix. Netflix published a study of AVIF in 2020, comparing the formats at the same visual quality, measured with perceptual quality metrics. The study found that AVIF files were about 50 percent smaller than JPEG files and about 20 percent smaller than WebP files, at the same perceived quality. Those are the figures most guides quote, and they are the reason AVIF is described as the best compression available for web images. Put the numbers on a single photo to see what they mean. Take a photo that is 100 KB as a JPG. As a WebP at the same quality it is about 70 KB, which is 30 percent smaller, inside the usual 25 to 35 percent range. As an AVIF at the same quality it is about 56 KB, which is 20 percent smaller than the WebP, because 56 divided by 70 is 0.8, and 44 percent smaller than the JPG, because 56 divided by 100 is 0.56. The AVIF is not half the WebP. It is a fifth smaller. That fifth is real, and it matters across a whole website, but it is not the dramatic gap that the AVIF against JPG comparison shows.
Example 5: a whole web page of photos, using the figures from example 4. Imagine a shop page with ten product photos, each one 100 KB as a JPG, 70 KB as a WebP, and 56 KB as an AVIF. As JPG, the ten photos together are 10 times 100, which is 1,000 KB. As WebP, they are 10 times 70, which is 700 KB. As AVIF, they are 10 times 56, which is 560 KB. Switching from JPG to WebP saves 300 KB, and switching from WebP to AVIF saves a further 140 KB. The AVIF page carries 440 KB less than the JPG page, and 440 divided by 1,000 is 0.44, so it is 44 percent lighter. On a fast connection that is a fraction of a second. On a slow mobile connection it is the difference between a page that appears promptly and a page that keeps the visitor waiting. Multiply that across every page of a shop, and the saving is the reason websites are moving to AVIF for their photos.
There is one exception to the rule that AVIF is always smaller, and it is worth knowing. For very small images, the AVIF container itself takes up space, and that overhead can make the file larger than an equivalent WebP or even a JPG. Below roughly 100 by 100 pixels, an AVIF icon or thumbnail may come out larger than the WebP version of the same image. The effect is small in absolute terms, a few hundred bytes, but it means AVIF is not the right choice for tiny icons and favicons. For those, WebP or PNG is usually smaller. The rule is simple: use AVIF for photographs and larger images, where the compression advantage is large, and do not bother with it for tiny graphics, where the advantage disappears.
The pattern across all five examples is consistent. AVIF is the smallest format for photographs at the same visible quality, WebP is next, and JPG is last. The gap between AVIF and WebP is about a fifth, and the gap between WebP and JPG is about a third. Those gaps are large enough to matter on a website, where ten or twenty images add up, and small enough that the choice still depends on what else you need, which is what the rest of this guide covers.
5. Quality and detail: lossy, lossless, and what you actually lose
Both AVIF and WebP, in their usual settings, are lossy formats. That means they shrink a file by throwing away image detail permanently. The detail they throw away is detail the human eye is unlikely to notice: subtle texture in a smooth sky, faint variation in a shadow, tiny colour shifts in a busy background. At a sensible quality setting, the missing detail is hard to spot, and the file is much smaller. At a low quality setting, the damage becomes visible as blocky patches, soft edges, and banding across smooth gradients.
The difference between the formats is not whether they lose detail, but how much detail they lose for a given file size. AVIF’s codec is newer and does more work, so at the same file size an AVIF image usually looks better than a WebP image, and at the same quality an AVIF image is usually smaller. That is the finding of the Netflix study in section 4, and it is the finding of independent tests that compare the formats at matched file sizes. A sunset photo encoded to about 80 KB in each format shows the difference clearly: the JPG version shows visible artifacts in the sky and the water, while the WebP and AVIF versions stay clean, and the AVIF version holds the fine detail best. The gap is not huge, but it is visible when you look closely, and it is the reason photographers who care about quality per byte prefer AVIF.
Both formats also offer a lossless mode, which keeps every pixel exactly. A lossless AVIF keeps the same pixels as a lossless WebP, and both keep the same pixels as a PNG, so the picture is identical in all three. What differs is the file size, and here the answer is less one-sided than in lossy mode. Lossless WebP is about 26 percent smaller than a comparable PNG, according to Google’s published figures. Lossless AVIF is usually smaller still, but not always: there are images, especially simple graphics with flat colours, where lossless WebP comes out smaller than lossless AVIF. If exactness matters and file size matters, test both on your own images rather than assuming AVIF always wins. For most photographs, lossy AVIF at a high quality setting is the better choice anyway, because it is far smaller than any lossless version and the difference is invisible.
There is a practical habit that follows from all of this. Keep the original file. If your camera saved a JPG, keep that JPG untouched in a folder you do not edit, and make every resized, cropped, or compressed version from it. If you edited a photo in an editor, keep the editor’s own project file or a lossless copy as the master, and export a fresh AVIF or WebP only at the end, when the image is finished. Never edit the only copy of a photo, and never re-save a lossy file that has already been through several rounds of saving. The original is the only version that has all the detail, and once it is gone, it cannot be recovered.
Converting between the formats also costs a little quality, and it is worth understanding why. AVIF is usually a lossy format, and re-encoding it as a JPG is another lossy step. At normal quality settings the difference is invisible, but the conversion does not restore detail, and it does not add any. An AVIF converted to JPG is a copy of the AVIF as it is now, with one more round of compression on top. The same applies in reverse: a JPG converted to AVIF does not gain back the detail the JPG lost when it was first saved. Conversion changes the container and the compatibility. It never improves the picture. If you need the best quality, go back to the original file and export a fresh copy at a high quality setting. Our guide on JPG vs PNG makes the same point for the older formats, and the principle is identical here.
The quality setting itself is simple to use once you know the ranges. On the converter pages on this site, JPG output uses a quality of 90 by default, which keeps photos sharp while keeping the file reasonably small. Use 90 to 95 when you want to preserve as much detail as possible, for example for portfolio images. Use 60 to 75 for web thumbnails and blog illustrations, where loading speed matters most. Reserve anything below 50 for drafts and placeholders, where tiny file size matters more than fidelity. There is no single correct number. There is a trade between size and quality, and the right point on that trade depends on who will look at the image and how closely.
6. Transparency: both formats keep it, JPG cannot
Transparency is the one feature where AVIF and WebP are equals. Both formats have an alpha channel, an extra layer of data that says how see-through each pixel is. A pixel can be fully solid, fully transparent, or any level in between, which allows smooth, soft edges around a logo or a cutout, with no white fringe. JPG has no alpha channel at all, so every JPG pixel has a solid colour, and a JPG is always fully opaque, edge to edge.
This matters whenever an image needs to sit on top of something else: a logo over a coloured website header, a product cutout over a banner, a sticker over a photo, a watermark over an image. Save that image as an AVIF or a WebP and the transparent areas stay transparent. Save it as a JPG and the transparent areas become a solid colour, usually white. The image still looks fine on a white page, but place it on a dark background and the white box appears around it, and the logo looks like a mistake.
Converting an AVIF to a JPG flattens transparency to white, and that is a one-way trip. The Pixel File AVIF to JPG converter states this plainly on the page, and the AVIF to PNG converter shows the other side of the same rule: a 200 by 150 AVIF weighing 1,194 bytes became a 4,302-byte PNG with transparency kept, because PNG stores the alpha channel. If your AVIF image has a transparent background and you need to keep it, do not convert it to JPG. Convert it to PNG instead, which keeps the alpha channel, or keep it as an AVIF or a WebP. The same warning applies to the general converter on this site, which turns PNG, WebP, GIF, and BMP into JPG: transparent areas in any of those formats become white in the JPG output.
There is one thing converting to AVIF or WebP cannot do, and it is the mirror image of the same rule. Neither format can create transparency that was not there. A photo with no transparent pixels produces a fully opaque AVIF, just stored in a format that supports transparency. Conversion preserves what the source had. It does not invent anything new. If you have a JPG logo on a white background and you want a transparent version, converting it to AVIF or WebP will not help. You need to open it in an image editor, remove the white background, and save the result as an AVIF, a WebP, or a PNG.
For websites, transparency is one of the strongest reasons to choose a modern format over JPG for graphics. A website header, a navigation bar, a product badge, or an icon set will usually sit on a coloured background, and a transparent AVIF or WebP sits cleanly on any of them. A JPG version of the same graphic carries its white rectangle everywhere it goes. For photographs, transparency does not matter, because photographs never need it. But for any graphic that must blend into a page, AVIF and WebP both do the job, and JPG simply cannot. Between the two modern formats, the choice for a transparent graphic usually comes down to support: WebP opens in more design tools today, so it is the safer pick for a logo you will keep editing, while AVIF is the better pick for a finished graphic served on a website.
7. Browser and app support: where each format works
Browser support for AVIF has arrived, but it arrived later than WebP, and the gap still matters. The table below shows when each browser added each format. Read it as a timeline: WebP had a decade to spread before AVIF existed, and AVIF only finished covering all current browsers in early 2024.
| Browser | WebP support since | AVIF support since |
|---|---|---|
| Chrome | Version 9, 2011 | Version 85, August 2020 |
| Edge | Version 18, 2018 | Version 121, January 2024 |
| Firefox | Version 65, January 2019 | Version 93, October 2021 |
| Safari | Version 14, September 2020 | Version 16, September 2022, full support from 16.4, March 2023 |
| Opera | Version 12.10, 2012 | Version 71, 2020 |
| Internet Explorer | Never | Never |
That timeline is the whole story of AVIF support. Chrome added AVIF in version 85 in August 2020, Firefox followed in version 93 in October 2021, Safari followed in version 16 in September 2022, with full support from version 16.4 in March 2023, and Edge was the last of the current browsers, adding AVIF in version 121 in January 2024. Since then, every current browser displays AVIF natively, with no plug-in needed. Can I Use puts AVIF support at roughly 94 to 97 percent of users worldwide, depending on the measurement date, and WebP a little higher. For a website, that is good enough to serve AVIF as the first choice, as long as the page also offers a WebP or JPG fallback for the small share of visitors on older browsers.
That is the browser story. The app story is different, and it is the reason this guide keeps coming back to the same warning. Support for AVIF is decided app by app, not device by device. Your browser may display an AVIF perfectly while your email client, your office program, your print shop’s upload form, or an older photo editor refuses the same file. That does not mean the file is corrupt, and it does not mean your device is broken. It means that one app has not added AVIF support, or its upload rules only list JPG and PNG. If you downloaded a picture and ended up with a .avif file that your usual app refuses to open, the fastest test is always the same: drag the file into a current browser tab. If the picture appears there, the file is good and the app you tried first is the problem.
WebP is further along the same road. On current devices, the built-in viewers mostly handle WebP now. Updated Windows 10 and Windows 11 installations open WebP files in the Photos app, and File Explorer shows thumbnails for them. On a Mac, Preview opens WebP files on macOS Big Sur and later, and Quick Look shows them with a press of the space bar. On Android, WebP is a native format, and the gallery or Google Photos app opens WebP pictures. On iPhone and iPad, the Photos app opens WebP files on iOS 14 and later. AVIF is catching up on the same devices, but it is years behind, and on an older phone or an older operating system it may not open at all. If your device is older than the versions above, updating the operating system is the cleanest fix, because both formats arrived with those updates.
JPG support has no such history to explain, because it has no gaps. Every browser ever made displays JPG. Every phone, every email program, every social media platform, every printer, every image editor, and every upload form accepts JPG. Internet Explorer, which never supported WebP or AVIF at all, opens JPG without a thought. An old office version from before either modern format existed opens JPG without a thought. That universality is JPG’s whole advantage, and it is a large one. When the recipient is unknown, when the app is unknown, or when the file must work first time with no troubleshooting, JPG is the format that guarantees it.
For a website, the practical consequence is simple, and it is the standard pattern every major site uses. Serve AVIF first, with WebP as the fallback, and JPG as the last resort. The browser picks the first format it understands, so a current browser gets the smallest file, an older browser gets the WebP, and the oldest visitor still gets a working JPG. You do not have to pick one format for everything. You pick AVIF where you control the viewing and the visitor uses a current browser, WebP where you need wider support, and JPG where you do not control the destination at all, and the same image can exist in all three forms without any conflict.
8. Encoding speed and effort: AVIF is slow, WebP is fast
AVIF’s compression advantage has a cost, and the cost is time. Compressing an image into AVIF takes much longer than compressing the same image into WebP or JPG, because the AV1 codec does far more work to find the smallest possible representation. The difference is large enough to change how you work, not just how long you wait.
One independent test measured it directly. The test encoded the same photograph to the same target file size of about 80 KB in each format, so the comparison was fair. The JPG took 191 milliseconds. The WebP took 303 milliseconds. The AVIF took 1,417 milliseconds. Divide 1,417 by 303 and you get 4.68, so the AVIF took about 4.7 times as long as the WebP. Divide 1,417 by 191 and you get 7.42, so the AVIF took about 7.4 times as long as the JPG. Those numbers come from one test on one machine, and the exact figures will differ on other hardware, but the direction is consistent across every test: AVIF encoding is several times slower than WebP, and WebP is a little slower than JPG.
For a single image, that difference does not matter. A second and a half instead of a third of a second is nothing when you are converting one photo by hand. For a website with thousands of images, it matters a great deal. A shop that converts 1,000 product photos to WebP spends about five minutes of computer time. Converting the same 1,000 photos to AVIF at the speed in that test spends about twenty-four minutes. A site that generates images on demand, when a visitor requests them, cannot afford AVIF at all, because the visitor would wait over a second for each image. A site that converts its images once, in advance, and then serves the finished files, can afford AVIF easily, because the slow step happens once and the fast loading benefits every visitor after that.
Decoding speed is a different question, and the answer is kinder to AVIF. Opening an AVIF file in a browser is fast enough that visitors do not notice it, and on modern phones the decoding is handled well. The slow step is encoding, not decoding, which is why AVIF works well for images that are prepared in advance and served many times, and badly for images that must be created on the spot. WebP has no such problem: it encodes fast enough for on-demand work, for live uploads, and for tools that convert a file while the user waits.
There is a practical rule that follows from this. If you are converting images yourself, in a browser tool, use WebP when you want the result quickly and AVIF when you want the smallest file and can wait. If you run a website, convert your photos to AVIF once, in a batch, and serve the finished files. If you build a tool that converts images for other people, offer WebP as the default, because nobody wants to wait, and offer AVIF as an option for the users who care about size. And if you are choosing a format for screenshots or graphics that you will edit and re-save often, pick WebP, because re-encoding an AVIF after every small edit wastes time for no visible gain.
9. HDR and colour depth: the gap WebP cannot close
Colour depth is the clearest technical gap between the two formats, and it is the one gap that no settings change can close. WebP stores colour at 8 bits per channel, which means 256 levels each of red, green, and blue, or about 16.7 million possible colours in total. That is more than enough for an ordinary photograph, which is why WebP photos look natural. But it is a hard limit. A WebP image can never store more than 256 shades of red, and a smooth gradient across a sky can show visible bands where one shade steps to the next.
AVIF stores colour at 8, 10, or 12 bits per channel. At 10 bits per channel there are 1,024 levels of each colour, which multiplies out to about 1.07 billion possible colours. At 12 bits per channel there are 4,096 levels of each colour, which multiplies out to about 68.7 billion possible colours. Those extra levels mean smoother gradients, finer detail in shadows and highlights, and no visible banding in a sky or a sunset, even after compression. For ordinary viewing on an ordinary screen the difference is subtle, but for a photograph that will be edited, printed, or shown on a high-end display, it is real.
That extra depth is what makes HDR possible. HDR, or high dynamic range, is a way of storing a much wider range between the darkest and brightest parts of a picture, so a photo can hold detail in a bright window and a dark room at the same time. AVIF supports HDR. WebP does not. A WebP image is always a standard dynamic range image, no matter what the original photo held. An AVIF image can keep the HDR information from a modern phone camera, so the photo looks the way it did on the camera screen when it is shown on an HDR display.
AVIF also supports a wide colour gamut, which means it can store colours outside the range of an ordinary screen, including the vivid greens and reds that a modern camera can capture. WebP is limited to the standard colour range. For most images on most screens, the standard range is enough, and the extra colours in an AVIF are invisible. For a photograph taken on a modern phone and shown on a modern display, the wide gamut keeps colours that WebP would have to clip away.
None of this matters if the screen cannot show it. An HDR AVIF shown on an ordinary screen looks like an ordinary photo, because the screen cannot display the extra range. The benefit appears only when the whole chain supports it: a camera that captured HDR, a file format that stored it, and a display that can show it. AVIF is the only web format in this comparison that carries that chain. If you take photos on a modern phone and you care about keeping their full quality, AVIF is the format that preserves it, and WebP is the format that throws part of it away.
10. Animation: both can move, neither replaces GIF or video
Both AVIF and WebP can be animated, and both do it better than GIF in one respect: file size. A WebP animation stores each frame with modern compression, so it is usually far smaller than the same animation as a GIF. An AVIF animation stores its frames with the AV1 codec, so it is usually smaller still. For a short loop on a website, such as a loading spinner or a small animated illustration, either format beats GIF on size, and both keep better colour than GIF, which is limited to 256 colours per frame.
The difference between them is support and tooling. Animated WebP has been around since 2010, and most browsers and many tools can play it. Animated AVIF is newer, and support is thinner: browsers can play it, but fewer editors and converters can create it, and fewer apps recognise the “avis” brand that marks an animated AVIF file. If you need an animation that works in the most places today, WebP is the safer choice. If you need the smallest possible animation and you control the viewing, AVIF is the better choice.
Neither format replaces video for real motion. A short clip of a person talking, a product turning, or a scene changing is a video, and it belongs in a video format, not in an animated image. Animated images are for loops of a few seconds with simple motion. A long animation stored as AVIF or WebP is a large file that plays badly, while the same clip as a video is smaller, smoother, and easier to control. The rule is simple: if it moves like a picture, use an animated image. If it moves like a film, use video.
Converting an animated GIF to WebP is a common job, and the GIF to WebP converter on this site does it in the browser, keeping the first frame of an animated GIF and preserving transparency. That converter is for still images: it takes the first frame and saves it as a WebP, which is the right result when the GIF is really a still picture that happens to be stored as a GIF. If the GIF is animated and the motion matters, keep the GIF, because converting to WebP keeps only the first frame and the motion is lost. The same warning applies to AVIF: converting an animated GIF to a still AVIF keeps one frame and discards the rest. Animation is a property of the file, not of the picture, and converting to a still format always loses it.
11. When to use AVIF: photos, HDR, and pages where size matters most
Use AVIF for photographs on a website you control. That includes blog article images, hero images, product photos, category thumbnails, and any picture served to visitors in a modern browser. The smaller files make the page load faster, the quality is the best available per byte, and every current browser displays the images. If you run a website, a blog, or an online shop, your photographs should be AVIF unless there is a specific reason they should not be, and the specific reasons are covered in the next section.
Use AVIF for HDR photographs and images with a wide colour gamut. A photo taken on a modern phone holds more colour and more range than WebP can store, and converting it to WebP throws that information away. An AVIF keeps it. If you publish photographs that were shot in HDR, or you serve images to visitors on HDR displays, AVIF is the only format in this comparison that carries the full quality through to the screen.
Use AVIF when you are storing a large number of web photographs. A blog with hundreds of article images, or a shop with thousands of product photos, pays the file size difference on every page load and every backup. At about a fifth smaller per image than WebP, a library of 1,000 photos at 70 KB each as WebP takes about 70 MB of storage, while the same library at 56 KB each as AVIF takes about 56 MB. That difference matters on a server bill, a backup drive, and a content delivery network, and it grows with the library. The figures are smaller than the JPG comparison, because WebP is already efficient, but the saving is still real money on a large site.
Use AVIF for images you will serve but not share as files. A blog photo is viewed, not downloaded and re-uploaded. A product photo is viewed on the shop page, not attached to an email. In those cases the compatibility gap does not matter, because the visitor never handles the file directly. The browser does, and the browser supports AVIF. Keep the original file as your master copy, serve the AVIF on the page, and make WebP or JPG copies only for the destinations that demand them.
Use AVIF when the image is large enough for the compression advantage to matter. The saving is a percentage, so it is biggest on large photographs and smallest on tiny graphics. A 500 KB photograph becomes about 100 KB smaller as an AVIF instead of a WebP, which is worth having. A 5 KB icon becomes about 1 KB smaller, which is not worth the slower encoding or the weaker support, and below roughly 100 by 100 pixels the AVIF may even be larger. Save AVIF for the images where the saving is measured in kilobytes, not bytes.
12. When to use WebP: graphics, workflows, and everything that must just work
Use WebP for any image where encoding speed matters. If you convert images on demand, when a visitor requests them, or in a tool that converts while the user waits, WebP finishes in a fraction of a second while AVIF takes several times longer. A live upload, a batch conversion of hundreds of files, or a workflow that re-encodes images after every edit all favour WebP, because the time saving is felt on every single file.
Use WebP for graphics, logos, screenshots, and illustrations. These images have flat colours, sharp edges, and text, and they compress well in WebP. They also need to open in design tools, and WebP opens in far more editors than AVIF does today. A logo you will keep editing belongs in a format your tools understand, and that format is WebP. A screenshot you will annotate and re-save belongs in WebP for the same reason. Save AVIF for finished photographs, and keep working graphics in WebP.
Use WebP for images that must work in older browsers. Safari 14 from September 2020 displays WebP, while AVIF needs Safari 16 from September 2022, and Edge needs version 121 from January 2024. If your visitors include people on older phones, older computers, or older browsers, WebP reaches them and AVIF does not. The gap is only a few years, but on a website with a wide audience, a few years covers a large share of real visitors.
Use WebP as the fallback behind AVIF. The standard pattern is to serve AVIF first and WebP second, so a current browser gets the smallest file and an older browser still gets a modern, efficient image instead of falling back to JPG. That pattern gives you the AVIF saving where it is available and the WebP compatibility where it is not, with no extra work beyond generating both versions once. If you can only generate one modern format, generate WebP, because it reaches more visitors.
Use WebP for tiny images. Below roughly 100 by 100 pixels, the AVIF container overhead can make the file larger than the WebP version, so icons, favicons, and small thumbnails are usually smaller as WebP. The difference is a few hundred bytes per image, but across a page full of icons it adds up, and there is no reason to pay it. For anything small, WebP is the better format on size as well as on support.
13. Converting between AVIF and WebP: what changes, and how to do it
Converting between AVIF and WebP is easy when you have the right tool, and the tools on this site do it in your browser, with no upload and no sign-up. The direction matters, because each conversion changes something, and the changes are worth knowing before you convert.
Converting an AVIF to a JPG is the most common job, because it solves the compatibility problem in one step. The AVIF to JPG converter on this site loads the AVIF image onto a canvas in your browser, then re-encodes it as a JPEG at quality 90, with files up to 25 MB and a quality slider from 10 to 100. No file is ever uploaded to a server, so your images stay private on your device. Three things change in the conversion. First, the file usually gets much larger: the measured test in section 4 showed a 1.2 KB AVIF becoming a 6.8 KB JPG at quality 90, about 5.7 times larger. Second, transparency is flattened to white, because JPG has no way to store it. Third, quality drops very slightly, because AVIF is usually a lossy format and re-encoding it as a JPG is another lossy step. At quality 90 the difference is invisible unless you zoom in and compare pixel by pixel, but the conversion does not restore detail, and it does not add any.
Converting an AVIF to a PNG is the right choice when the image has transparency that must be kept. The AVIF to PNG converter on this site does that conversion in the browser, keeping the alpha channel, so a transparent AVIF becomes a transparent PNG. The measured test in section 4 showed a 1,194-byte AVIF becoming a 4,302-byte PNG, about 3.6 times larger, with zero quality change. The PNG is larger because PNG compresses less efficiently than AVIF, but it opens in every app, and it keeps the transparency that a JPG would destroy. Use PNG when the destination needs a format that keeps transparency and cannot open AVIF.
Converting a WebP to a JPG is the same job for the older format. The WebP to JPG converter on this site does it in the browser, with files up to 25 MB, and the measured test in section 4 showed a 240 KB WebP becoming a 310 KB JPG, about 29 percent larger. Transparency is flattened to white, for the same reason as with AVIF, and quality drops very slightly, because WebP is usually lossy and re-encoding it as a JPG is another lossy step. If you have several files in different formats, or you are not sure which format each file really is, the file converter to JPG on this site accepts PNG, WebP, GIF, and BMP together, up to 20 files at a time and 25 MB each, and converts the whole batch to JPG in your browser. It detects the real format of every file by reading its file header, not just its extension, so a text file renamed to .png is rejected with a clear message.
Converting a JPG or a WebP to AVIF is the opposite journey, and it is the one that saves file size. No converter on this site produces AVIF output yet, because browsers cannot encode AVIF, so the conversion has to be done in a desktop tool or an online service that runs the AV1 encoder on a server. When you do it, remember the same warnings in reverse. The conversion does not restore the detail the JPG lost when it was first saved, and a JPG converted to AVIF and then back to JPG loses a little more at each step. Convert from the original file whenever you can, rather than converting a file that has already been converted, because each lossy step discards a little more detail that cannot be recovered. And expect the conversion to take time: AVIF encoding is several times slower than WebP, so a batch of photographs takes minutes, not seconds.
Before you convert in either direction, check the image for transparency. Open it and look at the background. If the background is a checkerboard pattern in your editor, that pattern means transparency, and converting to JPG will replace it with white. If the image is a screenshot, check whether any part of it is meant to show through. If the answer is no, convert freely. If the answer is yes, keep the AVIF or WebP, or convert to PNG, or flatten the transparency onto the colour you actually want before converting, rather than letting the converter choose white for you.
There is one more conversion mistake worth avoiding, and it is the most common one. Do not convert a JPG to AVIF, or a JPG to WebP, in the hope of improving quality. The conversion copies the JPG exactly as it is, including its compression artifacts, soft edges, and lost detail. The detail that JPEG compression removed when the JPG was first saved is gone, and no converter can bring it back. The AVIF or WebP is a smaller copy of the current quality, not an improvement on it. For better quality, go back to the original file and export a fresh copy at a higher quality setting. Our guide on WebP vs JPG makes the same point for the older pair, and the principle is identical here.
14. Frequently Asked Questions
Which is better, AVIF or WebP?
AVIF is better for photographs on a website you control, because it is about 20 percent smaller than WebP and about 50 percent smaller than JPG at the same visual quality, and it supports HDR and deeper colour. WebP is better for graphics, fast workflows, and older browsers, because it encodes several times faster, opens in more apps, and works in browsers back to 2011. For a website, serve AVIF first with WebP as the fallback, so every visitor gets the best format their browser can display.
Is AVIF smaller than WebP?
Yes. Netflix research found AVIF about 20 percent smaller than WebP at the same visual quality, and about 50 percent smaller than JPG. A real example from this site shows the scale: a 200 by 150 AVIF weighing 1.2 KB became a 6.8 KB JPG at quality 90, about 5.7 times larger. The saving varies with the image, but AVIF is smaller in almost every real case, except for very small images below roughly 100 by 100 pixels, where the AVIF container overhead can make it larger than the WebP version.
Does AVIF work in all browsers?
AVIF works in all current browsers: Chrome 85 and later, Firefox 93 and later, Safari 16 and later, and Edge 121 and later. Safari support is full from version 16.4. Older browsers cannot display it: Internet Explorer never did, and Safari 15 and older cannot show AVIF. Can I Use puts AVIF support at roughly 94 to 97 percent of users worldwide. For a website, serve AVIF with a WebP or JPG fallback for the small share of visitors on older browsers.
Should I use AVIF on my website?
Yes, for photographs, if you also provide a fallback. Serve AVIF first, with WebP as the fallback and JPG as the last resort, so current browsers get the smallest file and older browsers still get a working image. Convert your photos once, in advance, because AVIF encoding is slow. Keep the original files as your master copies. Do not use AVIF as your only format, because a small share of visitors on older browsers would see nothing.
Does converting AVIF to JPG lose quality?
Slightly, but not visibly in most cases. AVIF is usually a lossy format, and re-encoding it as JPG is another lossy step, so there is a small generation loss. At the quality level the converter on this site uses, quality 90, the difference is invisible unless you zoom in and compare pixel by pixel. The conversion also flattens any transparency to white, because JPG cannot store transparency, and it makes the file much larger: a 1.2 KB AVIF became a 6.8 KB JPG at quality 90 in the test on this site. The result is a file that trades a tiny amount of fidelity and a lot of size for universal compatibility.
Can AVIF do transparency and animation?
Yes to both. AVIF has a full alpha channel, so parts of an image can be see-through, just like WebP and PNG. It also supports animation, storing a sequence of frames in a file marked with the avis brand rather than the avif brand. WebP can do both as well. The difference is support: animated WebP works in more apps today, while animated AVIF is newer and fewer tools can create it. For a still image with transparency, either format works. For animation, WebP is the safer choice today.
Why is my AVIF file bigger than the WebP version?
For very small images, the AVIF container itself takes up space, and that overhead can make the file larger than an equivalent WebP or even a JPG. Below roughly 100 by 100 pixels, an AVIF icon or thumbnail may come out larger than the WebP version of the same image. The effect is small in absolute terms, a few hundred bytes, but it means AVIF is not the right choice for tiny icons and favicons. For those, WebP or PNG is usually smaller. For photographs and larger images, AVIF is smaller in almost every case.
The rule that covers everything above is short enough to remember: AVIF for the photographs on the web you control, WebP for everything else that must just work, and JPG for files that have to travel beyond your control. Check where the image will be seen first, then ask whether it needs transparency or HDR, then save it once at the right quality and keep the original safe. Do that, and you will never again wonder why a download will not open or why a page loads slowly.