JPG to AVIF
How to use
Converts JPG, PNG and WebP images to AVIF, which is usually half the size of JPG at the same quality. Drop the images, set the quality, and download.
Step 1 of 4: Upload
- 1
- 2
- 3
- 4
Step 1 of 4 · Upload
- 1Upload
- 2Options
- 3Convert
- 4Download
- Cutting the weight of hero images and product photos on a website
- Replacing large PNG screenshots with much smaller files
- Converting HEIC photos from an iPhone into a compact web format
Where AVIF's smaller files come from
AVIF stores a single frame of AV1, a video codec developed by the Alliance for Open Media, whose members include Google, Mozilla, Microsoft, Apple and Netflix. Video codecs are built to describe images far more efficiently than JPEG, which dates from 1992. AV1 predicts each block of the picture from its neighbours, can use large and irregular block sizes on smooth areas such as sky, and filters out the blocky edges JPEG is known for. The practical effect is that AVIF holds more detail in fewer bytes, especially at the smaller sizes websites care about.
The trade-off is encoding time. Finding that efficient description takes a lot of searching, so AVIF encodes much more slowly than JPG. This converter uses a middle speed setting, which is the usual balance between file size and waiting time. Decoding is fast, so visitors to a site never pay that cost; only the person converting does, once.
AVIF also supports transparency and higher bit depths, so it can replace both JPG photos and PNG graphics on a website. For a site that still needs to support very old browsers, serve AVIF inside a <picture> element with a JPG fallback, and every browser will pick the best format it understands.
Free and private. Everything runs on your own device, with no account and no uploads.
AVIF is an image format built on the AV1 video codec. At the same visual quality it is usually noticeably smaller than JPG and often smaller than WebP, which makes it worth using for images on a website where every kilobyte adds load time. This converter encodes AVIF in the browser with the libavif encoder compiled to WebAssembly, and accepts JPG, PNG, WebP, BMP, TIFF and HEIC as input.
Current Chrome, Edge, Firefox and Safari all display AVIF. For very old browsers, serve it inside a <picture> element with a JPG fallback.
AV1 compression searches much harder for an efficient encoding than JPG does, and that search is what makes the file small. Decoding, which is what visitors do, is fast.
No. The artefacts already in the JPG are carried over. AVIF makes the file smaller at similar quality; to get the most out of it, convert from the original PNG or camera image where you have one.
Yes. AVIF supports an alpha channel, so transparent areas of a PNG or WebP stay transparent.
- 1
Add images
Drop one or many JPG, PNG, WebP, BMP, TIFF or HEIC files.
- 2
Set quality and size
The quality slider trades size for detail; a width shrinks large photos before encoding.
- 3
Convert
AVIF encoding is slower than JPG, so a large batch takes a little while.
- 4
Download
One image downloads directly; several arrive in a ZIP.
- ·Resize to the largest size the page will actually display before encoding. A 4000 px photo shown at 1200 px wastes bytes in any format.
- ·Compare the result against the original at 100% zoom on the parts with fine texture, such as hair and foliage, since that is where AVIF smooths first at low quality.