JPG to AVIF Converter

Get the smallest possible files from your photos. AVIF is often about half the size of a JPG with no visible difference, and all current browsers display it.

Convert to

Smallest files. Slower to convert.

How to convert JPG to AVIF

  1. 1Add the JPG photos. The first encode loads the AVIF encoder, which is WebAssembly.
  2. 2AVIF is selected at quality 70, this encoder’s photo default. The number is not “70% of the JPG’s quality”.
  3. 3Set a longest side of 2048 px for web work. Full camera frames are slow to encode and rarely useful on a page.
  4. 4Download the .avif file or converted-avif-images.zip. Keep the JPG.

Why convert JPG to AVIF?

AVIF is the most efficient image format that browsers support. A JPG photo converted to AVIF is often around half its original size with no visible difference, which makes AVIF the strongest choice for image-heavy websites, portfolios and online shops.

Current versions of Chrome, Edge, Firefox and Safari all display AVIF. On your own website you can serve AVIF with a JPG fallback using the HTML <picture> element, so visitors with older browsers still see an image.

AVIF encoding is demanding, so expect a few seconds per photo, more on phones and for very large images. Choosing a maximum size of 2048 px speeds it up considerably. AVIF’s quality scale doesn’t match JPG’s, and the default of 70% looks clean on photos.

When a JPG should be published as AVIF

Use this when you control the page and you want the smallest file current browsers can show. A catalogue or a photo essay is the case. You can point an img or a picture element at the AVIF and leave the JPG as the fallback for anything that still cannot read AVIF. This site does not generate that HTML for you. It generates the file.

Skip it when the receiver is a person with a random photo app, or a form with an allow-list. They want the JPG you already have. AVIF encoding takes seconds per full-size photo. JPG encoding does not. Wait for it only when the published file size is the point.

Limits of JPG to AVIF

The encoder always runs in WebAssembly, at speed 7. There is no browser AVIF encoder to prefer, and no way on the page to trade speed for a smaller file. A phone doing several full-resolution encodes will feel busy. The worker pool limits how many run at once.

This is a second lossy generation. Quality 70 does not recover JPEG detail, and skies can band if you push the slider down. EXIF and GPS are not in the AVIF. The JPG’s orientation is applied, so the AVIF is upright. You cannot write HEIC. If you switch back to JPG, quality resets to 90.

Why use Lilypad

100% private

Files are processed right in your browser. Nothing is ever uploaded to a server.

Batch processing

Add hundreds of files at once and download them all in a single ZIP or PDF.

Fast & free

Uses every core of your CPU. No sign-up, no watermarks, no file limits.

Which format should I choose?

JPG
Opens on every phone, computer, and website. Pick this if you are not sure.
PNG
Lossless, so no quality is lost. File sizes are 3 to 5× larger than JPG.
WebP
Around 30% smaller than JPG at the same quality. Supported by all modern browsers.
AVIF
The smallest files, often half the size of JPG. Newer, so a few older apps cannot open it.

Frequently asked questions

How much smaller will the AVIF be?

It varies with the photo and the quality you pick. This page does not promise a ratio. Flat areas tend to shrink more than detailed ones. Compare the size shown on the finished row with the original, and keep the JPG if the AVIF is not actually smaller for that picture.

Why does a batch of JPGs take so long?

Each AVIF encode is heavy, and it cannot use the fast JPEG encoder the browser already has. A longest side of 2048 px shortens the wait. The speed is fixed at 7 inside the encoder. The page does not expose a slower, tighter mode.

Is quality 70 worse than my JPG, which was saved at 90?

The numbers are not on one scale. 70 is the AVIF default used here for photos, the same way 90 is the JPG default. Judge the picture. If gradients posterize, raise the AVIF slider.

Will the camera’s location be inside the AVIF?

No. The file is a new encode. GPS, the camera model and the capture time stay out. The pixels are oriented upright using the JPG’s orientation before that encode.