Compress AVIF images online.
AVIF is the most efficient image format on the web — 50% smaller than JPEG at the same quality. Our libaom-based compressor lets you create production-ready AVIF files entirely in your browser.
Drop images here to start
· ·
- JPG
- PNG
- WebP
- AVIF
- GIF
- SVG
- HEIC
Skipped
Settings
Compression
Queue
No images yet
Generating previews…
Your queue is empty
Drop images anywhere in this page, or use the buttons above.
Done
Your images are ready.
Spot check
Drag the divider or switch to side-by-side / zoom to compare the first image.
What does this AVIF compressor do?
This tool compresses images to AVIF using libaom — the reference AV1 encoder from the Alliance for Open Media — compiled to WebAssembly. AVIF represents the state of the art in image compression, delivering files that are typically 50% smaller than JPEG and 30% smaller than WebP at equivalent visual quality. It uses the same AV1 codec that powers Netflix and YouTube streaming, adapted for still images.
For example, a 20 MB JPEG from a modern DSLR can be compressed to a 1.5 MB AVIF with no visible quality difference at normal viewing sizes. That is a 92% reduction in file size. The AV1 codec handles complex textures like grass, foliage, and fabric much more efficiently than JPEG's block-based DCT approach, so high-detail images see the biggest savings.
When to use AVIF compression
AVIF is ideal when you need the absolute smallest file size without compromising quality. It excels at photographic content where its advanced compression algorithms have the most impact. It also supports HDR (PQ and HLG), wide colour gamut (P3, Rec.2020), 10-bit and 12-bit colour depth, lossless compression, and full alpha transparency — making it suitable for virtually any use case. Use AVIF for hero images, product galleries, and photography portfolios where every kilobyte matters.
Browser coverage is over 92% globally. For the remaining 8%, serve a WebP or JPEG fallback using the <picture> element. AVIF encoding is slower than WebP or JPEG, so it is best suited for build-time optimization or background batch processing — both of which our parallel queue handles efficiently.
Benefits of AVIF compression
Best-in-class compression: 50% smaller than JPEG, 30% smaller than WebP. HDR support: Handles PQ and HLG HDR content natively. Wide colour gamut: Supports P3 and Rec.2020 colour spaces. Deep colour: 10-bit and 12-bit precision for smooth gradients. Transparency: Full alpha channel support. Lossless: Mathematically identical compression when needed. Royalty-free: Part of the open AV1 standard.
Supported formats
Our compressor accepts JPEG, PNG, WebP, AVIF, GIF, SVG, HEIC, and TIFF as input. Output is optimized AVIF. All processing happens in your browser — no files are ever uploaded to a server.
Privacy and speed
All AVIF compression runs locally via WebAssembly. Your images never touch a server. AVIF encoding is computationally intensive — our parallel queue compensates by processing multiple images simultaneously. A batch of 20 photos might take 30-60 seconds depending on your CPU and chosen speed preset, but the resulting files will be the smallest possible on the web.
Tips for best AVIF compression results
Quality 60-70 is the sweet spot for AVIF — visually lossless but dramatically smaller than the original. Use speed preset 4-6 for a good balance of encoding time and compression density. For maximum compression (archival, batch processing), use speed preset 0-2 — it encodes slower but produces the smallest files. For HDR content, ensure your input uses PQ (ST 2084) or HLG transfer characteristics — AVIF preserves the full dynamic range. If you need to resize images before encoding, use our image resizer.
Real-world performance: AVIF in production
A photography portfolio containing 200 high-resolution JPEG images totalling 50 MB can be re-encoded to AVIF at quality 65 and weigh under 10 MB — an 80% reduction with no perceptible quality loss at standard screen resolutions. E-commerce sites see similar gains: a product catalogue of 10,000 images might drop from 2 GB to 400 MB, dramatically improving page load times and Core Web Vitals scores. The savings compound on slow connections — a 1.5 MB AVIF hero image loads 6× faster than the equivalent 9 MB JPEG on a 3G network.
For publishers serving millions of image views per month, the bandwidth cost reduction is substantial. Serving AVIF instead of JPEG can cut CDN egress costs by 50-70% while actually improving visual quality. Combined with a WebP fallback via the <picture> element, you cover over 99% of modern browsers with the most efficient format each supports.
AVIF HDR and wide colour gamut support
AVIF is the only widely supported image format that natively handles HDR content. It supports both PQ (Perceptual Quantizer, ST 2084) and HLG (Hybrid Log-Gamma) transfer functions, along with wide colour gamut spaces such as Display P3 and Rec.2020. This means images retain their full luminance range and colour volume — highlights stay bright, shadows stay deep, and colours remain accurate — across HDR-capable displays like MacBook Pros, iPads, iPhones, and high-end monitors. Standard formats like JPEG and PNG are limited to sRGB and standard dynamic range, which clips bright highlights and compresses the colour space.
For photographers and designers working in wide gamut workflows, AVIF eliminates the need for tone-mapping or gamut reduction during export. An image edited in Display P3 can be saved directly as AVIF without conversion, preserving the original intent. As HDR displays become the norm on desktop and mobile devices, publishing images in AVIF ensures they look their best on every screen — from SDR fallback on older monitors to full HDR on the latest panels.
How to compress an image to AVIF — step by step
1. Drop your image. Drag any format onto the upload area. 2. Configure settings. Adjust quality and speed preset. 3. Preview. Check the result with the comparison slider — details in shadows and highlights should be preserved. 4. Download. Save individual AVIF files or everything as a ZIP.
Browse all available image tools including resizing, cropping, conversion, and more.
All image tools
Compress, resize, crop, convert, and more — all in your browser, all private.
Related compressor tools
Optimize your images for any format, platform, or file size.
Frequently asked questions
-
Is AVIF better than WebP?
AVIF typically achieves 30-50% better compression than WebP at the same quality level, especially for photographic content. It uses the AV1 codec from the Alliance for Open Media — the same codec used by Netflix and YouTube. The trade-off is slower encoding, which our parallel queue handles by processing images simultaneously.
-
What browsers support AVIF?
AVIF is supported by Chrome (85+), Firefox (93+), Safari (16.1+), and Edge (121+). Coverage is over 92% of global browser usage. For the remaining users, you can use a JPEG or WebP fallback.
-
Does AVIF support transparency?
Yes. AVIF supports full alpha channel transparency, HDR (PQ and HLG), wide colour gamut (P3, Rec.2020), 10-bit and 12-bit depth, and lossless compression. It is the most feature-rich image format available.
-
Is AVIF good for photography?
AVIF excels at photography. The AV1 codec handles gradients, textures, and fine detail much more efficiently than JPEG or WebP. A 10 MB JPEG can often be reduced to 1-2 MB as AVIF with no visible quality difference.
-
Can I batch compress images to AVIF?
Yes. Drop any supported image format and set the output to AVIF. The queue processes files in parallel. AVIF encoding is slower than JPEG or WebP, so parallel processing helps maintain throughput.
Get started
Ready to compress your images?
Free. Unlimited. Your files never leave your device.