JPG to AVIF converter
Converts JPG photos to AVIF files that are usually much smaller at the same visual quality, several photos at a time. The AVIF can't look better than the JPG it came from, so start from the largest, least compressed copy of each photo you have. It runs in your browser; nothing you enter is uploaded.
For the reverse, use the AVIF to JPG converter.
You can also drop images on this box. Your images never leave your browser: the site doesn't store them, and all the converting happens on your device.
Resize
Fill in one to keep the image's proportions. Fill in both to fit the image inside that size, still keeping its proportions.
Safari can’t save WebP images, and neither can any browser on an iPhone or iPad. To convert to WebP, use Chrome, Edge or Firefox on a computer or an Android phone.
Saving AVIF takes longer than the other formats, and the first time, the page downloads an AVIF encoder of about 3 MB.
How much smaller the AVIF gets
The savings depend on the JPG. A full-size photo from a camera or phone shrinks the most. A JPG that a website or a messaging app has already squeezed hard shrinks less. Its blocks and smudges look like detail to the encoder, which spends bytes keeping them. Each file's line in the list shows its size before and after, so you can tell straight away whether converting it was worth it.
The quality slider starts at 60. AVIF's quality numbers don't line up with JPG's, so compare the pictures, not the numbers. At low settings, AVIF smooths fine texture such as hair, grass, and fabric rather than breaking the picture into blocks the way a JPG does. The preview next to each file is too small to show that, so open a downloaded AVIF at full size before you settle on a setting. Each time you let go of the slider, every photo in the list is converted again, which takes a while with AVIF, so try settings on one photo before you add the rest.
Camera details are left out
The converter hands the encoder only the photo's pixels, so the JPG's EXIF data stays behind: the AVIF doesn't say which camera took the photo, when, or where. That's a plus for photos you'll post publicly. If you sort a photo library by date or place, keep the JPGs for it.
Using AVIF photos on a website
Current versions of Chrome, Edge, Firefox, and Safari all show AVIF. WordPress accepts AVIF uploads when the web server's image library
can handle AVIF. If you still want a JPG for older browsers, the HTML <picture> element serves the AVIF to browsers
that show it and the JPG to the rest:
<picture>
<source srcset="photo.avif" type="image/avif">
<img src="photo.jpg" alt="Describe the photo">
</picture> Outside the browser, JPG still opens almost everywhere, while AVIF doesn't. Keep the JPGs for printing, email, and sending to people.
Converting a folder of photos
For a few dozen photos, drop them all on the box above and use Download all as ZIP. The page can stop responding while a large photo converts, so give a big batch time to finish.
For thousands of photos, or a script that converts each new upload, avifenc from the libavif project does the job on the
command line; Debian and Ubuntu ship it in the libavif-bin package. Unlike this converter, it copies the JPG's EXIF and XMP
data into the AVIF unless you add --ignore-exif --ignore-xmp. This loop converts every JPG in a folder at quality 60:
for f in *.jpg; do avifenc -q 60 --ignore-exif --ignore-xmp "$f" "$(basename "$f" .jpg).avif"; done Questions
Is AVIF better than JPEG?
For photos on a website, yes: the same photo takes noticeably less space at the same visual quality. JPG is still the better choice for a file that has to open in any program or on any device.
Can I convert the AVIF back to JPG?
Yes, with the AVIF to JPG converter. The new JPG won't get back the detail lost along the way, and each lossy conversion loses a little more.
More in image converters
- Image converter
- HEIC to JPG converter
- JPG to PDF converter
- WebP to PNG converter
- WebP to JPG converter
- PNG to JPG converter
- JPG to PNG converter
- SVG to PNG converter
- AVIF to JPG converter
- AVIF to PNG converter
- PNG to WebP converter
- JPG to WebP converter
- SVG to JPG converter
- PDF to JPG converter
- PNG to SVG converter
- JPG to SVG converter
- PNG to AVIF converter