↑↓ to move ↵ to open Esc to close Browse all tools

JPG to AVIF

Turn JPG photos into much smaller AVIF files for your website, with a quality slider and the size before and after.

Convert JPG to AVIF

Convert to
Smaller fileBest quality
JPG has no transparency, so see-through parts get this color.

Your photos are converted by your own browser. Nothing is uploaded.

Why convert JPG to AVIF?

AVIF is a newer image format from the Alliance for Open Media, built on the AV1 video codec. Google's web.dev describes significant compression gains over JPEG and WebP, so the same photo takes fewer bytes at a similar look, and a page full of photos has less to download. The format also handles transparency, HDR and wide color.

JPGAVIF
File size for a photoBaselineSmaller at a similar look
TransparencyNoYes
Opens everywhereYesCurrent browsers, not every app

The AVIF encoder

When your browser has its own AVIF encoder, this page uses it. When it does not, the first photo you convert downloads one: libavif, the open-source AVIF library, packaged for the browser by the jSquash project. It is a file of about 3.5 MB (about 1.1 MB over the network), runs in the background on your device and is cached afterwards. You can also switch to WebP, the older web format that is also smaller than JPG. The other way around, from AVIF back to a file every program accepts, is the AVIF to JPG converter. Got PNG graphics with transparency? Use PNG to AVIF.

Steps

  1. 1Drop your JPG photos on the box, as many as you like.
  2. 2Move the quality slider and watch the size before and after in the list.
  3. 3Save single AVIF files or all of them in one ZIP.

Frequently asked questions

How much smaller is AVIF than JPG?

It depends on the photo and the quality you pick. In an article on web.dev, Google engineers report savings of more than 50% compared to JPEG in their tests, and point out that the result depends on content, settings and quality target. The list below shows the real size before and after for each of your photos.

Why does the first AVIF take longer?

If your browser can write AVIF itself, the page uses that. If not, it downloads an AVIF encoder the first time you convert: a file of about 3.5 MB, sent compressed as about 1.1 MB. Your browser keeps it in its cache, so the next photos start right away. Big photos still take a few seconds each to encode.

Which browsers and apps can open AVIF?

According to MDN, AVIF images display in Chrome 85, Edge 121, Firefox 93 and Safari 16.1 or newer. Some older photo viewers, office programs and upload forms still refuse it, so keep the JPG for those places.

What quality should I use?

Start with the default and compare the result with the original at full size. Look at fine detail like hair, grass and small text. If it looks softer than in the JPG, raise the quality a little; if it looks the same, try lower for an even smaller file.

Are my photos uploaded?

No. Your browser decodes each JPG and writes the AVIF on your device. Nothing is sent to a server.