Technical

AVIF

AVIF (AV1 Image File Format) is a modern, royalty-free image format based on the AV1 video codec that delivers significantly better compression than WebP and JPEG while maintaining high visual quality.

AVIF offers roughly 50% file size reduction compared to JPEG and 20% compared to WebP at equivalent quality. It supports lossy and lossless compression, transparency (alpha channel), HDR, and wide color gamut. Browser support reached all major browsers in 2023.

The tradeoff is encoding speed — AVIF is significantly slower to encode than WebP or JPEG. This matters for dynamic image optimization but is irrelevant for pre-built static assets. Next.js supports AVIF via its image optimization pipeline with `formats: ['image/avif', 'image/webp']` in `next.config.js`.

For maximum performance, serve AVIF to browsers that support it and fall back to WebP, then JPEG. Next.js handles this automatically through content negotiation (Accept header). Pre-generate AVIF versions of static images at build time to avoid on-the-fly encoding costs.

Stop shipping broken SEO

Indxel validates your metadata, guards your CI/CD pipeline, and monitors indexation — so you never miss an SEO issue again.