How to convert JPG to AVIF
AVIF is a newer image format that usually needs far fewer bytes than JPG for the same picture. That makes it a good choice for images on a website. This guide shows how to convert a JPG or PNG, how to choose the quality, and what to check before you rely on the new file.
Convert the image
- Open JPG to AVIF.
- Choose a JPG or PNG file, or drop it on the page.
- Leave the quality at 60%, or move the slider.
- Press Convert to AVIF and save the file.
The tool converts one image at a time, and the new file keeps the original name with .avif at the end. The work is done in your browser, so the image is not uploaded.
JPG and AVIF compared
| JPG | AVIF | |
|---|---|---|
| First published | 1992 | 2019 |
| File size for a photo | The baseline | Typically around half, at the same visual quality |
| Transparent areas | Not supported | Supported |
| Opens in | Almost every program and device | Current Chrome, Edge, Firefox and Safari, and newer image software |
AVIF gets its small files from the compression used in the AV1 video format. The saving depends on the picture, so compare the result with the original before you replace anything.
Choose the quality
The slider runs from 20% to 90% and starts at 60%. Lower numbers give smaller files and less detail.
- Photographs usually look fine well below 60%.
- Screenshots, text and thin lines need a higher setting, or the edges turn soft.
- If the result looks worse than you want, convert the original again at a higher quality. Do not convert the AVIF a second time.
Both formats are lossy, so each conversion throws away a little detail. Always start from the best original you have.
Before you rely on the file
- Keep the original JPG. Some older programs and email clients cannot open AVIF.
- For a website, set the size first. Resize Image cuts a large photo down to the dimensions the page needs, which saves more than any format change.
- If someone sends you an AVIF you cannot open, AVIF to JPG turns it back into a JPG.
Chrome and Edge create AVIF files themselves. In Firefox, Safari and other browsers the page loads a built-in encoder the first time you convert, which adds a short one-time download.
Frequently asked questions
Does converting JPG to AVIF lose quality?
A little. Both formats are lossy, so the conversion discards some detail. At a sensible quality setting the difference is hard to see, and the file is much smaller.
Is AVIF better than JPG for a website?
Usually, because the files are smaller and pages load faster. Current versions of Chrome, Edge, Firefox and Safari all display AVIF.
Can I convert PNG to AVIF as well?
Yes. The tool accepts JPG and PNG files.
Is my image uploaded?
No. The conversion runs in your browser and the image stays on your device.