JPG to AVIF
Same photo, a fraction of the file size.
Processed in this tab
How it works
- Choose a JPG image.
- Set the AVIF quality.
- Convert and download the AVIF file.
Why convert JPG to AVIF
JPG has been the web's photo format for thirty years, and it shows: the compression is dated. AVIF, built on the AV1 video codec, delivers the same visual quality at roughly half the bytes — often better. For a photo-heavy page, switching formats is the single cheapest speed win available.
Converting here is a local affair: your JPG is decoded and re-encoded as AVIF inside this browser tab using a WebAssembly build of libavif. Nothing is uploaded, the tool works offline, and the photo never leaves your device.
A note on double compression
JPG is already lossy, and AVIF at normal settings is lossy too — the AVIF stores the JPG's decoded pixels, artifacts included. At the default quality this is invisible in practice, but avoid converting a JPG that was saved at very low quality to begin with. If you have the original photo, convert from that instead.
Where AVIF works
Every current browser — Chrome, Firefox, Edge, Safari 16.4+ — displays AVIF, so it is ready for websites today. Older desktop editors and some upload forms lag behind; for those, keep the JPG or use JPG to WebP as the middle ground. Background on the trade-offs: AVIF vs WebP.
Questions
- How much smaller will the AVIF be?
- Typically 40–60% smaller than the JPG at equivalent visual quality, sometimes more. Photos with smooth gradients and skies compress especially well.
- Will I lose quality converting JPG to AVIF?
- The AVIF faithfully stores the JPG's decoded pixels at high quality settings. Technically it is a lossy re-encode, but at the 82% default the difference is not visible. Converting repeatedly at low quality is what to avoid.
- Is my JPG uploaded anywhere?
- No. Decoding and encoding happen locally in your browser with a WebAssembly codec — the photo never leaves your device and the tool works offline.
- Can every browser open AVIF?
- All current versions of Chrome, Firefox, Edge, and Safari (16.4+) can. Very old browsers cannot, so for maximum reach keep a JPG fallback on websites.
- What quality setting should I use?
- Start at the 82% default. Push higher for images with fine text or sharp graphic edges; you can go lower for casual photos where every KB counts.
- Can I convert several JPGs at once?
- The tool handles one image at a time. Convert the first, then load the next — each stays on your device.