How to convert JPG to AVIF
Add your JPG photos
Drop JPG, JPEG or JFIF files on the box, press Choose files, or paste with Ctrl+V — up to 50 files per batch, 50 MB each. Encoding starts immediately.
Set the quality
The preset of 60 suits most photos. Compare the sizes shown, and move the slider if you want a smaller file or more detail.
Download
Save each AVIF, or take the whole batch as a single ZIP.
JPG vs AVIF
| JPG | AVIF | |
|---|---|---|
| Introduced | 1992 | 2019, Alliance for Open Media |
| Compression | Lossy | Lossy or lossless, based on the AV1 video codec |
| File size at the same look | Reference | Roughly half |
| Transparency | No | Yes |
| HDR and wide colour | No | Yes |
| Browser support | Everything | All current browsers |
| Editors and upload forms | Universal | Patchy |
| Best for | Sharing with anyone | Images on your own website |
Why convert JPG to AVIF
AVIF stores a picture with the compression of the AV1 video codec. For photos that means a file roughly half the size of a JPG that looks the same, so pages load faster and use less data. That is why image-heavy sites, shops and portfolios serve AVIF to every browser that reads it.
The saving depends on the photo. Soft backgrounds, skies and skin shrink the most; busy, sharp detail such as foliage or gravel the least. A JPG that was already compressed hard has less to give.
Choosing a quality
The slider runs from 1 to 100, but AVIF’s scale is not JPG’s. At the preset of 60 most photos look like the original; a JPG needs a number near 90 for the same result. Go up to 70–80 for images with fine text, sharp lines or smooth gradients, and down to 40–50 when size matters more than detail.
The size of every result is shown next to the original, so move the slider and compare before you download. The converter waits until you let go, then encodes the batch again.
A JPG is already compressed
Converting a JPG to AVIF compresses it a second time. Detail the JPG had already discarded cannot come back, and its blocky artefacts are part of the picture the encoder sees. Start from the largest, least compressed JPG you have, and do not convert the same photo back and forth.
If you have the original as PNG or straight from the camera, use that instead: PNG to AVIF starts from every pixel.
The encoder, and why it takes a moment
Chrome and Firefox can read AVIF but will not write it from a web page, so this page brings its own encoder: libavif, the reference library of the Alliance for Open Media, compiled to WebAssembly by the jSquash project. Every browser runs the same encoder, so the same file and setting give the same AVIF everywhere.
The first file you add loads the encoder, about 3.5 MB, from avifbox.com; your browser keeps it afterwards. AVIF is slow to create by design — the encoder tries many ways to describe each block of the picture — so a large photo takes a few seconds on a computer and longer on a phone. Several files are encoded side by side.
Where the AVIF will open
Chrome 85, Firefox 93, Edge 121 and Safari 16 or later display AVIF, which covers well over nine in ten browsers in use, and so do current Windows, macOS, iOS and Android. Older editors, office suites and many upload forms still refuse it, so keep the original if you will need it there. When an AVIF has to go back, AVIF to JPG and AVIF to PNG are one click away.
Using AVIF on a website
Serve the AVIF to browsers that read it and keep the JPG as a fallback for the rest. In HTML that is a <picture> element with an AVIF <source> and the JPG in its <img>; every browser picks the first format it understands.
Limits and privacy, stated plainly
One batch holds 50 files per batch, 50 MB each. Those are guard rails, not a paywall: no daily quota, no account, no paid tier, and as many batches as you like. The real limit is your device’s memory, because that is where the work happens.
Your browser does the decoding and encoding, so the files are never sent anywhere. You need not take that on trust: this page’s security policy only lets it talk to avifbox.com, and your browser’s network panel will show that converting sends nothing.
Questions people ask
- How do I convert JPG to AVIF?
- Drop your JPG files on the box at the top of this page or press Choose files. They are encoded in your browser; download each AVIF or all of them as a ZIP.
- How much smaller is AVIF than JPG?
- Often around half the size at the same visual quality, sometimes much less. It depends on the photo and on how hard the JPG was compressed; the page shows the real size of every result.
- Is it free to convert JPG to AVIF?
- Yes — free, with no sign-up, no watermark and no daily limit.
- Is converting to AVIF lossless?
- No. The encoder works in its lossy mode, trading detail you are unlikely to notice for a much smaller file. Raise the quality if you see a difference, and keep the original if you may edit the image later.
- How many files can I convert at once?
- Up to 50 files per batch, 50 MB each, and as many batches as you like. There is no daily limit; a very large image is bounded only by your device’s memory.
- Why does it take longer than making a JPG?
- AVIF spends far more effort per image to save those bytes. The first file also loads the encoder once. Large photos take a few seconds each, longer on a phone.
- Is the EXIF data kept?
- No. The AVIF holds only the picture: camera details and location are left out. A photo is turned upright first, so it does not end up sideways.
- Are my files uploaded to a server?
- No. Your browser decodes and re-encodes the images on your own device, and the files never leave it.
Packing list
| Price | Free — no account, no watermark, no quota |
|---|---|
| Works in | Chrome, Edge, Firefox and Safari, on desktop and mobile |
| Input | JPG, JPEG, JFIF |
| Output | AVIF, 8-bit, quality 1–100 |
| Batch size | 50 files per batch, 50 MB each |
| Processing | On your device; nothing is uploaded |
| Metadata | Not copied: the AVIF holds the picture only, no EXIF or location |