Pixsqueeze

Convert any image to AVIF

To convert an image to AVIF, drop it here and choose AVIF as the output. AVIF produces the smallest files of any widely supported format — typically 20-30% below WebP and 50% below JPEG at matched quality. Encoding is slow because it is genuinely doing more work, and it runs entirely in your browser.

AVIF is what you choose when file size is the thing that matters most. It is built on the AV1 video codec, which means far more sophisticated compression than JPEG or WebP: better detail retention at low bitrates, no blocking, and proper handling of gradients that would band badly elsewhere. The costs are real though — encoding is slow, and Safari only caught up in version 16.

What you gain, by source format

From JPEG
Around 50% smaller at matched quality, with gradients and dark areas that hold together where JPEG bands and blocks.
From PNG
Dramatic savings on photographic content while keeping transparency, which AVIF supports fully.
From WebP
A further 20-30% off, worth it for large hero images where the bytes justify the encoding time.
From GIF
First frame only, but with full colour instead of a 256-colour palette and proper alpha instead of one transparent index.
From BMP
The largest saving available anywhere, since BMP stores raw pixels with no compression at all.

What to know

  • AVIF encoding is genuinely slow — seconds per image rather than milliseconds. Large batches take time, and this runs on your CPU rather than a server farm.
  • Quality numbers do not carry across formats. AVIF 55 looks roughly like WebP 82, which is why the slider moves when you change format rather than keeping a meaningless number.
  • Safari supports AVIF from version 16 onwards. If you need to serve older browsers, use WebP or provide a fallback with a picture element.
  • AVIF metadata is not written yet. EXIF, ICC and XMP are dropped on AVIF output, and the interface says so per file rather than failing quietly.

Frequently asked questions

Is AVIF better than WebP?
For file size, clearly — typically 20-30% smaller at matched visual quality, and much better at holding gradients together. For everything else it is a trade: encoding is far slower, decoding is heavier on the browser, and support starts at Safari 16 rather than Safari 14. Use AVIF where bytes matter most and WebP where compatibility and speed do.
Why is converting to AVIF so slow?
AVIF uses the AV1 codec, which searches a very large space of possible encodings to find a small one. That search is the reason the files are small. Here it runs single-threaded WebAssembly on your own machine, one image per CPU core, which is slower than a native encoder but means nothing is uploaded.
Does AVIF support transparency?
Yes, with a full alpha channel, so it is a genuine replacement for transparent PNGs and not just for JPEGs.
Does converting to AVIF keep EXIF data?
Not currently. AVIF stores metadata in ISOBMFF boxes, which this converter does not write yet, so EXIF, ICC and XMP are dropped on AVIF output. Each file says so explicitly rather than silently losing it. Convert to WebP or JPEG if metadata must survive.

Convert a specific format to AVIF

Related conversions