Convert JPG to AVIF for the smallest photo files
AVIF is the newest widely supported image format, and for photographs it can produce strikingly small files. This JPG to AVIF converter encodes your JPG and JPEG photos as AVIF right in your browser, using the open-source AV1 encoder from Google’s Squoosh project, packaged as @jsquash/avif (Apache-2.0 licence). Add a batch, choose quality and speed, and follow the progress bar as each image is encoded.
Nothing is uploaded — the encoder runs as WebAssembly on your own device. That keeps your photos private, but it also means the speed depends on your computer: AVIF takes far longer to create than JPG, so a large photo can need several seconds.
How to use the JPG to AVIF Converter
- Drop your JPG files onto the upload area or click it to choose them. The AVIF encoder (about 2.6 MB) downloads the first time.
- Set Quality. AVIF needs lower numbers than JPG for the same look — start around 55–65.
- Pick an Encoding speed: Balanced suits most batches; choose Smallest files if you can wait, or Fastest for big batches.
- Leave Full colour resolution (4:4:4) off for camera photos; turn it on for images with fine coloured detail.
- Follow the progress bar, compare the result with the Original in the preview, then download the AVIFs or use Download all for a ZIP.
JPG to AVIF Converter features
Runs in a background worker
Encoding happens off the page’s main thread, so the page stays responsive while a batch works through, with a progress bar and time estimate.
Quality mapped to AV1 levels
The 1–100 quality slider sets the encoder’s constant-quality level on its 0–63 scale; quality 60 corresponds to level 25.
Three speed presets
Speed 10, 8 or 6 trade encoding time against file size, and the time estimate learns how fast your device really is.
Chroma choice
Encode colour at reduced resolution (4:2:0) like most JPGs, or at full 4:4:4 resolution for sharp coloured edges.
Upright, metadata-free output
Photos are rotated according to their EXIF orientation before encoding. EXIF data is not copied into the AVIF.
What AVIF is and why it compresses so well
AVIF — the AV1 Image File Format — was finalised by the Alliance for Open Media in 2019. It stores a frame of AV1, the royalty-free video codec developed by the alliance’s members including Google, Mozilla, Cisco and Netflix, inside the same HEIF container structure that iPhones use for HEIC photos.
AV1 has far more tools than JPG’s fixed 8×8 blocks: prediction from neighbouring pixels in dozens of directions, transform blocks from 4×4 up to 64×64 pixels, and in-loop filters that clean up blocking and ringing. That is why AVIF holds smooth skies, skin and gradients well at sizes where a JPG would fall apart. The price is computation — the encoder searches many options for every block, which is why this page lets you trade speed for size.
Choosing quality and speed
Lower encoder levels mean higher quality. As a rough guide:
| Setting | Encoder value | Good for |
|---|---|---|
| Quality 70–80 | Level 19–13 | Hero images, photography portfolios |
| Quality 55–65 | Level 28–22 | Most web photos (default 60) |
| Quality 35–50 | Level 41–32 | Thumbnails and previews |
| Fastest | Speed 10 | Large batches; slightly larger files |
| Balanced | Speed 8 | Everyday use |
| Smallest files | Speed 6 | A few important images; several times slower |
Before you switch your site to AVIF
- Browser support: Chrome since version 85 (2020), Firefox since 93 (2021), Safari since 16 (2022) and Edge since 121 (2024). Serve AVIF inside a
<picture>element with a JPG or WebP fallback for older browsers. - Software support is patchier than for JPG: some Windows PCs need Microsoft’s free AV1 Video Extension to show AVIF, and older editors can’t open it. Keep your original JPGs.
- Metadata: this tool doesn’t copy EXIF into AVIF. If the camera data matters, keep the original JPG — you can read it with the EXIF viewer.
- Resize first: fewer pixels encode faster and smaller. A 1,600-pixel-wide photo is plenty for most web layouts; the image resizer does it in seconds.
JPG to AVIF Converter FAQ
How do I convert JPG to AVIF?
Drop your JPG files on the converter, set the quality (about 60) and speed (Balanced), and wait for the progress bar to finish. Then download each AVIF or all of them as a ZIP. The encoding runs on your device.
Why is AVIF encoding so slow?
The AV1 encoder tries many prediction and transform options for every block to find the most compact one. That search is what makes the files small. The Fastest speed, or resizing the photo first, shortens the wait.
How much smaller is AVIF than JPG?
It varies with the picture and the quality you choose, so the converter shows each file’s exact size before and after. Photographs with smooth areas usually shrink substantially; JPGs that are already heavily compressed shrink less.
Is converting JPG to AVIF lossless?
No. Both formats are lossy, so the photo is compressed a second time. Start from the best-quality JPG you have and avoid very low quality settings.
Does the AVIF keep my photo’s EXIF data?
No. The AVIF is written without EXIF, so camera details and GPS location are not included. The photo is rotated upright before encoding, so it still displays correctly.
Can every browser open AVIF files?
All current versions of Chrome, Edge, Firefox, Safari and Opera can. Very old browsers and some desktop apps can’t, so keep a JPG or WebP fallback.