Convert JPG to AVIF in your browser
Cut the size of your photos by converting JPG to AVIF, the format that often gives the smallest files at the same visible quality. Convert a folder and download a ZIP.
Leave the size empty to keep the original. The ratio is kept and images are never enlarged. Camera data, location and colour profiles are removed.
| Preview | File | Format | Size in px | Original | New | Saving | Status | Actions |
|---|---|---|---|---|---|---|---|---|
How to convert JPG to AVIF
AVIF can keep the look of a JPG in a much smaller file. This tool converts a batch of photos in your browser.
- Add your JPG files Drop JPG or JPEG files onto the box, paste an image or click to choose files.
- Keep AVIF and set the quality Start at 60. Raise it for photos with fine detail, lower it to save more.
- Resize large photos Set a maximum width, for example 2000 pixels. It saves bytes and encoding time.
- Compare and download Check a photo in the before and after view, then download the files or a ZIP.
Tips for JPG to AVIF
- Convert from the original, not from a JPG that was heavily compressed already.
- Use a picture element with an AVIF source and a JPG fallback.
- Expect the encoding of big photos to take a few seconds each.
Common mistakes
- Setting the quality very low Detail such as hair, foliage and fabric blurs first. Check the comparison.
- Dropping the fallback Some older apps and browsers cannot show AVIF. Keep JPG versions available.
- Converting without resizing A 6000 pixel photo shown at 800 pixels wastes time and bytes.
Open it pre-filled with a link
Every field accepts a query parameter with the same name, so a link, a script or an AI agent can fill the tool in and run it. Open an example: /tools/jpg-to-avif/?format=avif&quality=60&maxw=1600
| Parameter | Values | What it does |
|---|---|---|
format | webp · avif · png · jpg (default: avif) | Output format: webp, avif, png or jpg. |
quality | number (default: 60) | Quality from 1 to 100 for lossy output, and for the number of colours in PNG colour reduction. Higher is better and larger. |
mode | lossy · lossless · colors (default: lossy) | lossy or lossless for WebP and AVIF; lossless or colors for PNG (colors reduces the number of colours). JPG is always lossy. |
maxw | number | Maximum width in pixels. Empty keeps the original. Images are never enlarged. |
maxh | number | Maximum height in pixels. Empty keeps the original. Images are never enlarged. |
What this JPG to AVIF converter does
The full image tool with JPG input and AVIF output already chosen.
- Quality slider From 1 to 100, with 60 as the starting point.
- Resize while converting A maximum width and height with the ratio kept.
- Before and after A draggable comparison of the photo and the AVIF.
- Batch and ZIP Up to 200 photos and one archive.
- Metadata removed Camera data and location are stripped.
JPG and AVIF compared
| JPG | AVIF | |
|---|---|---|
| Typical size | Larger | Often much smaller at similar quality |
| Transparency | No | Yes |
| Encoding speed | Very fast | Slow |
| Support | Everywhere | All current browsers |
When to convert JPG to AVIF
When photos make up most of the weight of your pages.
Photo-heavy websites
Galleries, travel and real estate sites.
Online shops
Catalogue photos with faster category pages.
Portfolios
Sharp images that open quickly.
News and magazines
Large article images that do not slow the page.
Prefer wider support? The JPG to WebP page linked here is the safer middle way.
Frequently asked questions
Is AVIF better than JPG?
For the web, usually: smaller files at similar visible quality. JPG is still the safest format for email, print and old software.
How much smaller will my photos be?
Often by half or more at a similar look, but it depends on the photo. The table shows the exact figures.
Does it keep EXIF data?
No. Camera data, location and colour profiles are removed.
Are my photos uploaded?
No. They are converted in your browser.
Why is it slower than JPG to WebP?
AVIF encoding needs more computing. Resizing large photos first helps a lot.
Can I open the tool with settings in the link?
Yes, for example ?format=avif&quality=60&maxw=2000. The list is in the first tab.
Have a project in mind? Let us talk it through.
Tell us what you want to build or improve. We reply with a clear next step.