Skip to content
DoItJag

JPG to AVIF

AVIF is a modern image format supported by current Chrome, Edge, Firefox and Safari. For photos it usually needs far fewer bytes than JPG for the same look, which makes web pages load faster. This page encodes AVIF on your own device.

One-time download: browsers cannot write AVIF files themselves, so the first conversion downloads the open-source AVIF encoder (libavif, 3.5 MB, Apache-2.0 licence) from cdn.jsdelivr.net. Your browser keeps it for later visits.

Only the encoder program is downloaded. Your images are never uploaded; they are converted on this device.

or drop files here · JPG · up to 50 MB · max 20 files

Processed on your device. Your files are not uploaded.

About the JPG to AVIF Converter

JPG has served the web for three decades, but newer formats squeeze photos much harder. AVIF, developed by the Alliance for Open Media, often produces files around half the size of a comparable JPG, and sometimes far less. Smaller images mean faster pages, lower data use for visitors on mobile plans, and better scores in page speed tests.

What happens when you convert

No browser can write AVIF files on its own today, so the page uses libavif, the reference AVIF library, compiled to WebAssembly. The first time you convert, it downloads this encoder (3.5 MB) from cdn.jsdelivr.net and your browser stores it for next time. Encoding then runs in a background worker on your computer or phone. Only the program travels over the network; your photos never do.

Choosing quality and speed

  • Quality runs from 20 to 100. The scale is not the same as JPG’s, so do not copy the number from your camera settings. Begin at 60, look closely at faces, skies and fine textures in the preview, and move up if you spot smearing.
  • Speed decides how hard the encoder searches for savings. Fast finishes soonest; Slow squeezes out a few extra percent and takes noticeably longer.

Re-encoding always loses a little detail, because your JPG was already compressed once. Start from the best original you have, not from a copy that has been saved many times.

Compatibility

Current versions of Chrome, Edge, Firefox, Safari, Android and iOS display AVIF. Some older desktop software, social networks and upload forms do not, so keep your original JPG. On a website you can offer both with the HTML picture element, letting each visitor’s browser choose the format it understands.

Performance tips

Encoding is demanding work. A typical twelve-megapixel phone photo takes a few seconds on a laptop and longer on a phone. Pictures above roughly 40 megapixels are refused; shrink them first with the image resizer, which also makes the AVIF smaller.

How to use JPG to AVIF

  1. Choose one or more JPG photos.
  2. Set the quality and speed, then select Convert to AVIF (the encoder downloads once, 3.5 MB).
  3. Compare the sizes, check the preview and download the AVIF files.

Privacy: how it works

Your photos are converted on your own device. The AVIF encoder program is downloaded from cdn.jsdelivr.net the first time; your images are never uploaded.

Frequently asked questions

Why is the conversion slow?

AVIF encoding needs far more computing than JPG, and here it runs on your device without a server. A phone photo usually takes a few seconds; very large pictures can take a minute. Choose Fast for quicker results.

Which quality should I pick?

Start at 60 and compare the preview with the original. AVIF quality numbers do not match JPG ones, so a lower AVIF number can still look as good as your JPG.

Can everyone open AVIF files?

Current browsers can, and so can recent versions of most operating systems. Some older editors and upload forms cannot, so keep the JPG if you still need it.