Skip to content

JPG to AVIF Converter

Convert a JPG to AVIF with a quality slider. AVIF can be much smaller than JPG. It is encoded on the server, which needs AVIF support.

transform

Drop JPG image here

or click to browse JPG files to convert to AVIF

Accepted format: JPG • Output format: AVIF • Maximum 20 MB

What this tool does

Choose a JPG, pick a quality, and download an AVIF file. AVIF is the newer image format based on the AV1 video codec.

How to use it

  1. Choose a JPG file, or drop it on the page. A preview and its size appear.
  2. Set the quality with the slider. It starts at 85%.
  3. Press Convert to AVIF.
  4. Compare the input and output sizes the page shows, then press Download AVIF.

Where it runs

The work happens in your browser, using the canvas feature that every current browser has. The image is not uploaded and nothing is stored on this site’s server.

AVIF is the exception. Browsers can’t write AVIF from a canvas, so for AVIF output the tool sends your file to this site’s server, which encodes it with PHP’s GD library. That only works when the server’s GD build supports AVIF, and the tool shows an error when it doesn’t. The upload sits in a temporary folder just long enough for you to download the result (the link lasts 15 minutes). The server refuses images over 50 megapixels and allows 15 conversions a minute.

Why AVIF

AVIF usually compresses better than both JPEG and WebP, with noticeable savings on photographs, and it handles gradients with less banding. Browser support is good today: Chrome, Firefox, Edge and Safari 16.4 and later can show it. WordPress accepts AVIF uploads from version 6.5.

The trade-offs

  • Older browsers can’t show AVIF. Serve it with a fallback, for example the HTML <picture> element with a WebP or JPG source.
  • Decoding is heavier than JPEG on very old or low-power devices, which can matter for large images.
  • You are re-encoding an already lossy JPG, so for the best quality convert from the original image if you can.

AVIF quality numbers don’t line up with JPEG’s. Try 50 to 70 first, because a lower number can look as good.

Limits

  • Metadata such as EXIF, location and colour profiles is not carried over, because the image is redrawn.
  • Browsers apply a photo’s EXIF rotation when they open it, so a phone photo normally comes out the right way up.
  • An animated image becomes a single still frame.
  • The page states a 20 MB maximum but doesn’t check it in the browser. Very large images depend on your device’s memory, and the browser can fail on huge ones.

For wider compatibility, JPG to WebP is the safer choice.

Is AVIF better than WebP?

Often smaller for photos, but encoding is slower and support, while good, is newer. Many sites serve AVIF with a WebP or JPG fallback.

Why does the tool say AVIF isn’t available?

Browsers can’t write AVIF themselves, so this site’s server does it. If the server’s image library was built without AVIF support, the tool reports that instead of returning another format.

What quality should I use?

Start around 50 to 70 and check the result. AVIF needs lower numbers than JPEG for a similar look.

Will every visitor see an AVIF image?

No. Provide a fallback with the picture element for older browsers.

Is my JPG uploaded?

Yes, for this tool. AVIF output is encoded on the server, so the file is uploaded, kept in a temporary folder for the download and not added to the media library.