UtilityNest

JPG to AVIF

Make your photos much lighter for websites and blogs by converting JPG to AVIF. Encoding runs in your browser with the open source libavif encoder, so your photos never leave your device.

What you get

JPG, 1.08 MB
mountain lake landscape photo as JPG and as AVIF (JPG, 1.08 MB)
AVIF, 74.2 KB
mountain lake landscape photo as JPG and as AVIF (AVIF, 74.2 KB 1)

A 2400 x 1600 px lake photo went from a 1.08 MB JPG to a 74.2 KB AVIF at the default quality 80, 93% smaller, in about 2 seconds.

How to use JPG to AVIF

  1. 1Drop your JPG photos into the box or click Choose files.
  2. 2Set the quality. Balanced (80) is a good start for websites.
  3. 3Optionally turn on Shrink large images to limit the longest side, which also makes encoding much faster.
  4. 4Click Convert to AVIF. The encoder loads on first use, then each photo takes a few seconds.
  5. 5Check the size change in the list and download the AVIF files, one by one or as a ZIP.

Why use AVIF

AVIF typically needs about half the bytes of a JPG for the same visual quality, and it handles gradients like skies without the blocky banding JPG shows at low quality. Smaller images load faster, which helps page speed scores and mobile visitors. Chrome, Edge, Firefox and Safari 16 and newer all display AVIF.

For maximum compatibility on a website, serve AVIF with a JPG fallback in a <picture> element. For email attachments or messengers, keep JPG, since many apps still cannot open AVIF.

Choosing a quality

The slider uses the same 10 to 100 scale as our JPG and WebP converters, mapped to the AVIF encoder so that equal numbers look roughly equally good. 80 suits most web photos, 60 is for thumbnails and backgrounds, and 92 or higher is for photos where every detail matters. At 90 and above the encoder also keeps full color resolution.

Resizing matters more than quality for big savings. A 12 megapixel phone photo shown at 1600 pixels wide wastes most of its bytes. Turn on Shrink large images and pick 1920 or 2560.

Speed and limits

The AVIF encoder (about 3.5 MB) downloads once, the first time you convert. Encoding is single-threaded in the browser, which means a few seconds per photo, longer for very large images and on phones. Photo metadata such as GPS location is not copied into the AVIF. Need a format that works everywhere instead? Try Convert to WebP.

Measured on three JPG photos

Source JPGAVIF 60AVIF 80AVIF 92
741 x 500, 127.7 KB31.4 KB49.9 KB63.9 KB
1000 x 872, 515.6 KB39.3 KB96.6 KB148.9 KB
1024 x 576, 423.3 KB48.7 KB76.0 KB98.0 KB

Even at 92 every photo lost half or more of its size. Each batch of three took 7 to 12 seconds in Chrome on a desktop, the first one including the encoder download. Full size phone photos take several seconds each, so shrinking to 1920 or 2560 pixels first is the single best speed-up.

AVIF or WebP for your site?

The same three photos at WebP 80 were 59.8, 131.6 and 95.3 KB, so AVIF 80 came out 17 to 27 percent smaller. The sliders are tuned to look similar at the same number, but they are not identical, so compare a few images at 100 percent zoom before you pick a setting for a whole site. AVIF wins on size and on smooth gradients; WebP encodes much faster and opens in more desktop software.

Using AVIF in WordPress and with a fallback

WordPress supports uploading AVIF from version 6.5, as long as the server's image library (Imagick or GD) supports it; Tools, Site Health, Info, Media Handling shows whether it does (Make WordPress Core: WordPress 6.5 adds AVIF support, (checked October 2026)). On a hand-built site, serve AVIF inside a <picture> element with a <source type="image/avif"> and keep a JPG in the <img> tag for older browsers.

Frequently asked questions

How much smaller is AVIF than JPG?

It depends on the photo, but at similar visual quality AVIF is often 40 to 60 percent smaller. Every file in the list shows the exact size change.

Why does conversion take a few seconds?

AVIF compression is much more complex than JPG, and browsers cannot encode AVIF on their own, so the encoder runs as WebAssembly on your device. Shrinking large images speeds it up a lot.

Can every browser open AVIF?

Current Chrome, Edge, Firefox, Opera and Safari 16.4 or newer can. Older browsers and many desktop apps cannot, so keep the JPG originals.

Are my photos uploaded?

No. The encoder runs inside your browser and your photos stay on your device.

What quality should I use for a website?

Start with 80 and the longest side at 1920 pixels. Compare the result, and go down to 70 if it still looks good.

Should I send AVIF photos by email or messenger?

Better not. Many mail apps and older phones cannot show AVIF. Use AVIF for websites and keep JPG for sending.

Can I convert back to JPG later without loss?

Each conversion between lossy formats loses a little. Keep the original JPGs and treat the AVIF files as web copies.

Why did the first conversion take longer than the rest?

The AVIF encoder, about 3.5 MB, downloads on first use. Later conversions in the same visit start right away.

Is AVIF lossless at quality 100?

The AVIF files from this page are meant as lossy web copies. At 100 they are visually lossless but large; for web use, 80 to 92 gives almost all of the size benefit.

Does AVIF keep the camera information from my JPG?

No. Metadata such as camera model, date and GPS location is not copied, which is usually what you want for images published on a website.