JPG to AVIF converter
Convert JPG photos to AVIF to make them dramatically smaller for the web. Choose a quality, cap the dimensions if you like, and convert a batch without your photos leaving your computer.
Loading the tool…
Files are processed on this device and never uploaded.How to check
Smaller photos for faster pages
Images are usually the heaviest part of a web page. AVIF, based on the AV1 video codec, stores photos far more efficiently than JPG: smooth skies stay free of blocky banding and fine detail survives at low file sizes. Switching a photo-heavy site from JPG to AVIF can cut image bandwidth dramatically and improve loading metrics such as Largest Contentful Paint.
Picking a quality
The 1–100 slider is mapped onto AVIF’s own quality scale, so 75 here looks roughly like a JPG at 75 but takes far fewer bytes. Lower values degrade gracefully: instead of JPG’s blocky artifacts, AVIF tends to smooth out fine texture. For portraits and product photos, 75–85 is a good range; 60 is often fine for large background images.
If your photos come straight from a phone, also set a maximum width. A 4000-pixel photo shown at 1600 pixels wastes most of its bytes, and resizing before encoding makes AVIF both faster and smaller.
Browser support and fallbacks
Chrome, Edge, Firefox and Safari 16 or later display AVIF. To cover older browsers, serve AVIF with a JPG or WebP fallback using the HTML picture element. You can create the WebP version with JPG to WebP.
Runs on your device
The JPG decoder (MozJPEG) and the AVIF encoder (libavif) are compiled to WebAssembly and run in background workers in your browser. Photos are never uploaded. Because encoding uses your own processor, a large batch is faster on a recent computer.
Frequently asked questions
How much smaller is AVIF than JPG?
For typical photos, AVIF files are often around half the size of a JPG at similar visual quality, and sometimes much less. The exact saving depends on the photo; the list shows the before and after size for each one.
Do I need to keep the original JPGs?
Yes, keep them. AVIF is lossy, and not every app can open it yet. Use the AVIF copies for publishing and the JPGs as your masters.
Why does the conversion take a few seconds per photo?
The AV1-based encoder tries many ways of compressing each block of the image to find the most efficient one. That effort is what makes the files small. Processing happens in the background, so you can keep using the page.
What happens to EXIF data?
The photo is rotated according to its orientation tag, then saved without metadata. GPS location, camera details and capture date are not copied to the AVIF.