Convert JPG to AVIF
Your files are processed on your device. We never upload them.
AVIF files are written with Squoosh's codecs from jSquash, under the Apache License.
How to convert JPG to AVIF
- 01A ▸Choose your JPG images, or drop them on the page.
- 02A ▸Pick a quality and a speed. High and Balanced suit most photos.
- 03A ▸Select Convert to AVIF, then download each image, or all of them as a zip.
About JPG to AVIF
Where JPG files come from
Cameras and phones save JPG, a format from 1992. AVIF, based on the AV1 video codec, makes much smaller files at the same look, so it is used by sites that care about page speed. Page speed tools often suggest it.
What changes
- The photo is compressed again with AVIF. It smooths fine noise and grain first; choose Best to keep that texture.
- The picture is turned upright for good.
- The date, camera, and location stored in the JPG are not carried over.
- Blocky edges a heavily compressed JPG already has may be smoothed.
Measured
Our 12-megapixel sample photo as JPG and a 1024 by 1024 pixel logo, converted in Chrome on a laptop. Our sample has fine artificial grain, which AVIF at High quality removes almost entirely, so that result is unusually small. Times include loading the encoder. Phone timings are still to be measured.
| Photo, JPG file | 2.1 MB |
|---|---|
| AVIF, Best quality, Balanced | 714 KB, in 3.8 seconds |
| AVIF, High quality, Balanced | 25 KB, in 2.9 seconds |
| AVIF, High quality, Fast | 24 KB, in 1.3 seconds |
| AVIF, High quality, Finest detail | 50 KB, in 45 seconds |
In your browser
No browser's canvas can save AVIF, so every browser downloads a 1.1 MB AVIF encoder (libavif) on the first conversion and then reuses it from its cache.
Limits
- AVIF is slow to make, especially on phones, where Finest detail can take minutes. Phones convert one photo at a time.
- Older browsers and many photo apps can't open AVIF.
- Very large images may be reduced to about 16 megapixels on iPhones. The result says so.
Other options
- JPG to WebP: much faster to make and opened by more apps, a little larger.
- AVIF to JPG: turn an AVIF back into a JPG.
- Compress image: keep the JPG format and make it smaller.
Questions
How much smaller is AVIF than JPG?
Often several times smaller at a similar look. Our 2.1 MB sample photo became 714 KB at Best quality. At High it became 25 KB, because AVIF smoothed away the sample's fine grain; real photos with more texture keep more of it.
Are my images uploaded?
No. Your files are processed on your device. We never upload them.
Why is AVIF slow to make?
No browser can save AVIF, so the tool downloads an AVIF encoder (1.1 MB) and runs it on your device, on one processor core. Balanced took about 3 seconds for a 12-megapixel photo on a laptop; Finest detail took 45 seconds.
Which settings should I choose?
High with Balanced for most web photos. Best when skin, fabric, or film grain must look natural. Fast for large batches. Finest detail is many times slower for a small gain in texture.
Can every browser show AVIF?
Current Chrome, Edge, and Firefox, and Safari on macOS 13, iOS 16, and later, do. Older browsers and many photo apps don't, so keep the JPG as a fallback.
Is the location removed?
Yes. The AVIF carries no photo details, so the location, date, and camera are left out.